Page Layout ⇒ Problem with page header
Problem with page header
I am using the document class AMSBook to write my thesis. One of the appendices has the title "Proof of Lemma \ref{LemmaLabel}". In the text, the title appears as it should (i.e., with the appropriate reference number). However, the page header says "Proof of Lemma ??". Is there some way this problem can be fixed without hard-coding the correct number in the title?
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Problem with page header
Look at the warnings, LaTeX should tell you the name of the label which is missing. Perhaps you will see that it misses an uppercase label, since page headers are capitalized with amsbook. If it's a capitalization issue, you can easily fix it by using a label name with all caps. There's another way, kind of a trick, such as writing
since amsmath doesn't capitalize math.
Stefan
Code: Select all
\section{Proof of Lemma $\text{\ref{LemmaLabel}}$}
Stefan
LaTeX.org admin
Re: Problem with page header
Thanks! Changing the labels to uppercase fixed the problem. Earlier I had seen that the warnings complained about them being undefined, but I didn't realise that the case was the problem.