I want my report to have the first few sections with roman numbering (i, ii, iii...), and the body of the report with arabic numbering (1, 2, 3...) for the page numbers.
The problem is that the switch appears to be occurring a page earlier than I would expect from my code:
\documentclass{report}
\begin{document}
% === Abstract etc ===
\pagenumbering{roman}
\section*{first section}
Want this to be page i
\pagebreak
\section*{second section}
Want this to be page ii, but it appears as 1 instead
\pagebreak
% === Body of report ===
\pagenumbering{arabic} %change to arabic for final page
\section*{third section}
Want this to be page 1, but it appears as 2 instead
\section*{fourth section}
\end{document}
I can see that If I put the \pagenumbering{arabic}
command on the line below the third section then it fixes the problem, but this is inconvenient because if I have a modular document and comment out a section then I have to keep changing the position of \pagenumbering{arabic}
.
Furthermore, If I put a line break before % === Body of report ===
it fixes the problem in my MWE (but not my actual report for some reason). Very confused at this behaviour.
Is this a bug? and is there a solution around it?
\clearpage
, not\pagebreak
: you don't want to say “perhaps break here”, but “do break here”.\input{}
\clearpage
before\pagenumbering{arabic}
and\input{chapter1}
on my main tex file to tell it to go to the new page before changing the numbering.