
Document Classes ⇒ makeindex headers and footers
makeindex headers and footers

Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: makeindex headers and footers
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
makeindex headers and footers
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
makeindex headers and footers
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.