Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!gatech!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!alchemy!ruunfs!boogaard From: boogaard@fys.ruu.nl (Martin vdBoogaard) Newsgroups: comp.text.tex Subject: Re: Integrating RCS and LaTeX Message-ID: <1991Apr19.084714.6508@fys.ruu.nl> Date: 19 Apr 91 08:47:14 GMT References: <1991Apr17.205440.23660@arc.ab.ca> Organization: Physics Department, University of Utrecht Lines: 40 Jim writes: % RCS has a feature that allows you to put certain % information (such as dates, revision numbers, etc.) into the body of a % text file by including a keyword between dollar signs. % % I'd like to use this to put version numbers into my LaTeX documents, % but unfortunately, LaTeX interprets the dollar signs as signifying an % in-text formula. The most straightforward solution I can think of is to put in your document e.g. This is \mbox{$$Revision$$} of this document. LaTeX interprets the part in the \mbox{} as two formulas, both of which are empty, bracketing a piece of ordinary text. RCS substitutes the revision description and after the first `ci -l' you end up with This is \mbox{$$Revision: 1.11$$} of this document. The \mbox{} command is not necessary to fool LaTeX but keeps the word Revision and the actual revision number in the same box, i.e. on the same line. The colon within a sentence may not be esthetically pleasing, though. Good luck, -- Martin J. van den Boogaard | boogaard@fys.ruu.nl ----------------------------------------------------------------------- Dept. of Atomic & Interface Physics | the Netherlands Debye Institute--Utrecht University | phone +31 30 532904 P.O. Box 80.000, NL-3508 TA Utrecht | fax +31 30 543165 ----------------------------------------------------------------------- some days you wake up and immediately start to worry. nothing in particular is wrong, it's just the suspicion that forces are aligning quietly and there will be trouble. -- Jenny Holzer -----------------------------------------------------------------------