How to reset chapter numbers for each part

Hello hello !

Does anyone one how to get the table of contents to make the numbers start again the number of the chapters for each new part please ?

at the moment I have:

Part 1

chap1

chap2 etc

Part 2 chapt 3

chapt 4 which does not make sense for what I am writing :slight_smile:

Welcome to the Scrivener. forum.

Looking at all the options for Placeholders (Menu: Help → List of all Placeholders) in the section “Auto Numbering” kinda hurts my brain. Perhaps have a look there and see what might work for you?

Wow ! thanks for your fast answer! Its indeed hurt my brain too and not being a native english speaker doesn’t help there. But I’ll keep looking, thanks :slight_smile:

See if this works:

  1. open the compile settings (File→Compile).
  2. On the left are some Formats, double click on the one you’re using (e.g. Manuscript (Times))
  3. It will ask if you want to “Duplicate and Edit” (since you can’t change the built-in ones), and you want to select Yes (or whatever the text is for not-canceling)
  4. This opens a dialog with “Section Layouts” already selected on the left, upper portion has a list of the Section Layouts, and under that are some various options that you can apply to the selected layout.
  5. Select the Chapter Heading layout
  6. Select Title Options for the bottom half
  7. It should say “Title Prefix:” and say something like “Chapter <$t:chapter>” or something like that. Make careful note of what’s in between the <> characters (in this case: “$t:chapter”
  8. In the upper half, select Part Number. Select for the bottom (it probably is already selected) the same “Title Options” tab.
  9. Now, under Title Prefix, it will says something like “Part <$t:part>”
  10. What you want to do, is add content to here that will reset the chapter counter, which is what you noted in step 7. You reset a counter by replacing the “t:” after the “$ character with “rst_” (leaving the rest).
    So, in our example, you would edit the Title Prefix by adding after the existing “Part <$t:part>” such that it now says “Part <$t:part><$rst_chapter>”
  11. Save and proceed :slight_smile:

Does that work? Does it make sense?
Basically what you want to do is identify the counter that is being used at compile time for the chapters, and reset that counter every time you start a new Part.

5 Likes

Tried and did create chapter reset. Key is duplicating and giving Section Layout a descriptive name, or put in the Section Layout label Part(or ACT) <$t:part><$rst_chapter> to avoid confusion.

1 Like

Hey !
I do not have enough time yet to try it but it seems very clear, thank you very much to everyone :blush:

Hi again ! Seems like it worked nicely, thank you !! :slight_smile:

1 Like