MakeIndex, Nomenclature, Glossaries and Acronyms ⇒ Empty Header for Index Start Page
Empty Header for Index Start Page
Hello,
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
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
NEW: TikZ book now 40% off at Amazon.com for a short time.
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Empty Header for Index Start Page
Does issuing
If not, you may have to redefine the
\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
Hello,
Thanks.
All this are not working.
My code is
And I tried all commented ones also.
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
Last edited by cgnieder on Sat Nov 03, 2012 11:49 am, edited 1 time in total.
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Empty Header for Index Start Page
I'm going to need more information to find out what you're doing. Please post a
minimal working example.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Empty Header for Index Start Page
You may take a look at the imakeidx package. But in general you should follow the advice of kaiserkarl13 regarding the MWE.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
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
Empty Header for Index Start Page
Hello,
the code is given below. I think there is some problem in my Header definition.
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
The problem is that the fancy page style is defining
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.
\@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.