Ask Your Question
0

Creating TOC for Chapter (not for the entire document)

asked 2018-07-31 09:46:47 +0200

RickC gravatar image

I have a series of documents which I will call "Chapters". These will be placed in a Master document. I require that each Chapter only display the TOC for the Chapter. I am unable to pursuade Writer to create a Table Of Contents (TOC) for a Chapter. In the Writers Guide, Chapter 15 (Tables of Contents, Indexes, Bibliographies), it states: "Writer identifies a “chapter” as all the headings between two first level outline headings (normally Heading 1)." I have attached a document that uses the same template as all the documents. I have temporarily changed a few headings so that "Summary" is the first "Heading 1" and "Roads" is the last "Heading 1". Therefore, if I select Create TOC for Chapter, it should create a TOC for all the headings between Summary and Roads. However, it does not. See attached Writer document.

Using: Version: 6.0.5.2 (x64) Build ID: 54c8cbb85f300ac59db32fe8a675ff7683cd5a16 CPU threads: 4; OS: Windows 10.0; UI render: default; Locale: en-AU (en_AU); Calc: group

C:\fakepath\Land and Roads.odt

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2018-07-31 10:27:34 +0200

In your attached document, there are two problems:

  1. It's unclear where do you want to add the chapter ToC. Is that the one in the beginning? If so, then which chapter are you targeting it to? It's outside of the chapter (range from "Summary" to "Roads") you are talking about; so it cannot guess the intended chapter (note that the option is for current chapter, i.e., the one inside which ToC is).
  2. For some reason, you had assigned Outline level 1 to Contents Heading paragraph style. So even trying to insert the ToC inside the chapter (like, after the "Summary"'s introductory text on page 4(2)), you'd add a paragraph of the said style, and simply stop the chapter "Summary" and started a new chapter, say, "Table of Contents". The starting point of the ToC is, though, still in the "Summary" chapter, and so the ToC would only list what is left in that lonely chapter now... i.e., that level 1 entry itself, and nothing else.

I have removed the outline level 1 setting from the said paragraph style, and inserted the ToC in the position I mentioned, so now it works as intended - see the result.

edit flag offensive delete link more

Comments

Thank you. It is now obvious what the problem was and I can see how to fix it.

RickC gravatar imageRickC ( 2018-07-31 14:07:25 +0200 )edit
0

answered 2018-07-31 10:05:09 +0200

RGB-es gravatar image

updated 2018-07-31 10:07:52 +0200

The structure you need to build to have partial TOCs goes like this:

  • General TOC (all levels)

    • Level 1 heading (set in Tools → Chapter numbering)

      • Partical TOC, set to display only the chapter image description

      • Levels 2 (and below) headings

    • Another Level 1 heading

      • A new TOC, set to display only the chapter

      • More Levels 2 (and below) headings

    • Repeate

No other document structure will allow you to use partial TOCs in Writer.

EDIT: TOCs do not refresh by themself, you need to manually refresh them.

edit flag offensive delete link more

Comments

Thank you. Very useful information on the structure required.

RickC gravatar imageRickC ( 2018-07-31 14:09:02 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-07-31 09:46:47 +0200

Seen: 61 times

Last updated: Jul 31 '18