LaTeX package 'counttexruns' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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. The latest version of this license is in http://www.latex-project.org/lppl.txt 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 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. 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