Chapters & Appendicies at Same Level

I have a document that has Parts, Chapters, and Appendices. The chapters are subdivisions of the Parts, and the Appendices are by themselves. Unfortunately, I’m matching an existing design style, so some of the more quirky needs can’t easily be rewritten unless there’s absolutely no workaround.

Here’s a quick dummy example:


Part I: PName1
  Chapter 1: CName1
  Chapter 2: CName2
Part II: PName2
  Chapter 3: CName3
Appendix A: Reference Stuff


Part I
  Chapter 1: CName1
  Chapter 2: Cname2
Part II
  Chapter 3: CName3
Appendix A: Reference Stuff

Part, Chapter, and Appendix each have their own custom paragraph style.
In Chapter Numbering, Part is assigned to Level 1, Appendix to Level 2, and Chapter to Level 3.

On the Table of Contents, I use 3 levels and 2 paragraph styles:
Level 1: Part (Style1, entry name omitted)
Level 2: Appendix (Style1, entry name present)
Level 3: Chapter (Style2)

This gets the desired results out of the ToC above, but isn’t getting me anywhere with the footer pagination.

At the bottom of each page, I want to indicate which section the reader is in, according to one of two formats:
Before the Appendices:

Part I | CName1

In the Appendices:

Appendix A | Reference Stuff

Essentially, the Appendices are treated as a Part with only one Chapter in both the ToC and footer.

Your approach introduces a “twist” in Writer understanding you document structure. By assigning level 2 to appendices, you workaround the limitation that a level can have only one numbering “style”. But your appendices seem to be level 1, the same as your parts.

Then, as can be seen in the Navigator, Appendix A is included in Part II. When using the Navigator to move around outline blocks (e.g. you want to have Part II before Part I), you also move unintended blocks. This inconvenient does not occur with my solution because I have created a new “instance” of level 1 with my custom Appendix1 style attached to level 1 independent of the Heading n family.

It would be easier if you split your problems into 3 separate questions because the answer is quite voluminous.

##Problem #1

I hope you’re familiar with styles.

Your part is styled Heading 1 and chapter Heading 2. I created a specific Appendix1 style for level 1 in the appendices so that I could change from Roman to alphabetical numbering.

Your specification is a bit self contradicting. Taking all your constraints, here is the result (I intentionally used a Serif font for the heading instead of my usual Sans font to clearly show the differences between Roman and traditional numbering):

TOC 1st draft

As this is a proof-of-concept, I didn’t take time to tune the styles.

As you can see, your requirement for not showing part name causes the appendix name to not be reported in the TOC. This can be settled if you accept to write your part name in an independent line as in:

image description

Create a paragraph style for the partname which will look the same has Heading 1 but not attached to outline level 1 (see Outline & Numbering tab of paragraph style configuration). Tune the spacings and alignment so that visually you can’t tell the part and its name are different things albeit on different lines.

Important! In order to fool the TOC engine, you must not have an empty part name, i.e. you can’t have a Heading 1 paragraph reduced to its number. Enter at least a space for the name. This is not visible on the screen shot, but Part I is followed by a space (after the automatically added tab).

What are the tricks?

Appendix1 is a paragraph style you’ll tune to have the same properties as Heading 1 except in Outline & Numbering. There you’ll attach it to Outline level Level 1 (the same as Heading 1) and you’ll assign a Numbering style to get auto numbering. I chose built-in Numbering ABC assuming it is not used anywhere else in the document. If you use it, just create a custom list style to define your numbering.

To avoid manually entering words “Part”, Chapter", I customised Tools>Chapter Numbering to add these words as Separator Before in the appropriate levels. I did the same for “Appendix” in the Numbering ABC list style.

##Problem #2

The “bottom of the page” is an area called the footer. By default, there is no footer in page styles. They must be enabled in the Footer tab of the configuration dialog. This creates a variable height area for static text on all pages controlled by this style. By “static”, I mean its definition will not change across pages, though its content may be dynamic.

The difficulty with your specification is Part I | CName1 targets two heading levels while Appendix A | Reference Stuff targets a single level. The footer then contains different items. You can’t do with the same page style. You must define one page style for your parts (e.g. Default Style) and another one for the appendices (e.g. Appendix). This Appendix will have the same properties as Default Style as far as the style configuration is concerned.

  • Appendix

    • click in the footer area

    • Insert>Field>More Fields, Document tab

    • Type Chapter, Format Chapter number and name, Level 1

      Note that the level is the same as the one assigned to my Appendix1 paragraph style.

  • Parts

    • click in the footer area

    • Insert>Field>More Fields, Document tab

    • Type Chapter, Format Chapter number, Level 1

    • type a space or other text to separate the next field

    • Insert>Field>More Fields, Document tab

    • Type Chapter, Format Chapter number, Level 2`

      This second level corresponds to Heading 2 chosen for the chapter headings

    CAUTION! In case there is not yet a Heading 2 when the footer is met (this could be the case if the part heading is on a page of its own), instead of returning an empty result, Writer retrieves level 1 data. This means you get twice level 1 information. If you have your part headings alone on a page, lay them out with a dedicated page style with no footer or a footer without the fields.

    Also the fact you chose non consecutive levels in your approach may cause problems or inconsistencies.

Format your footer as you like. Built-in Footer paragraph style is rather handy: it has predefined tab stops allowing for three bits of information. The first one flushed at left (tab), the second one is centered (tab), the last one is flushed at right.

To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

In case you need clarification, edit your question (not an answer which is reserved for solutions) or comment the relevant answer.

Reviewing my OP, I agree that it was confusingly worded. I’d more-or-less solved the ToC issue with a somewhat parallel approach to yours, but was still running into the second issue. My thought with sharing both was that how I accomplished Problem 1 might have bearing on how to accomplish Problem 2, or vice versa.

I’ve edited my OP to (hopefully) be more clear.

Problem 2 is very easy to solve. It’s now night time here. I’ll give you the solution tomorrow (for my time slot) by editing my answer.

Thanks! This is a reasonably long-term project, so I have time. I’ll check in tomorrow.

I’ve also split off the issue with the pagination recognizing chapter names contained in fields into a separate question, since that could be either a bug or implementation error with the fields.