Ask Your Question

How to add certain heading on table of contents ?. Ex: heading 4 only or heading 2 and heading 3

asked 2019-11-07 19:48:54 +0200

Horehore gravatar image

updated 2020-09-08 15:26:49 +0200

Alex Kemp gravatar image

How to add certain heading on table of contents ?. Ex: heading 4 only or heading 2 and heading 3

edit retag flag offensive close merge delete



Built-in controls in TOC generation dialog allows you to limit TOC content to a maximum level, i.e. if you choose 4, Heading 1 to Heading 4 are included. You can't with the built-ins select only level 4 or omit initial levels.

In your Heading 4 example, if levels 1-3 will never be part of any TOC, there is a dirty workaround with custom paragraph styles permitting to keep the appearance of chapter numbering in the text and ito insert only the target levels in the TOC. Once again, only if levels 1-3 never take part in any TOC.

If this is the same as your need, I'll explain the dirty trick in an answer.

ajlittoz gravatar imageajlittoz ( 2019-11-07 20:28:26 +0200 )edit

@ajlittoz Please go ahead an post your "dirty work-around"! Should be interesting. ;) (And include the info in the comment, of course, which is the basic answer!)

David gravatar imageDavid ( 2019-11-08 17:57:47 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2019-11-09 07:22:38 +0200

It's quite easy. Just disable generation of the ToC from the outline, and explicitly define styles used in the ToC in [x] Additional stylesAssign styles....

edit flag offensive delete link more


@Mike Kaganski's answer pointed me to reconsider my workarounds which where the only possibilities in pre-6.x versions. The current TOC controls in Insert>TOC & Index>TOC, Index & Bibliography make it much easier to build "selective" TOCs. Follow his suggestion, it is the right answer.

ajlittoz gravatar imageajlittoz ( 2019-11-09 09:33:53 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-11-07 19:48:54 +0200

Seen: 368 times

Last updated: Nov 09 '19