Bug 37534 - Use the same "Chapter Numbering" scheme for "Contents (1-10)" paragraph styles like applied to headings
Summary: Use the same "Chapter Numbering" scheme for "Contents (1-10)" paragraph style...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: TableofContents-Indexes
  Show dependency treegraph
 
Reported: 2011-05-24 03:25 UTC by Enrique G.
Modified: 2021-03-24 12:51 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Example of incorrect Table of Contents (12.18 KB, application/vnd.oasis.opendocument.text)
2011-05-24 03:25 UTC, Enrique G.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Enrique G. 2011-05-24 03:25:50 UTC
Created attachment 47097 [details]
Example of incorrect Table of Contents

Headers using numbering with "Numbering followed by" property set to either "Tab stop" or "Space" properly reflect it in the document body.
However, when populating or updating a Table of Contents, it will not apply that setting to the index and the header title will be written right next the numbering, without the expected separation.

Reproduction:
1- Create a new document and insert a Table of Contents.
2- Next, introduce a series of headers of different styles (Heading 1, Heading 2...).
3- Set the properties in Bullets and Numbering (Format->Bullets and Numbering->Options) for headers to use any kind of numbering.
4- In Position set "Numbering followed by" to "Tab stop" or "Space" for any of the headings used in the document.
5- Update the Table of Contents.

Result: Headers in the Table of Contents are indexed without separation from the numbering.
If using letters as numbering, this will be displayed as if they were part of the title.

Solution: Apply the "Numbering followed by" property to numbering used in Table of Contents too.

Attachment: I have attached a document displaying the incorrect behaviour.
Comment 1 Enrique G. 2011-05-24 05:18:59 UTC
Reproduced the bug using the sample ODT (update Table of Contents) in LibreOffice 3.3.2 running on Debian Wheezy amd64. Changed Platform to all OSes.
Comment 2 Björn Michaelsen 2011-12-23 12:07:41 UTC Comment hidden (obsolete)
Comment 3 Florian Reisinger 2012-08-14 14:04:36 UTC Comment hidden (obsolete)
Comment 4 Florian Reisinger 2012-08-14 14:05:26 UTC Comment hidden (obsolete)
Comment 5 Florian Reisinger 2012-08-14 14:09:52 UTC Comment hidden (obsolete)
Comment 6 Florian Reisinger 2012-08-14 14:11:51 UTC Comment hidden (obsolete)
Comment 7 sasha.libreoffice 2012-09-06 09:48:57 UTC
reproduced in 3.6.1 on Fedora 64 bit

Workaround: select numbered line of text
Format->Bullet and numbering, tab "Options", field "After", type there some spaces
Comment 8 Enrique G. 2012-11-06 00:13:27 UTC
Reproduced the bug with the example attachment in LibreOffice 3.5.4.2 (Debian AMD64). Will test in Windows tomorrow.

