File: FAQ-RCS.html

package info (click to toggle)
tetex-base 3.0.dfsg.3-5
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 239,540 kB
  • ctags: 10,610
  • sloc: xml: 103,461; perl: 9,398; ruby: 2,850; python: 1,551; php: 1,067; sh: 981; lisp: 494; makefile: 371; awk: 88
file content (33 lines) | stat: -rw-r--r-- 1,849 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<head>
<title>UK TeX FAQ -- question label RCS</title>
</head><body>
<h3>Version control using RCS or CVS</h3>
<p>If you use RCS or CVS to maintain your (La)TeX
documents under version control, you may need some mechanism for
including the RCS keywords in your document, in such a way that
they can be typeset (that is, rather than just hiding them inside a
comment).
<p>The most complete solution is to use the (LaTeX) package
<i>rcs</i>, which allows you to parse and display the contents of
RCS keyword fields in an extremely flexible way.  The package
rcsinfo is simpler, but does most of what you want, and some people
prefer it; it is explicitly compatible with <i>LaTeX2HTML</i>.
<p>If, however, you need a solution which works without using external
packages, or which will work in plain TeX, then you can use the
following minimal solution:
<blockquote>
<pre>
\def\RCS$#1: #2 ${\expandafter\def\csname RCS#1\endcsname{#2}}
\RCS$Revision: 1.267 $ % or any RCS keyword
\RCS$Date: 2005/01/05 10:24:43 $
...
\date{Revision \RCSRevision, \RCSDate}
</pre>

</blockquote>
<dl>
<dt><tt><i>rcs.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/rcs.tar.gz">macros/latex/contrib/rcs</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/rcs.zip">zip</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/rcs/">browse</a>)
<dt><tt><i>rcsinfo.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/rcsinfo.tar.gz">macros/latex/contrib/rcsinfo</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/rcsinfo.zip">zip</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/rcsinfo/">browse</a>)
</dl>
<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=RCS">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=RCS</a>
</body>