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
\newcounter{index} does not raise any warning to user but ultimately causes \printindex to fail #823
Comments
hmm you get essentially the same from
It's always been this way, but I suppose the standard classes could define
If we did decide it was safe to catch this after all this time |
"perhaps a missing item" is not the world best error message but given that this is the way it is for all LaTeX documents since the age of dawn I doubt that many people ever ran into it. But I guess we can make the above definitions to improve that a bit. I can't think of any bad side-effects because of them. |
The idea to name the internal environments fo the index and the bibliography as The chance that some user wants We might possibly add a check at begin document: if the document is making an index (this can be checked by comparing
Case 2 can arise if there are macros defining counters that can be used in the document. |
This issue has been automatically marked as stale because it has not had recent activity. |
It is true that the environments A possible alternative is to ensure that |
Or maybe issue a warning that |
Brief outline of the bug
\newcounter{index}
redefines\theindex
hence causes\printindex
to fail withThe problem here is that
\newcounter
issues no warning whatsoever.Minimal example showing the bug
Log file (required) and possibly PDF file
testindex.log
The text was updated successfully, but these errors were encountered: