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 the following macro

\newcommand{\softChapter}[1]{

    %Create chapter
    \chapter*{#1}

    %Add it to TOC
    \addcontentsline{toc}{chapter}{#1}

    %Reset section counter, to avoid precedent section
    %from interfering
    \setcounter {section} {0}
}

I do want it have to do, an unumbered chapter, expect for one thing. The sections under i start, with 0, so my section are 0.X.X. I want my section to be. X.X

share|improve this question
    
Wouldn't that be confusing since they would appear to be from different chapters? –  TH. Mar 23 '11 at 1:13
    
I agree but it's to match an assignment requirements. Beside it's more like there is two document merged in the same PDF. –  Olivier Toupin Mar 26 '11 at 19:16
add comment

1 Answer

up vote 8 down vote accepted

You can use the chngcntr package to change the dependence between the chapter and section counters.

\counterwithout{section}{chapter}

This will have the desired effect.

share|improve this answer
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.