[Libreoffice-ux-advise] [Bug 152075] Writer: TOC for chapter should start at current level+1, not current level
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun Nov 20 10:48:35 UTC 2022
https://bugs.documentfoundation.org/show_bug.cgi?id=152075
--- Comment #9 from ajlittoz <page74010-sf at yahoo.fr> ---
(In reply to Peter Roelofsen from comment #7)
> Having a TOC right below a chapter title with the chapter title included
> seems redundant to me. But there are books where a new chapter starts on a
> right page, and the TOC for that chapter sits on the opposite (left) page.
> In that case, including the chapter title in the TOC would make perfect
> sense. Unfortunately, you wouldn't be able to include a chapter TOC just
> before the start of a chapter in the present implementation. I played a bit
> with inserting the content of a single chapter in a section, wondering if
> you can make a TOC for just a section of a document. It turns out that you
> can't, but maybe it's an idea to allow TOCs for sections.
This can already be done. You have to cleverly customise your paragraph styles
and cheat a bit.
The Heading 1 is entered before the chapter TOC to create context. It is
formatted as Contents 1 (but take care about tabs because you can't, or rather
shouldn't, insert a page number because it would mess up the rest of the
layout).
The chapter TOC is inserted using Additional styles so that you exclude Heading
1 which is just above the chapter TOC. You list in these styles all Heading n,
save the level you are in and lower.
I use a new paragraph style Offset Heading 1 which is formatted as the original
Heading 1 so that it looks exactly as a chapter start. It is filled with fields
for chapter number and title. This paragraph style is at Body Text level in
order not to disturb the outline.
See
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Libreoffice-ux-advise
mailing list