The workaround works, of course, as that's what always end doing, but still I'd rather see the original options for titles properly applied.
Comment 9 sasha.libreoffice 2012-11-06 07:47:25 UTC
Thanks for additional testing
Sorry, but "Version" is most early version of LO where bug appears. Not current version. Changing back to 3.3.2 release
Comment 10 Enrique G. 2012-11-06 08:47:33 UTC
(In reply to comment #9)
> Thanks for additional testing
> Sorry, but "Version" is most early version of LO where bug appears. Not
> current version. Changing back to 3.3.2 release

 Oops, sorry.

Tested and reproduced in LibreOffice 3.6.2.2 portable, Windows 7 (32 bit).
Comment 11 a3086477 2014-05-06 14:25:47 UTC
Encountering this exact problem using Table of Content index using LO 4.1.5.3
The numbering within the document text looks fine using a tab stop, but the tab stop is not inserted into the Table of Contents.
So far unsuccessful with having index ignore numbering in text and use its own numbering which works fine.
Rather odd that this bug is apparently around for so long and left unfixed.
Comment 12 QA Administrators 2015-06-08 14:43:11 UTC Comment hidden (obsolete)
Comment 13 Gordo 2015-06-23 19:48:26 UTC
Right click on table of contents -> Edit Index/Table -> Entries tab and add spaces or Tab Stop to Text box between Chapter number and Entry in the Structure for the different levels works too.

I am not so sure that the tab stops should be carried over because the Position tab in Outline Numbering is for how the headings should be positioned in the text while the Numbering tab is for the content to be added to the heading.  The indents do not carry over as well because the table of contents uses it own paragraph styles and structure.

So maybe this bug report should be an enhancement.  The tab stops and spaces could be added automatically to the Structure on the Entries tab.    That way they can be altered or deleted.  The tab stop would have to take into account the Before and After Separator when calculating from the left margin or paragraph style indent.

Windows Vista 64
Version: 4.4.4.2
Build ID: f784c932ccfd756d01b70b6bb5e09ff62e1b3285
Comment 14 Buovjaga 2021-03-24 08:11:19 UTC
(In reply to Gordo from comment #13)
> Right click on table of contents -> Edit Index/Table -> Entries tab and add
> spaces or Tab Stop to Text box between Chapter number and Entry in the
> Structure for the different levels works too.
> 
> I am not so sure that the tab stops should be carried over because the
> Position tab in Outline Numbering is for how the headings should be
> positioned in the text while the Numbering tab is for the content to be
> added to the heading.  The indents do not carry over as well because the
> table of contents uses it own paragraph styles and structure.
> 
> So maybe this bug report should be an enhancement.  The tab stops and spaces
> could be added automatically to the Structure on the Entries tab.    That
> way they can be altered or deleted.  The tab stop would have to take into
> account the Before and After Separator when calculating from the left margin
> or paragraph style indent.

Design team: any comment on this old proposal?
Comment 15 Heiko Tietze 2021-03-24 10:55:17 UTC
ToC entries have their own paragraph styles, in the example Content 1..4. But contrary to the headings in the document, these PS have no outline level defined neither are linked to the chapter numbering. I don't see a reason why this should not be wanted and would treat it as a bug.
Comment 16 Mike Kaganski 2021-03-24 11:45:58 UTC
Comment 13 tells it all. The separator is not carried over to ToC, and is handled separately in the ToC structure.
Comment 17 sdc.blanco 2021-03-24 11:51:25 UTC
Was writing the same as Mike. Proposal in comment 13 seems more appropriate/relevant. If Entries tab is developed further, then relevant to consider bug 137160 as well.

To orientation:  Look in Styles tab to see how Contents N and Outline Level is linked.
Comment 18 sdc.blanco 2021-03-24 11:52:58 UTC
Sorry did not mean to change status -- but why NOTABUG?  Comment 13 indicates enhancement request.
Comment 19 Mike Kaganski 2021-03-24 11:56:33 UTC
(In reply to sdc.blanco from comment #18)
> Sorry did not mean to change status -- but why NOTABUG?  Comment 13
> indicates enhancement request.

No, this is absolutely unreasonable. ToC is *not* limited to chapter numbering. It may include any paragraph styles, any paragraphs having outline levels (not only those auto-assigned by chapter numbering), or alternatively not even consider outline levels. It uses own paragraph styles for its content. So no connection between the two features.
Comment 20 sdc.blanco 2021-03-24 12:15:26 UTC
(In reply to Mike Kaganski from comment #19)
> ToC is *not* limited to chapter numbering....no connection between the two 
> features.
Agree completely - also my understanding.  However, I suspect you have been mislead by the change in the bug summary, which appears to be proposing the solution before an adequate analysis of the problem was made. 

Setting aside Chapter Numbering and coming back to the OP.

(iiuc) The OP is about not being able to control the formatting of numbering in TOC. The Structure tab (in the Edit Index dialog) allows setting of tab, but afaict it is not possible to set a space or no space, etc. (i.e., not possible to use the other options offered for list paragraphs or chapter numbering). Comment 13 was suggesting to add those things of capabilities to the Entries tab. (which seems reasonable to me).  HTH to clarify the issue.
Comment 21 Mike Kaganski 2021-03-24 12:17:40 UTC
(In reply to sdc.blanco from comment #20)
> (iiuc) The OP is about not being able to control the formatting of numbering
> in TOC. The Structure tab (in the Edit Index dialog) allows setting of tab,
> but afaict it is not possible to set a space or no space

How is that? You enter (type) just anything between the elements there in entries.

> , etc. (i.e., not
> possible to use the other options offered for list paragraphs or chapter
> numbering).

Which exactly? Do you mean newlines?
Comment 22 sdc.blanco 2021-03-24 12:47:30 UTC
(In reply to Mike Kaganski from comment #21)
Agree. NAB.

> You enter (type) just anything between the elements there in entries.
Thanks!!  (not mentioned in help page, not obvious (to me) from UI, never considered it as a possibility).

@Heiko -- (a) tooltips could help on the "Entries" tab.

          (b) may be worth considering if design on tab can be improved.

I was using the "telesto-method" (trying to understand the UI from its affordances).  Not so easy.  

Now that my misunderstanding/ignorance is corrected, the "Structure" gives much flexibility in designing the appearance of a TOC -- but (for me) the UI does not "invite" or "signal" that possibility.   

One additional idea for signalling the possibilities.

Make some "predefined" TOC structures (e.g., with, w/o dots), offered (as radio buttons) along with a "user-defined" button (and Load/Save?).
(the default as current setting).

Then a user could "see" some different designs (by choosing the radio buttons), which might help to understand better how to "edit" the structure field.

(no reply/response needed for additional idea - just a quick sketch).
Comment 23 Heiko Tietze 2021-03-24 12:51:59 UTC
Tooltips are always nice to have. My point was that aligning the ToC with heading makes sense, with the opportunity to change the layout as today. But my first response was also NAB.