Oscar Garc�a Poblaci�n a �crit :

>         Hi All!
>
>         I am trying to use CVS keyword expansion with Lyx, so Author, Revision, etc
> would be added to the document. I have tryed the simplest thing that came to
> my mind, that was just add $Author$ in the doc. It works. CVS expands that
> expression to $Author: Oscar$. I would like to supress de $ sign from the
> document. �Any idea?.
>
>         I am new tho this list and to Lyx and Latex. I started using it about a
> month ago and have discovered "a new world".
>
>                 Thanks in advance
>
>                 Oscar Garcia

Hello,
You can do the following:
define in the latex preamble the commands:

\def\cvsfilter\$#1\${ #1 }
\def\cvs#1{ \cvsfilter#1 }

And use the command \cvs in the lyx file, written in red (ERT), for each $ ... $ used:

\cvs{$Author$}

Note that using this macro with a parameter that does not contain the $ makes the
latex compilation fail. Besides, $Author$ must not be in red (only \cvs{ and } are in
red).



Reply via email to