Page Layout ⇒ Changing page numbers to letters AND numbers
Changing page numbers to letters AND numbers
I am writing a report and there are three clear parts each with different styles of page numbering. The first two I have been able to do, (these were lower case roman, and standard).
However, the third part is the appendix, for which each section is named A,B,C etc. What I want to do is to make the page number the section plus the page number.
i.e A1, A2, A3... for appendix A
B1, B2, B3... for appendix B and so on.
I am able to do this in the document by adding a \sectionname command in the footer but the problem arises because the table of contents obviously doesn't recognise the letter.
Is there a way of defining the page to be both a letter (the appendix letter) AND the page number of the appendix and to make it appear correctly in the toc?
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Changing page numbers to letters AND numbers
Code: Select all
\documentclass[11pt,a4paper,english]{report}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{lmodern}
\usepackage[auto]{chappg}
\usepackage{blindtext}
\parindent0em
\begin{document}
\Blinddocument
\appendix
\blinddocument
\end{document}
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10