I think what maybe I didn't explain well enough is that $Log$ expands to 
multiple lines, and CVS takes anything before $Log$ as the language's 
comment character. So the suggestions you give end up expanding to things 
that are syntax errors, for example:

\newcommand{\cvsver}{$Log$}

expands to:

\newcommand(\cvslog){$Log: Account-Management.lyx,v $
\newcommand(\cvslog){Revision 1.8 2002/09/24 16:23:31  dclark
\newcommand(\cvslog){Trying to get CVS Log tag to work
\newcommand(\cvslog){}

Which is why this problem seems to be somewhat difficult.






Tuukka Toivonen <[EMAIL PROTECTED]>
09/24/2002 12:14 PM

 
        To:     Daniel Clark/Cambridge/IBM <[EMAIL PROTECTED]>
        cc:     [EMAIL PROTECTED]
        Subject:        Re: Including CVS $Log$ tag in LyX doxument


On Tue, 24 Sep 2002, Daniel Clark/Cambridge/IBM wrote:

>text editor, however it still shows up in LyX as a single line and 
doesn't
>show up in created  .dvi, .pdf, .ps, .html etc. files at all (which is

Right. You could try using this instead:

\newcommand{\cvsver}{\$$Log$\$}
\cvsver

\cvsver will the print the CVS version string where ever you insert it. It
will be displayed actually in math mode, so it's in italic. I hope it
doesn't matter.

You could also use:

\newcommand{\cvsver}{$Log$}
\cvsver

which will print the CVS version string without $-characters.

>I'm guessing % must be the TeX comment character?

Yes, it is.




Reply via email to