Page LayoutIndex Page Number

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
LaTeXUser54
Posts: 4
Joined: Sat Jul 07, 2012 5:50 pm

Index Page Number

Post by LaTeXUser54 »

Why is it that. when I typeset my document, the page number on the last page, which is also the index page, is at the bottom in the center? On all other pages, the page number alternates left-right, left-right. How can I fix the index page number? I'm using the document class of amsart.

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Index Page Number

Post by cgnieder »

Hi,

Since you didn't provide a Infominimal working example I can't be sure but it sounds like (and is the default behavior I believe) like \printindex invokes \pagestyle{plain}. Should you happen to use a KOMA class you can redefine \indexpagestyle:

Code: Select all

\documentclass{scrartcl}

\usepackage{scrpage2}
\usepackage{makeidx}
\usepackage{kantlipsum} % to provide sample text

\clearscrheadings
\ohead{\thepage}
\pagestyle{scrheadings}
\renewcommand*\indexpagestyle{scrheadings}

\makeindex
\begin{document}
\kant[1]\index{Entry}
\kant[2]\index{Another entry}
\kant[3]\index{Entry}
\kant[4]\index{Yet another entry}

\printindex
\end{document}
Regards
site moderator & package author
Post Reply