MakeIndex, Nomenclature, Glossaries and Acronyms ⇒ Empty Header for Index Start Page
Empty Header for Index Start Page
on the first page of the index, I'm getting "Index" as chapter name as well as a small "Index" in the top right of the page (see attached figure). I want this header from next page but not on the starting page of Index. Where am I making a mistake?
ghss
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
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Empty Header for Index Start Page
\thispagestyle{empty}
or \thispagestyle{plain}
before \printindex
help?If not, you may have to redefine the
\printindex
command (or use a package that does so) to issue similar commands after \clearpage
Empty Header for Index Start Page
Thanks.
All this are not working.
My code is
Code: Select all
%\cleardoublepage
\clearpage
\addcontentsline{toc}{chapter}{\indexname}
%\markboth{Index}{Index}
\thispagestyle{plain}
%\thispagestyle{empty}
\printindex
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Empty Header for Index Start Page

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Empty Header for Index Start Page
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Empty Header for Index Start Page
the code is given below. I think there is some problem in my Header definition.
Code: Select all
% Example for Header in Index problem
\documentclass[10pt,twoside]{book}
\usepackage{makeidx} % for back index
% Redefining Header
\usepackage{fancyhdr}
\fancyhead[LE]{\slshape \nouppercase{\leftmark}}
\fancyhead[CE,RE,LO,CO]{}
\fancyhead[RO]{\slshape \nouppercase{\rightmark}}
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[CE,RE,LO,CO]{}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}
\fancypagestyle{plain}{%
\fancyhf{}
\fancyfoot[LE,RO]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
\fancypagestyle{chapter}{%
\fancyhf{}
\fancyfoot[LE,RO]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\hbox{}
\vspace*{\fill}
\thispagestyle{empty}
\newpage
\fi\fi}
\pagestyle{fancyplain}
\def\@makechapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
%\hrule % horizontal line
\vspace{5pt}% % add vertical space
\ifnum \c@secnumdepth >\m@ne
\center \huge \bf \@chapapp\space \thechapter % Chapter number
\par\nobreak
\vskip 20\p@
\fi
\interlinepenalty\@M
\center \Huge \bf \scshape #1\par % chapter title
\vspace{5pt}% % add vertical space
% \hrule % horizontal rule
\nobreak
\vskip 40\p@
}}
\def\@makeschapterhead#1{%
\thispagestyle{chapter}
\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
%\hrule % horizontal line
\vspace{5pt}% % add vertical space
\interlinepenalty\@M
\center \Huge \bf \scshape #1\par % chapter title
\vspace{5pt}% % add vertical space
%\hrule % horizontal rule
\nobreak
\vskip 40\p@
}}
\makeindex
\begin{document}
\chapter{Falan}
This this something "Falan".
Falan is synonym of "Foo" \index{Falan}.
\cleardoublepage
\addcontentsline{toc}{chapter}{\indexname}
\printindex
\end{document}
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Empty Header for Index Start Page
\@mkboth
(called by \theindex
), which marks both pages. You need to change that somehow. I don't think redefining it by brute force (e.g. \renewcommand{\@mkboth}[2]{}
inside \makeatletter
will do what you want.See if there's an option you can use for the fancyhdr package that redefines the "plain" style so it doesn't mark anything in the header.