Am Wednesday 26 May 2010 23:20:48 schrieb Julien Rioux:
> On 26/05/2010 1:17 PM, Rainer Dorsch wrote:
> > Hello,
> >
> > we maintain our LyX document in subversion. From time to time, I
> > distribute a pdf. I would like to include the subversion revision number
> > in the document. Is there a easy way to do that?
> >
> > Thanks
> > Rainer
>
> In the preamble:
> \usepackage{svn}
> \SVN $Revision$
>
> In the document, inside a TeX code box:
> \SVNRevision
>
> See also this thread:
> http://www.mail-archive.com/lyx-users@lists.lyx.org/msg78371.html
>
> and:
> http://jtauber.com/blog/2006/03/28/subversion_keywords_in_latex_documents/

Thanks, worked well for me.

For some reason \SVNRevision produces an empty string with texlive 
2007.dfsg.2-1~lenny2 in Debian 5.0, but works as expected in the upcoming 
Debian 6.0 testing release.

Rainer

-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
jabber: rdor...@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/

Reply via email to