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.

I have a weird problem. My subsections are numbered like this:

Chapter 1: Subsection 1.0.1 Subsection 1.0.2 Subsection 1.0.3

Chapter 2: Subsection 2.0.4 Subsection 2.0.5

...

Chapter X: Subsection X.0.

I have no idea how to start fixing this error. The only warning I get is:

Chapter1.tex(1): Underfull \vbox (badness 10000) has occurred while \output is    activepdfTeX warning (ext4): destination with the same identifier (name{page.1}) has been       already used, duplicate ignored
Chapter1.tex(26): destination with the same identifier (name{page.2}) has been already used, duplicate ignored

but I doubt it has anything to do with the problem. Appreciate any ideas.

share|improve this question
5  
The level below \chapter is \section. –  egreg Sep 16 '11 at 23:19
    
yes exactly this was the issue as mentioned in my comment to the accepted answer :) +1 anyway :) –  mkk Sep 17 '11 at 3:59
add comment

1 Answer

up vote 11 down vote accepted

You are using the sectioning commands \chapter (level 0) and \subsection (level 2), but not the "in-between" command \section (level 1). This is rather uncommon and possibly a misunderstandng on your part.

If you insist on using \subsection this way, you have to reset the subsection counter manually immediately after the start of a new \chapter. See Resetting theorem counters: \sections and (missing) \subsections for an explanation.

\documentclass{report}

\begin{document}

\chapter{bla}

\setcounter{subsection}{0}

\subsection{blubb}

\chapter{foo}

\setcounter{subsection}{0}

\subsection{bar}

\end{document}
share|improve this answer
    
stupid me. I was using \subsection instead of \section :) thank you very much! –  mkk Sep 16 '11 at 23:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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