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

Putting \ref inside \section - Top of page problem #105

Open
Bruno-Eijs opened this issue Dec 20, 2021 · 0 comments
Open

Putting \ref inside \section - Top of page problem #105

Bruno-Eijs opened this issue Dec 20, 2021 · 0 comments

Comments

@Bruno-Eijs
Copy link

I have some sections that refer to theorem numbers in their titles. The title then prints it out fine, but at the top of the page the section title is printed again and here the theorem number is just question marks.

Example code:

\section{The proof of Theorem \ref{thm:theorem} }

I've tried replacing it with

\section{The proof of Theorem \texorpdfstring{\ref{thm:theorem}}{TEXT} }

but that doesn't help. Maybe there is a work around like storing the reference as a sort of variable first, but I'm not sure how to go about this. Many thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant