summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/counttexruns/README17
-rw-r--r--Master/texmf-dist/doc/latex/counttexruns/counttexruns.pdfbin224595 -> 231467 bytes
-rw-r--r--Master/texmf-dist/source/latex/counttexruns/counttexruns.dtx62
-rw-r--r--Master/texmf-dist/source/latex/counttexruns/counttexruns.ins8
-rw-r--r--Master/texmf-dist/tex/latex/counttexruns/counttexruns.sty14
5 files changed, 58 insertions, 43 deletions
diff --git a/Master/texmf-dist/doc/latex/counttexruns/README b/Master/texmf-dist/doc/latex/counttexruns/README
index 78582ce4ae7..8f6745463b3 100644
--- a/Master/texmf-dist/doc/latex/counttexruns/README
+++ b/Master/texmf-dist/doc/latex/counttexruns/README
@@ -1,5 +1,5 @@
LaTeX package 'counttexruns'
-~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copyright (C) 2012 by Robin Schneider <ypid23@aol.de>
This work may be distributed and/or modified under the
@@ -10,8 +10,11 @@ The latest version of this license is in
and version 1.3 or later is part of all distributions of LaTeX
version 2005/12/01 or later.
+CTAN: http://www.ctan.org/pkg/counttexruns
Code repository: https://github.com/ypid/latex-packages/counttexruns
+
+ DESCRIPTION
The counttexruns package counts how often a LaTeX document is compiled.
From a statistical perspective you maybe want to know how often you compiled a
@@ -20,3 +23,15 @@ used a bash script and -shell-escape to do this but I decided to write this
small package to do the trick a little nicer.
To print the count you can use the macro \thecounttexruns.
+
+
+ GENERATING THE FILES
+You can generate the counttexruns.sty file with: pdflatex counttexruns.ins
+
+The documentation can be generated with:
+pdflatex counttexruns.dtx
+makeindex -s gglo.ist -o counttexruns.gls counttexruns.glo
+makeindex -s gind counttexruns
+pdflatex counttexruns.dtx
+thumbpdf counttexruns
+pdflatex counttexruns.dtx
diff --git a/Master/texmf-dist/doc/latex/counttexruns/counttexruns.pdf b/Master/texmf-dist/doc/latex/counttexruns/counttexruns.pdf
index e9c6027a797..0850bc06e54 100644
--- a/Master/texmf-dist/doc/latex/counttexruns/counttexruns.pdf
+++ b/Master/texmf-dist/doc/latex/counttexruns/counttexruns.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/counttexruns/counttexruns.dtx b/Master/texmf-dist/source/latex/counttexruns/counttexruns.dtx
index 3078c92a0aa..fbf7d23dd63 100644
--- a/Master/texmf-dist/source/latex/counttexruns/counttexruns.dtx
+++ b/Master/texmf-dist/source/latex/counttexruns/counttexruns.dtx
@@ -1,7 +1,7 @@
% \iffalse meta-comment
%
% Copyright (C) 2012 by Robin Schneider <ypid23@aol.de>
-%
+%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
@@ -21,26 +21,24 @@
%
% \iffalse
%<*driver>
-\ProvidesFile{\jobname.dtx}
+\ProvidesFile{counttexruns.dtx}
%</driver>
%<package>%% See file 'counttexruns.dtx' for copyright and licence.
%<package>\NeedsTeXFormat{LaTeX2e}[1998/12/01]
%<package>\ProvidesPackage{counttexruns}
%<*package>
- [2012/08/27 v1.00 Counts the TeX runs]
+ [2012/08/31 v1.00a Count compilations of a document]
%</package>
%
%<*driver>
\documentclass[english]{ltxdoc}
\newcommand{\PackageURL}{https://github.com/ypid/latex-packages/tree/master/counttexruns}
+\newcommand{\PackageCTANURL}{http://www.ctan.org/pkg/counttexruns}
\newcommand{\PackageAuthor}{Robin Schneider}
\newcommand{\PackageAuthorEmail}{ypid23@aol.de}
+\newcommand{\PackageName}{\PrintPackage{count\TeX runs}}
\newcommand{\PrintPackage}[1]{\textsf{#1}}
-\typeout{}\typeout{* If the two package names look the same you can ignore this
-LaTeX Warning *}
-\usepackage{\jobname}
-%% ^^A This produces a warning even when there is no problem.
-%% ^^A I think there is an error in the comparison (expand \jobname ...)
+\usepackage{counttexruns}
\usepackage{
babel,
csquotes,
@@ -49,20 +47,20 @@ LaTeX Warning *}
hypdoc,
ifthen,
}
-\GetFileInfo{\jobname.dtx}
+\GetFileInfo{counttexruns.dtx}
\hypersetup{
- pdftitle={A manual for \jobname},
+ pdftitle={A manual for \PackageName},
pdfauthor={\PackageAuthor{} <\PackageAuthorEmail>},
pdfsubject={\fileinfo},
baseurl={\PackageURL},
- pdfkeywords={This document corresponds to \textsf{\jobname}~\fileversion,
+ pdfkeywords={This document corresponds to \PackageName~\fileversion,
dated \filedate}
}
-\title{The \PrintPackage{\jobname} package\thanks{This document
-corresponds to \textsf{\jobname}~\fileversion, dated \filedate.}}
+\title{The \PackageName{} package\thanks{This document
+corresponds to \PackageName~\fileversion, dated \filedate.}}
\author{\PackageAuthor \\
- \texttt{\href{mailto:\PackageAuthorEmail?subject=LaTeX package \jobname}%
+ \texttt{\href{mailto:\PackageAuthorEmail?subject=LaTeX package counttexruns}%
{\PackageAuthorEmail}%
}%
}
@@ -71,14 +69,14 @@ corresponds to \textsf{\jobname}~\fileversion, dated \filedate.}}
\CodelineIndex
\RecordChanges
\begin{document}
- \DocInput{\jobname.dtx}
+ \DocInput{counttexruns.dtx}
\PrintChanges
\PrintIndex
\end{document}
%</driver>
% \fi
%
-% \CheckSum{53}
+% \CheckSum{52}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -97,6 +95,7 @@ corresponds to \textsf{\jobname}~\fileversion, dated \filedate.}}
% Right brace \} Tilde \~}
%
% \changes{1.00}{2012/08/27}{Initial version}
+% \changes{1.00a}{2012/08/31}{Minor details fixed}
%
% \DoNotIndex{\RequirePackage, \DeclareOption, \ProcessOptions}
% \DoNotIndex{\PackageWarning, \MessageBreak}
@@ -104,8 +103,8 @@ corresponds to \textsf{\jobname}~\fileversion, dated \filedate.}}
% \DoNotIndex{\DeclareRobustCommand, \newcommand, \renewcommand}
% \DoNotIndex{\newenvironment}
% \DoNotIndex{\if, \else, \fi, \ifcase, \or, \ifthenelse, \AND, \value, \relax}
-% \DoNotIndex{\%, \IfFileExists, \immediate, \arabic, \@counttexrunsfile}
-%% ^^A \% is ignored ...
+% \DoNotIndex{\%, \IfFileExists, \immediate, \arabic}
+%% ^^A \% is ignored ...
% \DoNotIndex{\@currname, \newcounter, \setcounter}
% \DoNotIndex{\endinput}
%
@@ -114,12 +113,13 @@ corresponds to \textsf{\jobname}~\fileversion, dated \filedate.}}
% \phantomsection
% \addcontentsline{toc}{section}{\abstractname}
% \begin{abstract}
-% The \PrintPackage{\jobname} package counts how often a \LaTeX{} document is
+% The \PackageName{} package counts how often a \LaTeX{} document is
% compiled.\\
+% Location on CTAN: \url{\PackageCTANURL} \\
% Fork me on GitHub: \url{\PackageURL} \end{abstract}
-%
+%
% \tableofcontents
-%
+%
% \section{Introduction}
% From a statistical perspective you maybe want to know how often you compiled
% a document. This is exactly the task I wrote this package for. For a few
@@ -142,8 +142,8 @@ corresponds to \textsf{\jobname}~\fileversion, dated \filedate.}}
%
% \DescribeMacro{\thecounttexruns}
% To print the count you can use the macro |\thecounttexruns|. You can also use
-% and even change the \LaTeX{} counter \enquote{\jobname}. This will not disturb
-% \PrintPackage{\jobname}.
+% and even change the \LaTeX{} counter \enquote{counttexruns}. This will not disturb
+% \PackageName.
%
% By the way this documentation was \thecounttexruns{}
% time\ifthenelse{\equal{\value{counttexruns}}{1}}{}{s} compiled during
@@ -175,17 +175,17 @@ corresponds to \textsf{\jobname}~\fileversion, dated \filedate.}}
% \end{macro}
% Here it is checked if the file already exists and if that is the case the
% number of compile events will be stored in the \LaTeX{} counter
-% \enquote{\jobname}.
+% \enquote{counttexruns}.
% \begin{macrocode}
\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}
+}{}
% \end{macrocode}
-% Here the counter \jobname is increment by one.
+% Here the counter \enquote{counttexruns} is increment by one.
% \begin{macrocode}
\stepcounter{counttexruns}
% \end{macrocode}
diff --git a/Master/texmf-dist/source/latex/counttexruns/counttexruns.ins b/Master/texmf-dist/source/latex/counttexruns/counttexruns.ins
index 743e95aecb7..30fd771eff4 100644
--- a/Master/texmf-dist/source/latex/counttexruns/counttexruns.ins
+++ b/Master/texmf-dist/source/latex/counttexruns/counttexruns.ins
@@ -2,20 +2,20 @@
\input docstrip.tex
\keepsilent
-\usedir{tex/latex/\jobname}
+\usedir{tex/latex/counttexruns}
\usepreamble\mypreamble
\askforoverwritefalse
-\generate{\nopreamble\file{\jobname.sty}{\from{\jobname.dtx}{package}}}
+\generate{\nopreamble\file{counttexruns.sty}{\from{counttexruns.dtx}{package}}}
\Msg{***********************************************************}
\Msg{*}
\Msg{* To finish the installation you have to move the following}
\Msg{* file into a directory searched by TeX:}
\Msg{*}
-\Msg{* \space\space \jobname.sty}
+\Msg{* \space\space counttexruns.sty}
\Msg{*}
\Msg{* To produce the documentation run the files}
-\Msg{* `\jobname.dtx' through LaTeX.}
+\Msg{* `counttexruns.dtx' through LaTeX.}
\Msg{*}
\Msg{* Happy TeXing}
\Msg{***********************************************************}
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