Thanks a lot! That works perfectly.
Dekel Tsur <[EMAIL PROTECTED]>
Sent by: Dekel Tsur <[EMAIL PROTECTED]>
09/24/2002 03:04 PM
Please respond to Dekel Tsur
To: Daniel Clark/Cambridge/IBM <[EMAIL PROTECTED]>, LyX users
<[EMAIL PROTECTED]>
cc:
Subject: Re: Including CVS $Log$ tag in LyX doxument
On Tue, Sep 24, 2002 at 08:08:21PM +0200, Lars Gullik Bj?nnes wrote:
>
> what if you put a newcommand in the preamble
>
> \newcommand{mylog}{
> \begin{verbatim}
> $Log$
> \end{verbatim}
> }
>
> and put "\mylog" in ert somewhere in the document?
You can't use verbatim inside an argument to a macro.
But the following should work:
In the preamble:
\usepackage{fancyvrb}
\begin{SaveVerbatim}{foo}
$Log$
\end{SaveVerbatim}
And in the document, use \UseVerbatim{foo}