-
-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
counters issues #1569
Comments
It is not clear what bug you are reporting, your point 4 seems to imply that something has changed but the definition of |
OK, me bad for reporting several things at once. Let's focus on point 3.:
So, with |
completly unrelated but you should not end paragraphs with |
The behaviour is not due to LaTeX code at all, but is a feature of the primitive TeX arithmetic which gives a number too big error on assignment but silently wraps round on overflow from addition.
It Is of course possible to add additional checks at the macro layer or (as with The etex numexpr equivalent does catch this.
throws
|
Brief outline of the bug
see https://mirror.ctan.org/macros/latex/contrib/lastpage/lastpage.pdf
Version 2.1d 2024-11-24
subsection 3.11 Page counter overflow
page 6
Ignored values: That should never happen. Either it is supported, or there is an error. (At least a warning.)
Error message ‘Counter too large’: For example
\alph
of -1 is not too large (but too small).Suggestion for error message: ‘Counter out of range’ and help text: 'Counter has value
value
, shall be printed aspresentation command
, which only supports values in the rangesupported domain
.'When -MAX or +MAX is exceeded - get a surprise: see example below. Yes, you could use that to add half a million to MAX, subtract one million, and get the right result in the end, but without any warning that is as dangerous as nitroglycerin.
When you change something, I would really appreciate it if the alphalph package is not broken by it (or if it gets fixed at the same time), and also if the
\erroralphalph
from pageslts package is not broken by it (or if it gets fixed at the same time).Minimal example showing the bug
Log file (required) and possibly PDF file
counters.log
counters.pdf
The text was updated successfully, but these errors were encountered: