
Document Classes ⇒ makeindex headers and footers
makeindex headers and footers
Another makeindex-related question: How do you make the makeindex \printindex command use the same headers and footers as in the rest of the document? On the screenshot below here you can see my normal header to the right, at the second page of the index, but the first page of the index seems to simply ignore the headers:


OS, LaTeX-system, editor: Arch Linux 64bit, TeXlive, Kile | Windows 10 Professional 64bit, MikTeX 4.9, TeXnicCenter 2.02 64bit
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: makeindex headers and footers
How do you create your page headers?
Best regards
Thorsten¹
Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10323
- Joined: Mon Mar 10, 2008 9:44 pm
makeindex headers and footers
LaTeX.org admin
makeindex headers and footers
I use fancyhdr. The following is the code from my preamble to define my fancy-style:localghost wrote:How do you create your page headers?
Code: Select all
\usepackage{fancyhdr}
\fancyhead{} % clear all header fields
\fancyhead[RE,LO]{\bfseries\nouppercase{\leftmark}}
\fancyhead[RO,LE]{\thepage}
\fancyfoot{} % clear all footer fields
\renewcommand{\headrulewidth}{0.2pt}
\renewcommand{\footrulewidth}{0.0pt}
I've tried with \thispagestyle, but it doesn't seem to work out. The codeStefan_K wrote:perhaps use \thispagestyle or provide some more information.Stefan
Code: Select all
\thispagestyle{fancy}
\printindex
OS, LaTeX-system, editor: Arch Linux 64bit, TeXlive, Kile | Windows 10 Professional 64bit, MikTeX 4.9, TeXnicCenter 2.02 64bit
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
makeindex headers and footers
Take a look at the fancyhdr documentation (Section 7 - Redefining plain syle, p. 7f). Just define the pagestyle plain in the same way as your fancy pagestyle.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
makeindex headers and footers
That workedlocalghost wrote:Just define the pagestyle plain in the same way as your fancy pagestyle.

OS, LaTeX-system, editor: Arch Linux 64bit, TeXlive, Kile | Windows 10 Professional 64bit, MikTeX 4.9, TeXnicCenter 2.02 64bit