Page Layout ⇒ How to add custom numbering - e.g. COVER, or Page #
How to add custom numbering - e.g. COVER, or Page #
I'm finalising a report and have managed to nicely number the main report in arabic and the abstract & contents in roman form. However, I'd like the front cover to simply display "COVER" in the page number field when viewed as a PDF.
I've seen this done for eBooks and other documents but despite extensive searching for suitable code / a package I can't find a way to do it in Latex.
Does anyone have any ideas?
Thanks!
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
-
west.logan
- Posts: 87
- Joined: Tue Sep 14, 2010 6:58 pm
Re: How to add custom numbering - e.g. COVER, or Page #
\cfoot{COVER}
and then say
\thispagestyle{fancy}
for the title page. If it shows a right foot page number you don't want (for example) then you can do \rfoot{} to make it empty.
How to add custom numbering - e.g. COVER, or Page #
@RiW, if you don't need a page number on title page, then one way would be to simply redefine \thepage counter, e.g.:
Code: Select all
\documentclass{report}
\usepackage{lipsum}
\usepackage{hyperref}
\begin{document}
\renewcommand{\thepage}{Cover}
\thispagestyle{empty}
{\Huge Title page}
\clearpage
\pagenumbering{roman}
\chapter{A chapter}
\lipsum[1-2]
\section{A section}
\lipsum[1-2]
\clearpage
\pagenumbering{arabic}
\chapter{Another chapter}
\lipsum[1-2]
\section{Another section}
\lipsum[1-2]
\end{document}
-
west.logan
- Posts: 87
- Joined: Tue Sep 14, 2010 6:58 pm
Re: How to add custom numbering - e.g. COVER, or Page #
How to add custom numbering - e.g. COVER, or Page #
Code: Select all
\renewcommand{\thepage}{Cover}