[Tex/LaTex] Page number is reset to 0 with \include command

includepage-numbering

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:

\setcounter{secnumdepth}{-1}

in the preamble is all that's needed and a chapter can start as, for instance,

\chapter{Notas sobre la edición y la traducción}

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 as

\numberwithin{page}{chapter}

In 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.