I am quite confused by the system for assigning and controlling hierarchical section numbering. I am writing a technical, academic work. My publisher has requested a format similar to the following:
Part 1
Chapter 1
(Section) 1.1
(Subsection) 1.1.1
(Subsubsection) 1.1.1.1
There are no subsubsubsections, as it gets kind of ridiculous to read after that.
I cannot for the life of me figure out how to accomplish this with placeholder tags in the Format pane of the compiler options. My ms is currently laid out as such:
(Folder) Part, with introductory text (sometimes)
-> (Document, containing documents) Chapter, with introductory text
-> -> (Document, which may or may not contain documents) Section, with section text
and so on for subsections and sub subsections.
Is there a way to arrange this? If I simply use the <$hn> tag as the basis for numbering, I’ll get:
Part 1
Chapter 1.1
(Section) 1.1.1
etc.
I have figured out how to use tagged numbering, so I can, for example, make the prefix for chapters “Chapter <$n:chapter>” and the first section prefix into “<$n:chapter>.<$n:section>”, with the appropriate <$rst_section> in the suffix for the chapters so that section numbering starts over with the start of each chapter. However, this approach gets me this:
Part 1
Chapter 1
(section) 2.1
(subsection) 3.2.1
etc.
I think this is because the tagged chapter/section/etc numbers auto increment each time they are used. I could stop this by using a construction like <$n:chapter:chapterNumber> to assign a reference to that particular number, but then I have to go through gyrations to assign a unique reference name to each chapter, section, etc.
One post I saw had a solution like this, using a piece of metadata assigned uniquely for each section: thus, each chapter prefix would look like <$n:chapter:<$custom:chapterName>>. This is a) a terrible kludge, and b) a lot of work to add 325 extra pieces of metadata whose only use is to keep the section numbering in line.
Is there any other (hopefully simple) way to accomplish the numbering scheme I want? I’m kind of at my wit’s end. I’m not sure yet whether I will be compiling to a Word .docx or to MultiMarkdown->LaTeX, so I can’t insert LaTeX tags to accomplish it (and it’s been 20 years since I last used LaTeX).
(A related feature request: a flexible way to accomplish this would be to expand the <$hn> tag so that one can access individual levels of the number, or at least start with individual levels. If the current hierarchical number were" 5.6.7.8," <$hn:3> would produce the number “7,” while something like <$hn:2-> would produce" 6.7.8." If you wanted a slice through the middle of the hierarchical number, you would write <$hn:2-3> to get “6.7.”)
regards,
dan kuespert