[Libreoffice-bugs] [Bug 118972] Writer should recognize ToC entries structure and formatting from MSO DOC/X (test with Update index)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat May 9 23:29:49 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=118972

--- Comment #6 from Alvaro Segura <alvaro.segura at gmail.com> ---
Created attachment 160582
  --> https://bugs.documentfoundation.org/attachment.cgi?id=160582&action=edit
Comparison of MSWord vs Writer rendering

This screenshots show this issue. It also highlight the importance of keeping
those tabs in documents like this one, which try to keep a proper alignment of
numbers and titles (a style so necely done be LaTeX for example). This is IMHO
more important than it seems.

The style is kept upong loading the file, but is lost when updateing the TOC.


Here is a possible hint:

My guess is that Writer's and Word's TOC systems are different (Writer's is
more sophisticated, I'd say). In Writer one can explicitly define that a TAB
must exist between number and title. However, Word does not specify anything
about the separa tion of number and title. What Word does, I think, is use the
same format used in the numbering of headers in the document. If the document
has TABS after section numbers then the TOC will have TABS, too.

That is defined in the format of the multilevel numbering scheme. "Define new
multilevel list", hitting "More >>" to expand the dialog to more options, and
selecting an option for "Number followed by:". Can be TAB, SPACE or NOTHING.
and this affects both the headings throughout the document, and the Table of
Contents.

Then, to achieve the same results, Writer could look at the existing format of
multilevel heading numbering (which is correctly read). And add this TAB to TOC
elements if the multilevel numbering uses TABS.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200509/aa58439a/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list