Cross-referencing with part prefix also for appendix
up vote
0
down vote
favorite
In my document I restart the chapter counter for every part. Unfortunately, this leads to ambiguous numbers for, e. g. figures. Therefore, I decided to add the number of the part as a prefix to the chapter with:
renewcommand{thechapter}{thepart.arabic{chapter}}
In general, this works nice. However, I have some chapters before a part which leads to a prepended ".", e. g. ".1 Chapter 0".
So, the first thing I want to achieve is removing the point when there is no part above the chapter.
The second issue arises with the appendix because the appendix chapters are not included in the "renewcomand" above. It would be more uniform if the Appendix, which is part III would be numbered like "III.A", "III.B" and so on.
Here is the current output:
How can I remove the leading "." for chapters outside a part? How can I add the part number to the appendix chapters? Ideally, this should also work for the figures (see "List of Figures" in image), tables and equations.
UPDATE:
Concering the first issue ("."). I found this solution:
makeatletter
renewcommand{thechapter}{%
ifnumc@part<1 @arabicc@chapter
else thepart.@arabicc@chapter
fi
}
makeatother
cross-referencing numbering appendices
add a comment |
up vote
0
down vote
favorite
In my document I restart the chapter counter for every part. Unfortunately, this leads to ambiguous numbers for, e. g. figures. Therefore, I decided to add the number of the part as a prefix to the chapter with:
renewcommand{thechapter}{thepart.arabic{chapter}}
In general, this works nice. However, I have some chapters before a part which leads to a prepended ".", e. g. ".1 Chapter 0".
So, the first thing I want to achieve is removing the point when there is no part above the chapter.
The second issue arises with the appendix because the appendix chapters are not included in the "renewcomand" above. It would be more uniform if the Appendix, which is part III would be numbered like "III.A", "III.B" and so on.
Here is the current output:
How can I remove the leading "." for chapters outside a part? How can I add the part number to the appendix chapters? Ideally, this should also work for the figures (see "List of Figures" in image), tables and equations.
UPDATE:
Concering the first issue ("."). I found this solution:
makeatletter
renewcommand{thechapter}{%
ifnumc@part<1 @arabicc@chapter
else thepart.@arabicc@chapter
fi
}
makeatother
cross-referencing numbering appendices
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
In my document I restart the chapter counter for every part. Unfortunately, this leads to ambiguous numbers for, e. g. figures. Therefore, I decided to add the number of the part as a prefix to the chapter with:
renewcommand{thechapter}{thepart.arabic{chapter}}
In general, this works nice. However, I have some chapters before a part which leads to a prepended ".", e. g. ".1 Chapter 0".
So, the first thing I want to achieve is removing the point when there is no part above the chapter.
The second issue arises with the appendix because the appendix chapters are not included in the "renewcomand" above. It would be more uniform if the Appendix, which is part III would be numbered like "III.A", "III.B" and so on.
Here is the current output:
How can I remove the leading "." for chapters outside a part? How can I add the part number to the appendix chapters? Ideally, this should also work for the figures (see "List of Figures" in image), tables and equations.
UPDATE:
Concering the first issue ("."). I found this solution:
makeatletter
renewcommand{thechapter}{%
ifnumc@part<1 @arabicc@chapter
else thepart.@arabicc@chapter
fi
}
makeatother
cross-referencing numbering appendices
In my document I restart the chapter counter for every part. Unfortunately, this leads to ambiguous numbers for, e. g. figures. Therefore, I decided to add the number of the part as a prefix to the chapter with:
renewcommand{thechapter}{thepart.arabic{chapter}}
In general, this works nice. However, I have some chapters before a part which leads to a prepended ".", e. g. ".1 Chapter 0".
So, the first thing I want to achieve is removing the point when there is no part above the chapter.
The second issue arises with the appendix because the appendix chapters are not included in the "renewcomand" above. It would be more uniform if the Appendix, which is part III would be numbered like "III.A", "III.B" and so on.
Here is the current output:
How can I remove the leading "." for chapters outside a part? How can I add the part number to the appendix chapters? Ideally, this should also work for the figures (see "List of Figures" in image), tables and equations.
UPDATE:
Concering the first issue ("."). I found this solution:
makeatletter
renewcommand{thechapter}{%
ifnumc@part<1 @arabicc@chapter
else thepart.@arabicc@chapter
fi
}
makeatother
cross-referencing numbering appendices
cross-referencing numbering appendices
edited Dec 6 at 14:03
asked Dec 5 at 18:07
aquila
205
205
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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%2f463355%2fcross-referencing-with-part-prefix-also-for-appendix%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