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.
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
- 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