I am writing a lengthy document that I have divided in chapters. Each chapter is in a separate file which is called from the master file by means of the command \include
.
The problem is that every time an \included
file starts the page number is reset to 1. Of course, I can control it inserting manually \setcounter{page}{number}
at the beginning of each chapter, but I must be doing something wrong.
Any idea of why this is happening?
Thanks.
Best Answer
If you don't want numbered chapters it's not as complex as you seem to think:
in the preamble is all that's needed and a chapter can start as, for instance,
As already pointed out in the comments, there's no way that
\include
resets the page number by itself, unless you have loaded some package that implements page numbering by chapters or have given a command such asIn this case it's not
\include
that resets the page number, but\chapter
, because LaTeX has been requested to do so.Check if in your preamble
page
is mentioned and take the appropriate action, that is deleting the instruction.