Writer: Adding a Table of Contents

I have an entire book entered into LibreOffice Write with Chapter # as Heading 1. Now I’d just like to add a Table of Contents following the two photos below. The links just need to be associated with the Chapter but I’d like the Chapter subject (Heading 2) to be listed in the table of contents.

Note: when I try to insert the hyperlinks under the table of contents: entries it puts the LE before the “E” and the LS after the “E” (see screenshot) I can’t seem to add more than 1 image.

I have looked at several tutorials and the documentation but I’m not able to get the format of the actual TOC seen in the image. I’m certain it’s because I’m including levels up to 10 and here is where I’ll probably run into a problem with the appendix A, B, C,… being level 6-10

11/19/20 UPDATE
I inserted the TOC and have some of it looking right. Now:

  1. Once I insert the TOC is there a way to edit it instead of deleting and redoing it?
  2. I’d like Heading 1 (Chapter #) and only Heading 2 in the TOC. How do I not do Heading 4 and Heading 5
  3. I’d like Heading 1 (Chapter #) to be followed by a “:” with the line feed and Heading 2 on the next line with the page # ~ NOTE: it looks like this is there but I have to remove page number for Heading 1 and I know how to do that.
  4. My appendix are Heading 6 and Heading 7 ~ how can I do Headings 1 and 2 for the chapter # and subject, skip Headings 4 and 5 then have Headings 6 and 7 in just as Headings 1 and 2?
  5. Lastly, I want to make these hyperlinked but when I try to start the hyperlink before the E and stop it after the E it seems to only be able to put the stop hyperlink before the E and the start hyperlink after the E

I’ll stop here at this point.

Here is my updated .odt document:
Inner-Healing ODT w TOC.odt

You can manually change the table of contents (So removing stuff etc.) if you disable the option ‘protect against mannual change’, when you insert the table of contents.
I don’t know if that would help a bit?

Don’t ask several questions in a single Question when they are not directly related to the original ones. Those are procedural ones.

  1. Right-click and Edit Index

  2. Limit inclusion to level 2. Beware, this will not collect your “equivalent” levels 6 and 7.

  3. Do that on the Structure line

  4. You can’t with this surrogate solution. You need the “professional” method where you ad another hierarchy to the TOC engine. Fully explained in one of my questions. Please search the site but it may be beyond your present skills.

  5. Hyperlink area is delimited by LS and LE. Usually you click in the text box before the first marker and press Hyperlink and you click in the text box after the last marker and press Hyperlink again.

If you need more details, ask a new question.

Sorry for the list of questions. I guess I thought it would all fall under a table of contents post.

As for 3. I don’t know where Structure line is. And for some reason when I lost Chapters 1 and 2 when I changed the levels down to 2. I changed it back to 10 levels and I still don’t have chapters 1 and 2

The Structure line is in (right-click on TOC) Edit Index, Entries tab.

I see the Structure line now. So after the E# I can put a “:” and it shows in the TOC with Heading 2 one line lower followed by the page number. I still don’t know why I lost "Chapter 1 and 2. Also, Section 1 is defined as Heading 3 and I did follow that with a Heading 2. I changed it where I put a “shift + enter” after “Section 1” which is Heading 3 and now the differently formatted subject of Section 1 is Heading 3 also but it is not showing in the TOC with “Section 1”. Is that because of the “shift + enter”?

No, you limited your TOC to level 1 and 2.

IMHO, styling your “Section x” Heading 3 is an error. “Section” is rather a more global division of your book, containing “Chapters” and “Subchapters”. Consequently, they should be Heading 1, Heading 2 and Heading 3 respectively, or Heading 1+Heading 2, Heading 3+Heading 4 and Heading 5+Heading 6 because you separate the “number” and the heading. This consumes two styles per logical level and calls for the “professional” method for the alphabetic-numbered appendix because of exhaustion of available Heading n.