Bug 66315 - unstable style of Table of Content
Summary: unstable style of Table of Content
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.4.2 release
Hardware: x86 (IA32) macOS (All)
: medium critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-28 10:16 UTC by PHM
Modified: 2014-01-29 13:52 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
the TOC is wrong, due to actualization (22.29 KB, application/vnd.oasis.opendocument.text)
2013-06-28 10:16 UTC, PHM
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PHM 2013-06-28 10:16:27 UTC
Created attachment 81634 [details]
the TOC is wrong, due to actualization

- a text (.odt) with a Table of Contents

- modification of standard Content styles (to get a more compact table)

- if you actualize the table, the old Content styles are used.

To get your own styles, you have to "clear direct formatting".

The problem is : if the standard style takes more lines that yours, the pagination is wrong, and remains wrong.

example in the doc :
point 1.2.4 is page 4 in the table of content and page 3 in the real text.


in fact : actualizing the TOC reverse to the standard style of TOC ; but this appears as a direct formatting.

protecting the table isn't a solution (the old Content styles are used, and you can't revert to yours).
(same with LO 366, same after rebooting)
The only partial solution is to put the TOC at the end of the doc, but it's not what I want, and the problem of reformmatting remains.

Not sure this relates to https://bugs.freedesktop.org/show_bug.cgi?id=65100
Comment 1 sophie 2014-01-29 13:52:59 UTC
Hi, I think you have an issue with the way you structure the Table of Content. When I edit the Index and go under the Entries (Entrées in French), on level 2, the structure shows Chapter Number Tab Entry Tab Page Number (with hyperlink from the beginning to the end). You have an extra Tab in your structure. So the changed Table of content styles in the Styles and Formatting window are applied but still the structure of the table takes the precedence. 
Remove the extra tabulation you have under level 2, 3, etc structure and you will get what you want. If you need help setting your Table of content, please join our users@fr.libreoffice.org mailing list. Closing as works for me. Sophie