Ask Your Question
0

Chapters & Appendicies at Same Level

asked 2020-10-10 18:36:05 +0100

altasilvapuer gravatar image

updated 2020-10-10 21:34:48 +0100

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:

Structure:

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

ToC:

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.

edit retag flag offensive close merge delete

Comments

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.

ajlittoz gravatar imageajlittoz ( 2020-10-11 09:34:46 +0100 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2020-10-10 20:46:37 +0100

ajlittoz gravatar image

updated 2020-10-11 10:03:44 +0100

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 ... (more)

edit flag offensive delete link more

Comments

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.

altasilvapuer gravatar imagealtasilvapuer ( 2020-10-10 21:36:48 +0100 )edit

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.

ajlittoz gravatar imageajlittoz ( 2020-10-10 21:49:32 +0100 )edit

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.

altasilvapuer gravatar imagealtasilvapuer ( 2020-10-10 21:53:12 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-10-10 18:36:05 +0100

Seen: 42 times

Last updated: Oct 11 '20