# Page number is reset to 0 with \include command

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.

-
then there is something wrong with your setting or you have a command like `setcounter{page}{0}` elsewhere. It is not the default that the page number is reset –  Herbert Nov 19 '11 at 20:58
Could you provide a few more details, ideally in the form of a MWE? Quite often, the process of forming a MWE will help to debug the problem. Please include the `documentclass` and any important packages. –  cmhughes Nov 19 '11 at 20:58
The obvious place to look would be near the top of each included file. It could be that you made a template file for each with a `setcounter` in and later filled in the content. –  qubyte Nov 20 '11 at 4:40
Maybe you have something like `\counterwithin{page}{chapter}` or `\@addtoreset{page}{chapter}`? Best would be to make a MWE (see cmhuges comment). BTW: If you don't want chapter (and section and subsection …) numbers, you should try `\setcounter{secnumdepth}{-2}` at the document preamble. If only chapter shouldn't have a number, you may e.g. try a KOMA-Script class and either `\renewcommand*{\chapterformat}{}` at your preamble or replace `\chapter{…}` by `\addchap{…}`. Maybe you should ask another question for this (if search does not already offers one). –  Schweinebacke Nov 20 '11 at 10:24

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.

-
I would suggest using `\input` instead of `\include`. You can begin each sub-file with a `\chapter` and it would work perfectly. I did the same with my MS thesis.