In the LaTeX book class, I would like to have my page numbers start at one on the title page, and continue in arabic numbers all the way through to the end of the index.
I find that the \mainmatter command, in addition to starting section numbering, also resets the page numbers.
After reading this question I tried running this in my preamble:
\renewcommand\mainmatter{%
\cleardoublepage
\@mainmattertrue}
But I ended up with:
! You can't use `\spacefactor' in vertical mode.
\@->\spacefactor
\@m
l.45 \mainmatter
! ==> Fatal error occurred, no output PDF file produced!
How can I achieve my aim of continuous numbering?
\frontmatterinstruction after\begin{document}? If so, just omit the\frontmatterinstruction. – Mico Apr 04 '16 at 19:28@sign is "internal" and has to be treated specially. just wrap this definition in\makeatletter ... \makeatotherand that will get rid of the error message. whether it will give the result you're looking for is untested. – barbara beeton Apr 04 '16 at 19:29renewcommandmacro for some reason - I just included\makeatletter\@mainmattertrue\makeatother \cleardoublepagewhere I used to have\mainmatter). – Bill Cheatham Apr 04 '16 at 19:41\mainmatteris usually used just before the first chapter, if you leave it there unchanged, you will get duplicate page numbers. the change you made (omitting\pagenumbering{arabic}) gets rid of that problem. – barbara beeton Apr 04 '16 at 20:05\renewcommand*\pagenumbering[1]{}– touhami Apr 04 '16 at 22:56