Bug 154963 - Writer: Table of Content: (Allow) Use (of) the applied page numbering format
Summary: Writer: Table of Content: (Allow) Use (of) the applied page numbering format
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-22 09:53 UTC by dolezvo1
Modified: 2023-04-22 11:11 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Table of Contents, where pages in the preface are numbered in arabic instead of roman, which would be expected (26.09 KB, image/jpeg)
2023-04-22 09:54 UTC, dolezvo1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dolezvo1 2023-04-22 09:53:41 UTC
Description:
I noticed that when I generate a Table of Contents, it doesn't use the numbering format which is used on the page. (Expected "iv, v, vi, 1, 2, 2", got "4, 5, 6, 1, 2, 2").

I get this might be harder to achieve since page might have no number field or multiple of them, but this just doesn't look very good. The alternative of having the user set the numbering style in the ToC based on the (page?) style doesn't sound very feasible to me.

I think the most sense would make to create a new ToC formatting token which would take this into account, taking either the style of the first page number on the given page, or the previous style in case there is none.

Steps to Reproduce:
see above

Actual Results:
see above

Expected Results:
see above


Reproducible: Always


User Profile Reset: No

Additional Info:
see above
Comment 1 dolezvo1 2023-04-22 09:54:44 UTC
Created attachment 186848 [details]
Table of Contents, where pages in the preface are numbered in arabic instead of roman, which would be expected
Comment 2 Mike Kaganski 2023-04-22 11:04:18 UTC
Please provide the *document* sample; the image does not allow to see the problem cause, only shows what you see.

My guess would be, that you use the page number field's format, instead of the proper definition of the numbering in the relevant page style.
Comment 3 dolezvo1 2023-04-22 11:07:13 UTC
Ah, I thought that might be a thing, but I wasn't sure, so I didn't really look for it that well.

You're absolutely right, thanks!
Comment 4 Mike Kaganski 2023-04-22 11:11:44 UTC
(In reply to dolezvo1 from comment #3)

Good; note that if you set up page styles, you would not to adjust fields at all :)