Comprehensive TeX Archive Network

Direc­tory tex-archive/macros/latex/contrib/totcount


The TotCount package, version 1.2, 2009/07/09

Copyright (c) [2009] Vasileios Koutavas (Vasileios.Koutavas@scss.tcd.ie)

This program may be re-distributed and/or modified under the terms of the
LaTeX Project Public License version 1.3c, or any later version.
The latest version of this license is in


The TotCount package computes and displays the last value of counters
inside a document. With this package one may count the total number of
elements (e.g.  sections, pages, citations, etc.) in a LaTeX document by
simply using standard LaTeX counters.



   - README           This file
   - totcount.ins     Installation file
   - totcount.dtx     Source file
   - totcount.pdf     Documentation



   1. To get the package file run

        latex totcount.ins

      then copy the totcount.sty in a directory accessible by (pdf)latex
      and re-hash the latex tree.

   2. To compile the documentation run

        pdflatex totcount.drv
        makeindex -s gind.ist totcount.idx
        makeindex -s gglo.ist -o totcount.gls totcount.glo
        pdflatex totcount.drv

   3. To run the example run

        pdflatex totcount-ex.tex
        pdflatex totcount-ex.tex



Name Size Date Notes
README 1613 2011-01-25 17:58
tot­count.dtx 20761 2011-01-25 17:58
tot­count.ins 1456 2011-01-25 17:58
tot­count.pdf 285542 2011-01-25 17:58

Down­load the con­tents of this pack­age in one zip archive (283.7k).

tot­count – Find the last value of a counter

The pack­age records the value that was last set, for any counter of in­ter­est; since most such coun­ters are sim­ply in­cre­mented when they are changed, the recorded value will usu­ally be the max­i­mum value.

Pack­age De­tailstot­count
Li­censeThe LaTeX Project Public Li­cense
Copy­right2009 Vasileios Koutavas
Main­tainerVasileios Koutavas
Con­tained inTeX Live as tot­count
MiKTeX as tot­count
Topics sup­port for de­vel­op­ment of (La)TeX macros
man­age­ment of coun­ters
See also totpages
Guest Book Sitemap Contact Contact Author