Prelude:
"Right now it's like this, And [next one is how] I want to have this:"
Example took from this question on latex.org from 2007: Removing the page number from table of contents
% Current
Page 1 - Table of contents
Page 2 - Introduction
...
% Expected
Table of contents
Page 1 - Introduction
...
Problem Case:
- Say, I am making a document on a per chapter basis. So, making a chapter, taking print out - submitting it, then repeating for further chapters. [Project/Paper submissions in formal institutes]
- Now, being only few chapters, the TOC is only one page and numbered 1. And chapter numbers start from 2.
- On the due course, the TOC becomes long to span multiple pages, now the page numbers on my past submissions are not consistent with my document. And the TOC to be submitted in the end will (of course) be inconsistent as well.
Details:
So, In LaTeX2e <2022-06-01> patch level 5 and prior as well,
- what is that rationale behind inclusion of ToC in the starting of page numbering??
- And the steps for accomplishing this (see below) feel more like dealing with elements individually similar to WYSIWYG editors like MS Office
- Given the philosophy behind LaTeX - mostly good looking formatting out of the box, and defining the structure of the document, this doesn't seem to fit there.
- So, either i am missing a better way to accomplish this :
- like say, if there's some high level command to explicitly announce the start of different types of numberings, i.e. which does all the above things - terminates the previous numbering there, sets the counter anew, and starts the new numbering style as specified
- this would be similar to
\appendixdoes all those things for the chapter numbering
- or if this is THE way, then I'd like to know the reason/rationale behind.
The steps for accomplishing this:
\documentclass[12pt,a4paper,oneside,titlepage]{report}
\renewcommand*\rmdefault{ptm}
\begin{document}
% Change style of or Remove page numbering to avoid ambiguity
\pagenumbering{roman}
\tableofcontents
% \thispagestyle{empty}
% The counter doesn't seem to reset without this command
\clearpage
% Set p-no. style back to Indo-Arabic
\pagenumbering{arabic}
% Reset the page counter
\setcounter{page}{1}
\chapter{Introduction}
...
\appendix
\chapter{A}
\end{document}