Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
Continuous v. per-chapter/section numbering of figures, tables, and other document elements

I am using the book document class and have parts, chapters, sections and subsections. Currently, the following default numbering scheme is being used and produces the following:


Part I
--Chapter 1
----Section 1.1
------ Subsection 1.1.1
----Section 1.2
------ Subsection 1.2.1
--Chapter 2
----Section 2.1
----Section 2.2
--etc.

What I would like, however, is to number the sections with sequential integers, like so:


Part I
--Chapter 1
----Section 1
------Subsection 1.1
----Section 2
------Subsection 2.1 
--Chapter 2
----Section 3
----Section 4
--etc.

Basically, I just want the section counter to be integral and be reused while the other numbering remains (relatively) this same. What must I do to effect this scheme?

share|improve this question

marked as duplicate by lockstep, Werner, Mike Renfro, Martin Scharrer Jan 5 '12 at 9:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

1 Answer 1

up vote 6 down vote accepted

Use

\counterwithout{section}{chapter}

from the chngcntr package:

Section number continuous across chapters

\documentclass{book}
\usepackage{chngcntr}% http://ctan.org/pkg/chngcntr
\counterwithout{section}{chapter}
\begin{document}
\tableofcontents
\part{A part}
\chapter{A chapter}
\section{A section}
\subsection{A subsection}
\section{A section}
\subsection{A subsection}
\chapter{A chapter}
\section{A section}
\section{A section}
\end{document}​

\counterwithout{<cntrA>}{<cntrB>} removes the resetting of <cntrA> when <cntrB> is incremented. In book and report, this is the default.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.