Bug 112301 - Set outline level for chapters
Summary: Set outline level for chapters
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
Depends on:
Blocks: TableofContents-Indexes ODF-spec 130318
  Show dependency treegraph
Reported: 2017-09-09 10:11 UTC by RGB
Modified: 2020-02-05 14:35 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description RGB 2017-09-09 10:11:50 UTC
Suppose you have a book with the following structure:

* Part
** Chapter
*** Section

and that you need partial TOCs on each chapter. 

When you create a TOC it is possible to build it "for the chapter", but Writer considers as "chapter" only level 1 headings. That means you cannot set "Part" as level 1 and "Chapter" as level 2 because partial TOCs will not work as intended.

There are several workarounds for the limitation, but none of them are optimal because they imply more manual work on building the TOCs. Hence the proposal: make it possible to choose which outline level is considered as "chapter" for the TOC.


Related enhancement request:

Bug 94218 - footnote numbering per chapter: define outline level that resets numbering
Comment 1 Buovjaga 2017-09-10 15:36:42 UTC
Regina: is this possible with the current ODF?
Comment 2 Regina Henschel 2017-09-10 23:44:59 UTC
No. The attribute is text:index-scope and it has the literal values "document" and "chapter". For chapter the description is: "A chapter consists of all those paragraphs and headings which have the same immediately preceding heading with outline level 1." So the level is explicitly named as "1".
Comment 3 Thomas Lendo 2017-09-13 19:47:45 UTC
Ok, so it is not possible to implement this enhancement request in LibreOffice today.

Nonetheless I'll change the status to NEW with metabug "ODF-spec". Maybe sometime in the future ODF will allow such feature, then it's ready to implement. Other users can find this bug request easier with no resolution which will prevent duplicates.

From my point of view I would appreciate such feature.