Skip to content
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

[FEATURE] Unable to use \ref in appendix chapter and section names #21

Open
mc-nya opened this issue Aug 10, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@mc-nya
Copy link

mc-nya commented Aug 10, 2024

Describe the bug
I'm not able to use \ref in the appendix section names that refer to the labels in the main context, for example, I have a theorem labeled as "\label{thm}" In the main context. In the appendix I have a section name \section{Proof of \ref{thm}}, the compiler will raise an error and stop generating.

To Reproduce
Steps to reproduce the behavior:
if replace \chapter{Example Appendix 01} in example_appendix_01.tex with \chapter{Example Appendix 01 of Chpt\ref{chpt:introduction}}, the file will not compile.

Expected behavior
I believe it should work and create output as Example Appendix 01 of Chpt1

Additional context
I did a short investigation and found the compiler will write a BOOKMARK with \ref in the main.out file, that might raise syntax errors in the compiler? Also, I realized that in thesis-umich.cls, ln.1101, the appendices environment redefines the chapter counter so the label from the main context may not carry over.

@mc-nya mc-nya added the bug Something isn't working label Aug 10, 2024
@meluso meluso added enhancement New feature or request and removed bug Something isn't working labels Aug 13, 2024
@meluso
Copy link
Owner

meluso commented Aug 13, 2024

Hi there, thanks for finding this and doing some digging! I'll look into this. I'm going to recategorize this to a feature request as it doesn't prevent the template from meeting Rackham's requirements, but thank you for pointing this out!

@meluso meluso changed the title [BUG] Unable to use \ref in appendix chapter and section names [FEATURE] Unable to use \ref in appendix chapter and section names Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants