Chapter title problems in compilation

I’ve got something I’m working on that has two nested layers of folders below the draft. I have folders for parts and chapters, and then individual scenes as files beneath each chapter.

–> [Part One]
----> [Chapter One]
----> [Chapter Two]
----> [Etc.]
–> [Part Two]
----> [Chapter One]
----> [Chapter Two]
----> [Etc.]

My problem is, when I compile this out, the “part one” folder gives me a CHAPTER ONE header, then my actual chapter one starts with CHAPTER TWO.

Is there any way I can make the Part One call itself Part One, and then the chapter start with Chapter One? And then Part Two call itself Part Two and chapter numbering restart in it?

I have a similar structure and problem. See this topic.

What I do now for the Part n titles is to name the part folders in the binder Part 1, Part 2, etc. and check the Title box beside Folder Level 1 in the Compile Formatting pane.

For Chapter titles, which are untitled in the binder and thus show Untitled, you have Folder Level 2+ in the Compile Formatting pane. Select it and click the Modify button and then the Section Layout… button and under Title Prefix and Suffix tab in the Prefix box you should have
Chapter <$n>
where <$n> auto-generates the current chapter number (1,2,3…). There are other possibilites, see this topic.

And see <$rst> for restarting numbering; I have not done that. Let us know if you get it to work; I think I saw a posting about that. I’m not sure where I would put that; maybe in the Section Layout of Folder Level 1 where each Part starts but that may not be a valid place for it.

Using the <$rst> reset token is a little difficult in combination with automatic numbering done in the compiler. The automatic numbering doesn’t take child order into account. So for instance you could have all level 1 folder set to use a prefix of “Part <$R>”, and all level 2 or greater folders “Chapter <$n>”, but there isn’t a way of making a special rule just for the first sibling level 2 folder to do something different than all of the other sibling folders within the “part”. So you can’t put in a “Chapter <$rst><$n>” prefix. Meanwhile, that code has to be directly in front of the tag it is resetting, so you can’t type it into the editor anywhere. Best you would get is something like:

“Chapter 23

In time we will be expanding the power of the auto-number token syntax so that you can do stuff like this without resets. Basically you’ll be able to use streams, so you can have more than one counter stream going on, and then what you would do is use another token which takes the parent title or relative binder position and use that as your stream. Thus, all folders within “Introduction” would be a part of the “introduction” stream. A folder from another part would print a different stream name into the token and thus run a new counter, starting from one. This would look something like this: “Chapter <$w:part<$parentposition>>”. The <$parentposition> tag gets evaluated first, so a chapter prefix in the first part would be “<$w:part1>”, and in the second part, “<$w:part2>”. Each instance of “<$w:part1>” will count up One Two Three Four… but “<$w:part2>” being in a different stream will start over and count One Two… and so on.

Right now the best you can do is use the hierarchy counter, <$hn>, at all levels. This outputs standard technical documentation numbering, like 1, 1.1, 1.2, 1.2.1, and so on. There is also a one-level-only sub-number counter, <$sn>. This would give you “Part 1” “Chapter 1”, “Chapter 2”, “Part 2”, “Chapter 1”… and so on. For that, you must use numerals though. The level 1 folders will need to be “Part <$n>” and the level 2 folders “Chapter <$sn>”.

Yup, AmberV’s firtst suggestion is how I do it… Use roman numerals for parts and numbers as words for Chapters. So…

Part I
Chapter one
Chapter two
Chapter three
Part II