Page LayoutPage details problem in ToC, LoF, LoT

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
triathlonmatt
Posts: 4
Joined: Tue Nov 30, 2010 5:17 pm

Page details problem in ToC, LoF, LoT

Post by triathlonmatt »

Hi,
I'm trying to add the word 'page' to my toc with no luck, but it will work with 'lof' and 'lot'

Code: Select all

\documentclass[a4paper, 12pt]{article}
\author{Whoever}
\title{Boring}

\usepackage{amsmath}
\usepackage[left=2.8cm,right=2.8cm,bottom=3cm]{geometry}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{eurosym}
\usepackage[round]{natbib}
\usepackage{indentfirst}

\begin{document}
\maketitle
\tableofcontents
\listoffigures
\listoftables

%\addtocontents{toc}{\protect\makebox[\textwidth][r]{Page}\protect}%This line
\addtocontents{lof}{\protect\makebox[\textwidth][r]{Page}\protect}
\addtocontents{lot}{\protect\makebox[\textwidth][r]{Page}\protect}
\section{Introduction}
blah blah
\section{Results}
blah blah

\end{document}
I'm sure its something easy to solve but its bugging me. Any help gratefully received.
Matt
Last edited by triathlonmatt on Mon Dec 06, 2010 12:05 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.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Page details problem in ToC, LoF, LoT

Post by frabjous »

You might do this. It seems to line up the word with the right border of the page better anyway:

Code: Select all

\addtocontents{toc}{\hfill Page\par}
\addtocontents{lof}{\hfill Page\par}
\addtocontents{lot}{\hfill Page\par}
There are probably better ways too. Maybe someone will know.
triathlonmatt
Posts: 4
Joined: Tue Nov 30, 2010 5:17 pm

Re: Page details problem in ToC, LoF, LoT

Post by triathlonmatt »

Thank you frabjous, worked perfectly and was lined up better.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Page details problem in ToC, LoF, LoT

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic (not the last post) accordingly as clearly written in the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminder will not be necessary.


Thorsten
Post Reply