General ⇒ How to add an additional line to TOC over page numbers?
How to add an additional line to TOC over page numbers?
congratulations, this community forum seems really great. So far forum search helped me to solve most of my latex problems but one...
In the table of contents i would like to add (on every page where TOC appears) a line with word "Page" right over page numbers, so that it would be aligned to the right (don't ask me why do i need it, i don't understand it myself, these are our University rules...). Is there any way to do so? I am using custom .cls file applied to "report" class i think (if it helps it's distributed in the internet as "disser").
I would like it to look approximately like this:
..............Table of Contents
...............................................Page (just without those dots to the left in this line)
1 Some chapter ..........................1
1.1 And section ..........................2
1.1.1 Subsection ........................3
Greetings,
Misha
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
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
How to add an additional line to TOC over page numbers?
you could use \addtocontents:
Code: Select all
\addtocontents{toc}{\protect\hfill Page\par}