Page LayoutProblem with page header

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
marcdein
Posts: 40
Joined: Sat Dec 19, 2009 2:11 pm

Problem with page header

Post by marcdein »

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?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Problem with page header

Post by Stefan Kottwitz »

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

Code: Select all

\section{Proof of Lemma $\text{\ref{LemmaLabel}}$}
since amsmath doesn't capitalize math.

Stefan
LaTeX.org admin
marcdein
Posts: 40
Joined: Sat Dec 19, 2009 2:11 pm

Re: Problem with page header

Post by marcdein »

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.
Post Reply