Page LayoutFancy headers in frontmatter

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
dlaureys
Posts: 1
Joined: Wed Oct 27, 2010 12:11 am

Fancy headers in frontmatter

Post by dlaureys »

Hey, i'm using the package fancyhdr to make nice headings in my thesis. It works fine in the mainmatter, but i have some problems in the frontmatter. The table of contents, list of figures and list of tables are in the headings always displayed uppercase. The heading of the glossary is always displayed lowercase. I seem unable to change it with the commands of fancyhdr (they work fine in the mainmatter).
Anyone has a solution for this?

Thanks


\usepackage[toc]{glossaries}
\usepackage{fancyhdr}

\pagestyle{fancy}
\fancyhf{}
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{#1}}{}}
\lhead{\leftmark}
\rhead{\thepage}
\renewcommand{\headrulewidth}{1.2pt}
\headsep = 15pt
\footskip = 30pt
\headheight = 15 pt

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Fancy headers in frontmatter

Post by localghost »

Focus on one particular line in your code snippet and think about what it's doing.

Code: Select all

\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{#1}}{}}
The fancyhdr manual shows you how to format your headers as desired.


Best regards and welcome to the board
Thorsten
Post Reply