Bug 105930 - Table of Contents issue
Summary: Table of Contents issue
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.3.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: TableofContents-Indexes
  Show dependency treegraph
 
Reported: 2017-02-11 10:18 UTC by Marco A.G.Pinto
Modified: 2017-06-25 01:12 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
TOC not being created automatically (265.72 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-02-12 00:24 UTC, Marco A.G.Pinto
Details
Screenshot of correct result (74.59 KB, image/jpeg)
2017-02-12 09:31 UTC, Buovjaga
Details
Here it doesn't work (269.66 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-02-12 11:32 UTC, Marco A.G.Pinto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco A.G.Pinto 2017-02-11 10:18:32 UTC
I tried to create a Table of Contents with Headings but no table appeared.

I had to create it with MS Word.

Also, the Table of Contents displays some heading in different fonts, although I have the text in Times New Roman.
Comment 1 Buovjaga 2017-02-11 20:53:31 UTC
Please attach a document, where we can test the creation of the ToC.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 2 Marco A.G.Pinto 2017-02-12 00:24:24 UTC
Created attachment 131117 [details]
TOC not being created automatically

Open the .docx and go to page 3 and follow the instructions.

On M$ Word 2016 I just select one option and it self creates all the needed contents.

In LO 5.3 it only creates one line named "Table of Contents" but no extra data :(

And, if I create the TOC with M$ Word 2016 and then open the .docx back with LO 5.3 the fonts in the TOC start getting all mixed up... we get different fonts in different lines (notice that the different fonts in different lines happened this morning... I haven't tested here with this example .docx... but it should be the same).
Comment 3 Buovjaga 2017-02-12 09:31:36 UTC
Created attachment 131124 [details]
Screenshot of correct result

Works for me. In the screenshot I also included the settings.

It also worked on Windows.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.3.0.3
Build ID: 5.3.0-2
CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: kde4; Layout Engine: new; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group

Arch Linux 64-bit, KDE Plasma 5
Version: 5.4.0.0.alpha0+
Build ID: ac8197327d3ef4f3c94fb0746393863404df086b
CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on February 11th 2016

Version: 5.3.0.3 (x64)
Build ID: 7074905676c47b82bbcfbea1aeefc84afe1c50e1
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; Layout Engine: new; 
Locale: fi-FI (fi_FI); Calc: group
Comment 4 Marco A.G.Pinto 2017-02-12 11:21:14 UTC
I don't know what to say... last night and last morning it wasn't working...

I have just tried it and it now worked :(

How could this happen?

:(

Thank you and sorry :(
Comment 5 Marco A.G.Pinto 2017-02-12 11:32:52 UTC
Created attachment 131128 [details]
Here it doesn't work

I have just been able to reproduce it with this file!

Just go to page 3 and type:
Test 1
Test 2
Test 3

Then, click on each one and select "heading 1".

Go to the top of page 2 and follow the steps to create the TOC I mentioned in my comment 1.

Can you now reproduce that it will only create one line name "Table of Contents"?

Thanks!
Comment 6 Buovjaga 2017-02-12 11:50:53 UTC
(In reply to Marco A.G.Pinto from comment #5)
> Created attachment 131128 [details]
> Here it doesn't work

Your Outline level for Heading 1 in this file is "Body text". In your other file it is "Level 1". Modify the Heading 1 style, Outline & numbering and change Outline level to "Level 1". Then it will work.