Hi y'all,
I'm trying to make a new environment that uses the verbatim environment
and puts a
line above and under it. The next environment accomplishes that:
\newenvironment{srclist}
{\hline\verbatim}
{\endverbatim
\hline}
Now I want to add a title at the end of this environment and I want to
be able to specify
this title as an argument to the environment command. Here are some
things I tried and
don't work:
% This doesn't work because you can't use the
% argument in the end-part
\newenvironment[1]{srclist}
{\hline\verbatim}
{\endverbatim
\hline #1}
% This doesn't work because LaTeX thinks '#1'
% is the argument to the new '\srctitle' command
% and we didn't specify any
\newenvironment[1]{srclist}
{\newcommand{\srctitle}{#1}\hline\verbatim}
{\endverbatim
\hline\srctitle}
Does anyone have any idea on how to do something like this?
TIA,
Francisco
PS: I'll be monitoring the group but replies to my e-mail are
appreciated.
Don't use the address in the sender/reply to, use this: fcanedo at
mediaport dot organisation