diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/counttexruns/counttexruns.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/counttexruns/counttexruns.sty | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/counttexruns/counttexruns.sty b/Master/texmf-dist/tex/latex/counttexruns/counttexruns.sty index 317b46d8f58..9313c6334c5 100644 --- a/Master/texmf-dist/tex/latex/counttexruns/counttexruns.sty +++ b/Master/texmf-dist/tex/latex/counttexruns/counttexruns.sty @@ -1,7 +1,7 @@ %% See file 'counttexruns.dtx' for copyright and licence. \NeedsTeXFormat{LaTeX2e}[1998/12/01] \ProvidesPackage{counttexruns} - [2012/08/27 v1.00 Counts the TeX runs] + [2012/08/31 v1.00a Count compilations of a document] %% ^^A \% is ignored ... \newcounter{counttexruns} \newwrite\@counttexrunsfile @@ -9,12 +9,12 @@ \DeclareStringOption[ctr]{extension} \ProcessLocalKeyvalOptions* \IfFileExists{\jobname.\counttexruns@extension}{ -\immediate\openin\@counttexrunsfile=\jobname.\counttexruns@extension -\immediate\read\@counttexrunsfile to \counttexruns -\immediate\read\@counttexrunsfile to \counttexruns -\immediate\closeout\@counttexrunsfile -\setcounter{counttexruns}{\counttexruns} -}{} %% \value{counttexruns} is still zero + \immediate\openin\@counttexrunsfile=\jobname.\counttexruns@extension + \immediate\read\@counttexrunsfile to \@counttexruns + \immediate\read\@counttexrunsfile to \@counttexruns + \immediate\closein\@counttexrunsfile + \setcounter{counttexruns}{\@counttexruns} +}{} \stepcounter{counttexruns} \immediate\openout\@counttexrunsfile=\jobname.\counttexruns@extension \catcode`\%=11\relax |