Index of /macros/latex2e/contrib/counttexruns
      Name                    Last modified       Size  Description

[DIR] Parent Directory 07-Dec-2019 05:17 - [   ] counttexruns.dtx 31-Aug-2012 21:38 7k [   ] counttexruns.ins 31-Aug-2012 21:11 1k [   ] counttexruns.pdf 31-Aug-2012 21:39 226k

LaTeX package 'counttexruns'
Copyright (C) 2012 by Robin Schneider <>

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.
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.

Code repository:

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
document. This is exactly the task I wrote this package for. For a few years I
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.

You can generate the counttexruns.sty file with: pdflatex counttexruns.ins

The documentation can be generated with:
pdflatex counttexruns.dtx
makeindex -s -o counttexruns.gls counttexruns.glo
makeindex -s gind counttexruns
pdflatex counttexruns.dtx
thumbpdf counttexruns
pdflatex counttexruns.dtx