You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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
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.
The text was updated successfully, but these errors were encountered: