diff options
author | Karl Berry <karl@freefriends.org> | 2012-09-02 22:46:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-09-02 22:46:21 +0000 |
commit | 32a13069b8409b20d6b34d81ecd568330e5e0bc8 (patch) | |
tree | 0cbc686acca57bb72ae43a2a0e3694f646d803e2 /Master/texmf-dist/tex/latex/counttexruns/counttexruns.sty | |
parent | 5842ef917f7cbd5553126d78cfab16ebb0ca4e8f (diff) |
counttexruns
git-svn-id: svn://tug.org/texlive/trunk@27576 c570f23f-e606-0410-a88d-b1316a301751
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 |