Bug 159799

Summary: no standard separation in chapter number (full context)
Product: LibreOffice Reporter: Vollbracht <avollbracht>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED ---    
Severity: normal CC: ilmari.lauhakangas
Priority: medium    
Version: 7.6.2.1 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Document showing this behaviour

Description Vollbracht 2024-02-20 15:37:25 UTC
Created attachment 192663 [details]
Document showing this behaviour

If chapter numbering level 1 is followed by space only ("§8 My Eighth Headline") and chapter numbering of level 2 is Latin numbers with [Show sublevels] = 1 as well ("3 My Third Sub Chapter") any cross reference with chapter number (full context) has no separation between the numbers ("see §83"). It should be possible to have a default dot in between ("see §8.3").
Comment 1 Buovjaga 2024-03-05 20:02:26 UTC
Can you give enumerated steps so anyone can reproduce this? Thanks.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the information.
Comment 2 Vollbracht 2024-03-06 06:19:37 UTC
#1 Start a new document. Let's say its content is as follows:

My First Book
My First Chapter
Have some blind text in first chapter.
My Second Chapter
Have some blind text in first chapter as well.
My Third Chapter
Have some blind text in first chapter as well.

#2 Mark first line of the content be level 1 heading.
#3 Mark second line and similar lines be level 2 heading.
#4 Define chapter numbering as follows:
#4a Numbering shall be 1, 2, 3, ...
#4b [Show sublevels] shall be 1
#4c Let's say for level 1 chapter numbering, we might want a [Separator] [Before] be "§"

Content now is as follows:

§1 My First Book
1 My First Chapter
Have some text in first chapter.
2 My Second Chapter
Have some text in second chapter as well.
3 My Third Chapter
Have some text in third chapter as well.

#5 In third chapter text enter a [Fields]|[more fields]|[cross-reference]
#5a select [Type] = Headings
#5b select [Insert reference to] = number (full context)
#5c select [Selection] = 2 My Second Chapter
#5d select [Insert]

Third chapter content now is as follows:

Have some text in third chapter as well.§12