GeneralMentioning "Page" in ToC, LoF and LoT

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

Mentioning "Page" in ToC, LoF and LoT

Post by bkarpuz »

Dear LC members,

My problem is the following.
In the table of contents, list of figures and list of tables, before the Caption and the list
I need to put the text Page right flushed (just above the page numbers) as follows.
_________Table of Contents_________
_____________________________________Page
1 Introduction......................................1
2 Main Results.......................................3
3 Conclusion........................................8
Is that possible?

Thanks.
bkarpuz

Note. The background html color code for quote environment is #EBEADD.
Last edited by bkarpuz on Fri Feb 10, 2012 3:49 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Mentioning "Page" in ToC, LoF and LoT

Post by Stefan Kottwitz »

Hi,

you can do it with \addtocontents, flushed right by \hfill:

Code: Select all

\documentclass[a5paper]{article}
\begin{document}
\addtocontents{toc}{\hfill\textbf{Page}\par}
\tableofcontents
\section{Introduction}
\clearpage
\section{Main Results}
\clearpage
\section{Conclusion}
\clearpage
\end{document}
contents.png
contents.png (3.38 KiB) Viewed 1821 times
Stefan
LaTeX.org admin
Post Reply