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/

Hi Julien,

I thought that works well, but now after understanding keyword substitution in 
subversion in more detail, I found that it does not work very well (or I did 
not fully understand the svn package):

We have a document with multiple child documents. There are few changes in the 
top-level document. SVN replaces the $Revision$ during checkin only, when a 
file is modified. Since the top-level file is modified rarely, I see rarely 
updates on $Revision$.

The svn manual clearly describes that svnversion should be used for this 
purpose

http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html

Is there a way to insert the output of an external command (svnversion) during 
compile time into a LyX document (it would not hurt to let also LyX display 
the result ;-) ?

Thanks,
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