John McCabe-Dansted wrote:
> On 3/16/07, Andre Poenitz <[EMAIL PROTECTED]> wrote:
>> On Thu, Mar 15, 2007 at 10:51:24PM +0100, [EMAIL PROTECTED] wrote:
>> I have no problems with that as long as this is a concious decision of
>> the user. However, having things like my user name and
>> modification/access
>> date dumped silently into the file is no option.
> 
> An alternative would be to support an RCS format where everything is
> explicitly saved forever, so e.g. you not only know when the document
> was printed, but also can revert to the version for which pdflatex was
> run successfully. This would have saved me many times from  latex
> producing some unintelligible error with no indication of how to fix
> it or which change caused it.
> 
> This should allow you to not only tell if one document is newer than
> another, but also if they are forked, and if they are forked how to
> merge the changes.
> 

I do this for most of my documents. The preamble needs one additional line:
\usepackage{rcs}

Then you start your document with something like the following:

ERT{
\RCS $Revision: 1.3 $
\RCS $Date: 2003/09/23 07:24:45 $
\RCS $RCSfile: MyFilename.lyx,v $
\RCS $State: Exp $}

Then you may add somewhere ERT{\RCSDate{}}, ERT{\RCSRCSfile{}} or
ERT{\RCSRevision{}} to get the values printed there.

Hope this helps,

Stephan

PS: Of course you have to install the package rcs.sty if not already
present on your system.

Reply via email to