Description: In LibreOffice writer, i want to insert the number in a numbered paragraph as a cross reference without the before and after fields, this is necessary for research papers where the numbered paragraph has square brackets [ and ] around the number but not in their cross reference. Steps to Reproduce: 1. Make a numbered paragraph with [ and ] before and after the number 2. Insert the number as cross refrence. 3. the [ and ] appear in the cross reference Actual Results: the [ and ] appear in the cross reference Expected Results: I don't want them to appear Reproducible: Always User Profile Reset: No Additional Info: necessary for research papers
Mahmoud, thank you for reporting the bug. Please paste information help -> About LibreOffice and also add a short sample file, that shows the problem. Thank you. => NEEDINFO
Created attachment 191826 [details] Example on inserting cross-reference to a numbered paragrph Version: 7.6.3.2 (X86_64) / LibreOffice Community Build ID: 60(Build:2) CPU threads: 4; OS: Linux 5.19; UI render: default; VCL: kf5 (cairo+xcb) Locale: en-US (en_US.UTF-8); UI: en-US Ubuntu package version: 4:7.6.3~rc2-0ubuntu0.22.04.1~lo3 Calc: threaded
[Automated Action] NeedInfo-To-Unconfirmed
Heiko and Eyal, you've discussed this before. Should this be marked as a duplicate of bug 121465 or bug 147774 or bug 149635, or maybe merge everything into a straight-forward "add option to suppress before and/or after separators in cross-referencing?" (Sorry I have not caught-up to the detailed discussions on the topic.)
(In reply to Mahmoud Alnaanah from comment #0) > this is necessary > for research papers where the numbered paragraph has square brackets [ and ] > around the number but not in their cross reference. 1. If this is the only scenario you are interested, are you not well enough served by the bibliography mechanism [1]? TBH, I haven't used it myself, I don't write scholarly papers with Writer/MS-Word-like tools. 2. A researcher myself, whenever [123]-style keys are used as keys, these are also used as the reference text. So, are you sure you really want to remove the brackets? [1] : https://help.libreoffice.org/7.0/en-US/text/swriter/guide/indices_literature.html?DbPAR=WRITER
(In reply to Eyal Rozenberg from comment #5) > (In reply to Mahmoud Alnaanah from comment #0) > > this is necessary > > for research papers where the numbered paragraph has square brackets [ and ] > > around the number but not in their cross reference. > > 1. If this is the only scenario you are interested, are you not well enough > served by the bibliography mechanism [1]? TBH, I haven't used it myself, I > don't write scholarly papers with Writer/MS-Word-like tools. > > 2. A researcher myself, whenever [123]-style keys are used as keys, these > are also used as the reference text. So, are you sure you really want to > remove the brackets? > > > [1] : > https://help.libreoffice.org/7.0/en-US/text/swriter/guide/indices_literature. > html?DbPAR=WRITER 1. I tried few times to use Bibliography, but it seemed to complicated and time consuming. It is easier to copy the citation from Google scholar and cross reference it. 2. I am sure I want to remove the brackets, and it makes more sense. Because usually you want to reference using the number regarding what decoration is put before or after it.
You are abusing the cross-reference function for bookmarks, and Zotero/Mendeley and co. would be the better solution anyway. For simple text it might be an easy solution, however. The steps are: * insert the reference * format as list with brackets before/after (only needed for the first item) * insert a cross-reference to a Numbered Paragraph The Numbered Paragraph provides the types Number, Number (no context), Number (full context), According the help https://help.libreoffice.org/7.6/en-US/text/swriter/01/04090002.html * Number: Inserts the number of the heading or numbered paragraph, including superior levels depending on the context. See note below this table for more information. * Number (no context): Inserts only the number of the heading or numbered paragraph. * Number (full context): Inserts the number of the heading or numbered paragraph, including all superior levels. So I can follow the expectation that before/after separators should be omitted. And while bug 149635 only talks about "remove "after" separator in cross-reference to numbered list item" we better keep the topics together. I suggested to make it a duplicate.
Thank you all. My suggestion is to mark this report, bug 149635 and bug 147774 as all duplicates of the enhancement request in bug 121465. Any objection?
(In reply to Stéphane Guillou (stragu) from comment #8) > Thank you all. > My suggestion is to mark this report, bug 149635 and bug 147774 as all > duplicates of the enhancement request in bug 121465. > Any objection? I agree with anything that helps. The problem is clear, and enhancement request in bug 121465 describe it well.
*** This bug has been marked as a duplicate of bug 121465 ***