2

For my thesis I'm adding an 'Addendum' with extra pages. I want the pages in the addendum being numbered as 'A1'. In this I succeeded using fancyhdr and \cfoot. Unfortunately in my table of contents this shows up as '1' instead of A1. Can somebody help? Thanks in advance. Here is my code and output:

\documentclass[11pt,a4paper,oneside]{book}
\usepackage{graphicx,xcolor,textpos}
\usepackage{helvet}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{dirtytalk}
\usepackage{float}
\usepackage{fancyhdr}
\begin{document}
\rmfamily
\renewcommand{\rmdefault}{phv} % Arial
\renewcommand{\sfdefault}{phv} % Arial
\leading{18pt}\selectfont
\setcounter{page}{0}
\pagenumbering{roman}
{\pagestyle{plain}
\tableofcontents
\chapter{chapter 1}
 …
\chapter*{Addendum}
\label{Addendum}
\thispagestyle{fancy}
\fancyhf{}
\renewcommand\headrulewidth{0pt}
\pagenumbering{arabic}
\cfoot{A.\thepage}
\addcontentsline{toc}{chapter}{Addendum}
\end{document}

Output:

enter image description here

Snapshot of my table of contents:

enter image description here

  • Welcome to TeX.SE! What document class are you using? It would be more likely someone can come up with an answer if you provided a minimal working example (MWE). – Troy May 24 '18 at 12:54
  • I'm sorry I'm new to this :). I have edited my post with more code, hope this is sufficient. Thanks in advance! – Koen May 24 '18 at 13:07
  • There is a spurious "{" before \pagestyle{plain} – Raoul Kessels May 24 '18 at 13:50
1

You have to redefine the command \thepage. Instead of issuing \pagenumbering{arabic}, use:

%\pagenumbering{arabic}
\renewcommand{\thepage}{A.\arabic{page}}

Then, the page numbers will appear as A.<page> in both the page and the table of contents.

enter image description here

  • @Koen if it has worked for you, you might consider marking the answer as accepted – Raoul Kessels May 24 '18 at 13:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.