Open main menu

Changes

152 bytes added ,  09:38, 25 May 2015
no edit summary
< [[Sample documents]]
At my work, we have to add some sort of revision history to certain documents. This is also an example for the use of \getparameters (see also [[Commands with KeyVal arguments]]).
A downloadable version of the macro is available [[media:Changes.tex|here]], and a PDF example of the output [[media:Changes.pdf|here]].
Note that background=screen is depricated and should be replaced by something like background=color,backgroundcolor=gray. <small><pretexcode>
\useregime[il1]
\enableregime[il1]
\setupscreens[screen=0.85]
\setupcolors[state=start]
\setupheadertexts[RvRév.: \the\RevC]
\def\Vfil{\vskip0pt plus3fil\relax}
\def\In[#1,#2]{\ifx#1\empty\else\in[#1]\fi\if\relax#2\else, \In[#2]\fi}
\def\startChanges{\hbox to \hsize\bgroup\hss\SetTableToWidth{\BigWidth}%
\starttable[s1 | c | c | p(95mm) | p(17mm) | p(37mm) |]
\HL\BL[5]\AR\VL Rv.\VL Date\VL Origine de la mise à jour\VL modifimodifié\VL
Auteur\VL\AR\HL}
\def\stopChanges{\stoptable\hss\egroup}\newcount\RevC
\Changes[Date=1/2/2004]
\Changes[Date=3/4/2004,Modif=Some modifications,Labels={sec:S1,sec:S2},
Auteur=JrmeJérôme]
\Changes[Date=5/6/2004,Modif=Some other modifications,Labels=sec:S2]
%
some text
\stoptext
</pre></smalltexcode[[Category:Sample documents]]
17

edits