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!
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- 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}
-
- 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}