[Tex/LaTex] “Page” heading on contents tables

sectioningtable of contents

Currently, this code generates pages that look something like:

  First thing.................i
  Second thing...............ii
1 First Big Chapter...........1

and so forth, which is fine except that I need the word "page" above the right-hand column:

                           Page
  First thing.................i
  Second thing...............ii
1 First Big Chapter...........1

I need this "Page" heading on the Table of Contents, List of Figures and List of Tables.

UPDATE:

After my previous attempts at adding \hfill Page into the \tableofcontents macro in uafthesis.cls, I tried a new approach based on
this posting. It's pretty close, but there's one problem: The bibliography now has a "Page" header too! I've tried using the TeX \newif and friends to make it go away, but no dice.

Best Answer

I assume that you added the lines 396-399 to the source of the class file. Delete them and try the approach shown below.

\documentclass[11pt,english]{uafthesis}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{blindtext}

\AtBeginDocument{%
  \addtocontents{toc}{~\hfill Page\par}
  \addtocontents{lof}{~\hfill Page\par}
  \addtocontents{lot}{~\hfill Page\par}
}

\begin{document}
  \tableofcontents
  \listoffigures
  \listoftables

  \blinddocument\cite{key}

  \begin{figure}[!ht]
    \centering
    \rule{6.4cm}{3.6cm}
    \caption{Dummy figure}\label{fig:dummy}
  \end{figure}

  \begin{table}[!ht]
    \caption{Dummy figure}\label{tab:dummy}
    \centering
    \rule{6.4cm}{3.6cm}
  \end{table}

  \begin{thebibliography}{9}
    \bibitem{key} Bibliography Item
  \end{thebibliography}
\end{document}

In case these lists spread over multiple pages, you will have to add the term »Page« anew as shown in Herbert's answer to the mentioned question.

By the way, it is no good practise to edit a class file. You better redefine the critical parts in the preamble. Note that the blindtext package is only for creating the dummy document thus not part of the solution.

Related Question