At 05:30 PM 7/10/01 +0200, Hokojoku, Bert wrote:
>Hi all,
>I'm trying to keep track of the versions of my documents. Is it possible to
>print the number of times a file has been generated in a title or a header?
>Or, is there some other way to generate versionnumbers?
you can use
\version[concept] % \versie[concept]
or
\version[temporary] % \versie[voorlopig]
which provides some info about the project structure [if used]
If you want to keep track of numbers in an independent way, the best way is
\def\LoadVariable#1#2%
{\startreadingfile
\readlocfile{#2}{}{}%
\ifx#1\undefined\global\let#1\empty\fi
\stopreadingfile}
\def\SaveVariable#1#2%
{\immediate\openout\scratchwrite=#2%
\immediate\write\scratchwrite{\string\gdef\string#1{#1}}%
\immediate\closeout\scratchwrite}
\newcounter\CurrentVersionNumber
\def\IncrementVersionNumber%
{\LoadVariable{\CurrentVersionNumber}{version.num}%
\doglobal\increment\CurrentVersionNumber
\SaveVariable{\CurrentVersionNumber}{version.num}}
\IncrementVersionNumber versie: \CurrentVersionNumber
[let's hope that this makes it into teh archive since i'll probably loose it]
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------