Ask Your Question
0

How can I create multiple tables of contents for master document subdocuments?

asked 2017-09-07 20:18:24 +0200

mojohn gravatar image

I'd like to create a master document that contains two subdocuments that require their own separate tables of contents. Is that possible, and if so, how do I go about formatting the subdocuments so that each can have its own TOC?

Thanks,

mojohn

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2017-09-07 22:31:22 +0200

RGB-es gravatar image

When you create a TOC you can choose to build it "for entire document" or "for chapter"

image description

Problem is, Writer defines as "chapter" a level 1 heading. You cannot choose which outline level is considered as chapter. So each of your subdocuments needs to start with a Level 1 heading in order to get a partial TOC working. Then on the master just insert an "Entire document" TOC.

edit flag offensive delete link more

Comments

"Problem" is not a correct word. It's a rule that needs to be followed, the precondition that allows machinery to run. Plus, you can choose what is level 1, using styles' or paragraphs' Outline & Numbering - Outline level setting (you may need to edit Chapter Numbering to that effect, without that, you will not be able to change headings' levels).

Mike Kaganski gravatar imageMike Kaganski ( 2017-09-08 06:34:56 +0200 )edit

@Mike Kaganski It IS a problem if you group your "Chapters" on "Parts" (or "Books"): if you use level 1 for Parts and level 2 for Chapters, then you cannot make use of partial TOCs because they will list all the "chapters" on the "part" instead of just the sections on the current chapter. You can work around the situation by setting both, Parts and Chapters as "level 1", but that have its own shortcomings so it is not as easy to use partial TOCs on Writer as it is on LaTeX.

RGB-es gravatar imageRGB-es ( 2017-09-08 22:39:04 +0200 )edit
Mike Kaganski gravatar imageMike Kaganski ( 2017-09-08 23:44:20 +0200 )edit

@Mike Kaganski, So? I've never said that on Writer it's impossible, I'd just said that's not optimal. On your "method" you need to do a lot of work to give the TOCs a decent format: In fact it makes no sense for partial TOCs to display the current chapter. There are other workarounds to solve even that, but all of them are hacks, not proper solutions. Please, do not react as a classic fanboy. I'm not attacking Writer. I love Writer: I'm just saying it's not perfect. No software is perfect.

RGB-es gravatar imageRGB-es ( 2017-09-09 10:38:12 +0200 )edit

I'm not attacking; I just saw you saying "cannot", so I figured I could help you with an example. I'm sorry that you take it that way.

Also, I'd love to see an enhancement request regarding that; either existing one, or a newly filed if it wasn't yet filed before.

Mike Kaganski gravatar imageMike Kaganski ( 2017-09-09 10:53:34 +0200 )edit

@Mike Kaganski A related report: Bug 94218 - footnote numbering per chapter: define outline level that resets numbering

I remember reading a more specific report some years ago, but I cannot find it right now. My search skills are at its lowest on a Saturday morning :)

RGB-es gravatar imageRGB-es ( 2017-09-09 11:36:53 +0200 )edit

Just in case my memory fails and there is no older report I issued a new one: Bug 112301 - Set outline level for chapters

RGB-es gravatar imageRGB-es ( 2017-09-09 12:19:51 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-09-07 20:18:24 +0200

Seen: 141 times

Last updated: Sep 07 '17