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.
setcounter{page}{0}elsewhere. It is not the default that the page number is reset – Nov 19 '11 at 20:58documentclassand any important packages. – cmhughes Nov 19 '11 at 20:58setcounterin and later filled in the content. – qubyte Nov 20 '11 at 04:40\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