TransWikia.com

How do I change numbering from arabic letters to roman letters after ToC and set countering to 1?

TeX - LaTeX Asked by Fendi on July 11, 2021

I am trying to change the numbering from roman to Arabic after my Table of Contents. So far I found out that I need those two things:

  • pagenumbering{roman}

  • pagenumbering{arabic}

But I am not quite sure where to put them and how to edit the count of numbers. I need to start from 1 again after table of contents. This is my code so far:

begin{document} 

pagenumbering{Roman}

hypersetup{pageanchor=false}

input{title page}

newpagenullthispagestyle{empty}newpage

cleardoublepagestepcounter{blankpages}

hypersetup{pageanchor=true}

tableofcontents

   pagenumbering{arabic}

   input{chapter1.tex}

   input{chapter2.tex}

   input{chapter3.tex}

   input{chapter4.tex}

   input{chapter5.tex}

   input{chapter6.tex}

   addcontentsline{toc}{chapter}{textbf{Table of figures}}

   listoffigures

   addcontentsline{toc}{chapter}{bibliography}

   mbox{}

   printbibliography

end{document}

So to sum up my question: I wanna have counting in Roman until ToC (ToC included) and after the ToC, Chapter 1, Chapter 2, etc. in Arabic plus starting from 1 again.

One Answer

You need to use

tableofcontents

cleardoublepage

pagenumbering{arabic}

input{chapter1.tex}

% ...

for the page number of the first chapter in chapter1.tex to start on page 1. The key here is to use cleardoublepage so you're on the correct (recto) page for a chapter. That way pagenumbering{arabic} would reset the page number on the page you want.

Be aware that resetting the page numbering might cause issues when using hyperref.

Answered by Werner on July 11, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP