I have encountered a bug in totcount
package: sometimes it counts pages incorrectly. For example, the following code produces for me a 2-page PDF file, but totcount
thinks there is only one page:
\documentclass[letterpaper]{article}
\usepackage{lipsum}
\usepackage{totcount}
\regtotcounter{page}
\begin{document}
\lipsum[1-5]
{\LARGE Total page count according to \texttt{totcount}: \total{page}.}
\end{document}
Is anybody still maintaining this package?
What are working alternatives to totcount
?
I know about lastpage
but I need the total number in numerical form, not as text. With totcount
I use \totvalue{page}
for this.
lastpage
as well and you get a total of 3 pages. :-)