[Libreoffice-bugs] [Bug 138606] New: Inserting Cross-Reference to Heading Number also inserts separator text with no option to customize it

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Dec 1 20:13:50 UTC 2020


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

            Bug ID: 138606
           Summary: Inserting Cross-Reference to Heading Number also
                    inserts separator text with no option to customize it
           Product: LibreOffice
           Version: 6.4.6.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: will.friedman at gmail.com

Description:
The Chapter Numbering feature allows customizing the numbering by adding text
before and after the numbering, in the separator section. That is excellent
functionality.

However, inserting a cross-reference to a Heading -- whether by number, number
(no context), and number (full context) -- includes the full separator text
without any option for customization. This breaks my use case, which is to
configure the separator text to prefix the chapter number before the heading
number (e.g., 3.X.Y.Z) and to suffix a period to serve as a separator (thus:
3.X.Y.Z.). However, when I want to cross-reference the header number, I *don't*
want the *suffixed* separator text (the period) to appear, while I *do* want
the *prefixed* separator text (3.) to appear. So, e.g., let's say I have the
following headings (remember that 3. and the final period are separator text):

3.1. Text1
3.2. Text2
3.3. Text3

I want to be able to write something like "In section 3.1 I will discuss ... in
section 3.2 I will discuss ..." where 3.1 and 3.2 are the cross-reference field
to the appropriate heading with the prefixed text (3.) but not the suffixed
period. Right now it looks like this: "In section 3.1. I will discuss ... in
section 3.2. I will discuss" which is untenable.

I suppose this is an enhancement request; I certainly would not want to lose
the separator text entirely, since I do want the prefixed text. The best
solution would be to allow customization in the cross-reference dialog box,
e.g., add a section "include separator text?" with checkboxes for "before" and
"after". The second best solution (to my mind, although others might prefer
this) would be to give the ability to add separator text to cross-references,
so that only the actual number of the heading would be inserted (according to
the option selected), without any separator text whatsoever.

Steps to Reproduce:
1. Open a new document.
2. Select Tools | Chapter Numbering.
3. In the number field, select "1, 2, 3, ..."
4. In the separator box, add some before text and after text. In my case, the
before text is "3." and the after text is ".".
5. Click OK.
6. Select the correct style (by default, Heading 1). Type some text.
7. On a new line, in a non-heading style, go to Insert | Cross-Reference |
Cross-References | Type: Headings | Insert reference to: Number. Click Insert.

Actual Results:
The cross-reference with before and after separator text is inserted as the
field.

Expected Results:
There should be an option to customize how the cross-reference will be inserted
and whether it should also insert the before and/or after separator text.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.4.6.2 (x64)
Build ID: 0ce51a4fd21bff07a5c061082cc82c5ed232f115
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: default;
VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: CL

-- 
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/20201201/61b51366/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list