# [texhax] Problem with eqn numbering above 1000

Mon May 29 14:45:12 CEST 2017

We are going to need some example code on that one

This has no issues what so ever

\documentclass[a4paper]{article}
\begin{document}
\setcounter{equation}{999}
$$a$$
$$a$$
\end{document}

Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University

________________________________________
From: texhax <texhax-bounces at tug.org> on behalf of Vasudevan KS <ksvnpd at gmail.com>
Sent: 29 May 2017 11:46
To: support at tug.org
Subject: [texhax] Problem with eqn numbering above 1000

Hi All,

There will be an overflow when the number of pages is more than 1000.
And we should write

\makeatletter
\renewcommand{\@pnumwidth}{2.0em}
\makeatother

to clear that overflow. Some strange things happens when the number of
equaitons is more than 1000.
Should we write something like

\makeatletter
\renewcommand{\@pnumwidth}{2.0em}
\makeatother

when the number of equations is more than 1000.
(The equation counter was set to 1001, so that all equation numbers
will have 4 digits.)

Vasudevan KS
_______________________________________________
TeX FAQ: http://www.tex.ac.uk/faq
Mailing list archives: http://tug.org/pipermail/texhax/