here it is my document
\pagenumbering{gobble}
\input{frontmatter/frontespizio}
\pagenumbering{roman}
\tableofcontents
\pagenumbering{arabic}
\input{mainmatter/chapter_1}
what it happens is that tableofcontents
receives arabic numbering and I don't get roman numbering
Best Answer
The page number form is used that is active, when the page is output. Thus when
\pagenumbering{arabic}
is called, the page of the table of contents is not yet output. Add something like\newpage
to start a new page, e.g.:If you are using document class
book
or similar consider using\frontmatter
and\mainmatter
.