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

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

User avatar
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