Execute command AtEndDocument in a custom class
up vote
0
down vote
favorite
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?
document-classes
add a comment |
up vote
0
down vote
favorite
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?
document-classes
2
It would be helpful if you composed a fully compilable MWE includingdocumentclassand 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
5 hours ago
1
Mhhh,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
5 hours ago
@moewe, could it be that I providedAtEndDocumentafterendinput?
– Viesturs
4 hours ago
2
Well yes, that would definitely be a problem. Everything afterendinputis ignored.
– moewe
4 hours ago
that is why questions should always have example code, the cause of the problem isn't mentioned in the question. tex does not read the text at all on any lines afterendinput
– David Carlisle
2 hours ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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?
document-classes
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?
document-classes
document-classes
asked 5 hours ago
Viesturs
1,4592922
1,4592922
2
It would be helpful if you composed a fully compilable MWE includingdocumentclassand 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
5 hours ago
1
Mhhh,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
5 hours ago
@moewe, could it be that I providedAtEndDocumentafterendinput?
– Viesturs
4 hours ago
2
Well yes, that would definitely be a problem. Everything afterendinputis ignored.
– moewe
4 hours ago
that is why questions should always have example code, the cause of the problem isn't mentioned in the question. tex does not read the text at all on any lines afterendinput
– David Carlisle
2 hours ago
add a comment |
2
It would be helpful if you composed a fully compilable MWE includingdocumentclassand 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
5 hours ago
1
Mhhh,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
5 hours ago
@moewe, could it be that I providedAtEndDocumentafterendinput?
– Viesturs
4 hours ago
2
Well yes, that would definitely be a problem. Everything afterendinputis ignored.
– moewe
4 hours ago
that is why questions should always have example code, the cause of the problem isn't mentioned in the question. tex does not read the text at all on any lines afterendinput
– David Carlisle
2 hours ago
2
2
It would be helpful if you composed a fully compilable MWE including
documentclass and 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
5 hours ago
It would be helpful if you composed a fully compilable MWE including
documentclass and 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
5 hours ago
1
1
Mhhh,
AtEndDocument should just work in a .cls file. 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 .cls file of what you tried, what you expected and how it failed for you.– moewe
5 hours ago
Mhhh,
AtEndDocument should just work in a .cls file. 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 .cls file of what you tried, what you expected and how it failed for you.– moewe
5 hours ago
@moewe, could it be that I provided
AtEndDocument after endinput?– Viesturs
4 hours ago
@moewe, could it be that I provided
AtEndDocument after endinput?– Viesturs
4 hours ago
2
2
Well yes, that would definitely be a problem. Everything after
endinput is ignored.– moewe
4 hours ago
Well yes, that would definitely be a problem. Everything after
endinput is ignored.– moewe
4 hours ago
that is why questions should always have example code, the cause of the problem isn't mentioned in the question. tex does not read the text at all on any lines after
endinput– David Carlisle
2 hours ago
that is why questions should always have example code, the cause of the problem isn't mentioned in the question. tex does not read the text at all on any lines after
endinput– David Carlisle
2 hours ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461342%2fexecute-command-atenddocument-in-a-custom-class%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
It would be helpful if you composed a fully compilable MWE including
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
5 hours ago
1
Mhhh,
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
5 hours ago
@moewe, could it be that I provided
AtEndDocumentafterendinput?– Viesturs
4 hours ago
2
Well yes, that would definitely be a problem. Everything after
endinputis ignored.– moewe
4 hours ago
that is why questions should always have example code, the cause of the problem isn't mentioned in the question. tex does not read the text at all on any lines after
endinput– David Carlisle
2 hours ago