You completely messed up the document structure to a point you make my Writer 7.0.4.2 crash!
The document is plagued with tons of direct formatting which will defeat any reasonable attempt to format it later. You override nearly all attributes of styles, meaning you can’t rely on them to help you in this task (e.g. you use the ruler marker to create negative indents while the styles have none).
You damaged Tools
>Chapter Numbering
making it unusable:
- you removed Heading 2 to 4 from automatic chapter numbering (by assigning style [None] to the levels
- level 4 is even empty!
- numbering scheme is pure nonsense
Your outline is quite surprising:
- no Heading 1
- the first Heading 2 is an empty line which has a list numbering (
F12
) superimposed with number suppressed (=> conflict between two contradictory features!). I think the fact it is empty may be accidentally a result of anonymising the document but it does not excuses the conflict.
- you then have two Heading 3 (“Antologia” and “La mmm”) to markup a level-1 and a level-2 data which you try to resolve with list numbering (
F12
) you constrain on different levels using Tab
at start of data (=> again conflict between the TOC and list features)
- between “1.2 La mmm” and “1.1 La mmm”, you have paragraphs “- Psss” which are erroneously numbered with
F12
and this numbering was not completely erased, then creating a list of their own which breaks the faulty “outline list”. When Writer meets “1.1 La mmm”, it sees a request for a list identical to the preceding “outline” one but there is an independent list in between. Consequently it starts a new list from 1.
You have manually added many useless hyperlinks in the TOC. Keep with those generated by default. They provide all you need. What you added are nonsense because their target is themselves.
Your TOC is also a “masterpiece”.
You tried to compensate your formatting errors by tweaking the collection engine. In the Type tab of the creation dialog, checking Outline is enough. You added Index marks and Additional styles. The first will cause all index entries to be displayed in the TOC, in page order, without merge. You didn’t filter the list of styles in the second meaning that all styles will contribute to the TOC (including footnotes and endnotes!). And you’re lucky because the sample file you provided is so badly styled (only Heading 3 and Default Paragraph Style) that this bug doesn’t show up.
#How to fix?
###Read the chapters about styles in theWriter Guide and stop working on your book for one week or two to practice on dummy documents.
You won’t go anywhere if you persist in using Writer so badly. It is more than a typewriter. You’re a bit like a newbie in a plane trying to behave like a car driver. This ends up in a crash, 100% guaranteed.
At least, don’t mix lists with chapter numbering.
Chapter headings are designated through styling with Heading n, one style per level. The number is enabled and setup with Tools
>Chapter Numbering
.
Don’t add a number with F12
. This is redundant and contradictory. You’ll mess both lists and chapters.
##You have damaged the factory configuration of Writer (only for this document I hope).
Start with a blank document so that you can recover the default definitions. Paste your present content as unformatted text so that no present styling nor direct formatting is carried over to the new copy. When you have recovered your text, style it consistently. In your own interest, avoid absolutely direct formatting. Styles are your friends. There are not only paragraph styles but also character and page styles.
If you don’t need sections (your sample file contains one and I could not guess its usage), don’t insert sections. They complicate document structure and may cause instabilities if you don’t master the concept.
Sorry for being so negative but don’t consider using any document processor is an easy task. You must learn how to tame them. Don’t rely on your possible knowledge of Word. Word did a lot of harm to rigorous document formatting by adopting principles contrary to typographic rules and presenting them as “intuitive” due to its dominant position.
To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!
In case you need clarification, edit your question (not an answer which is reserved for solutions) or comment the relevant answer.