1

I am trying to create a booklet and this booklet contains four parts. Every part has some chapters, but memoir does not start recounting every chapter after a new part has started.

So I am getting this:

Part I

  1. Chapter
  2. Chapter
  3. Chapter

Part II 4. Chapter 5. Chapter

But I want this:

Part I

  1. Chapter
  2. Chapter
  3. Chapter

Part II

  1. Chapter
  2. Chapter

How do I get this?

Thank you very much in advance!

5
  • 1
    \counterwithin*{chapter}{part} should do.
    – Skillmon
    May 27, 2022 at 20:50
  • 4
    Don't. But if you really want it, add \counterwithin*{chapter}{part} to your document preamble.
    – egreg
    May 27, 2022 at 20:51
  • Why do you say don't? Thanks for the suggestion b.t.w. May 27, 2022 at 20:52
  • 2
    Because it'll get confusing if you say "look at chapter 1" (which 1 is 1?)
    – Skillmon
    May 27, 2022 at 20:52
  • That might be true. I am going to reconsider this. Thanks for your help. May 27, 2022 at 20:56

1 Answer 1

3

Reconsider it. However, you can do it and just comment the relevant line when you change your mind about it. I don't recommend doing it, because cross references will become awkward:

As we saw in chapter 1 of part II, something different happens with respect to what we saw in chapter 2 of part I.

\documentclass{memoir}

%%% reset the chapter counter when a new part starts
\counterwithin*{chapter}{part}

\begin{document}

\part{Title}

\chapter{Title}

\chapter{Title}

\part{Title}

\chapter{Title}

\chapter{Title}

\end{document}

enter image description here

Production note. In order to make the image, I used the oneside option and geometry with the a6paper option, but omitted that in the code above.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .