I am studying Count number of figures, tables and citations in report class. I am writing a custom class that would have this implementation built in. I would like to move the commands \AtEndDocument from the preamble to the .cls file. The problem is that they do not get executed in case of a simple copy.
Can you help?
Asked
Active
Viewed 150 times
0
Viesturs
- 7,895
\documentclassand the appropriate packages that reproduces the problem.While solving problems can be fun, setting them up is not. Then, those trying to help can simply cut and paste your MWE and get started on solving the problem.
– Peter Grill Nov 22 '18 at 21:27\AtEndDocumentshould just work in a.clsfile. It certainly worked for me in a short example I just wrote. It would be much easier to answer this question if you could show us an example document and an example.clsfile of what you tried, what you expected and how it failed for you. – moewe Nov 22 '18 at 21:31\AtEndDocumentafter\endinput? – Viesturs Nov 22 '18 at 22:14\endinputis ignored. – moewe Nov 22 '18 at 22:23\endinput– David Carlisle Nov 23 '18 at 00:35