Page LayoutChanging page numbers to letters AND numbers

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
pooley343
Posts: 17
Joined: Mon Oct 20, 2008 2:53 pm

Changing page numbers to letters AND numbers

Post by pooley343 »

Hi everyone, I hope you can help.

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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Changing page numbers to letters AND numbers

Post by localghost »

You can use the chappg package. Consider the following example.

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}
I didn't look into the manual for customization. So you will have to do that on your own.


Best regards
Thorsten¹
Post Reply