Description: In the bibliography settings, you are allowed to change the type of the brackets around the bibliography citation numbers and while I can see how that would be enough for most people, it doesn't allow anything like inserting spaces between the number and the brackets, adding leading zeroes or even mixing bracket types. I think the structure of the citation should be customizable in the same way the entries of the bibliography table are. This might be topic for another issue, but it would also allow huge flexibility in terms of linking the citation back to the entry in the table, because one might be able to decide (using the LS and LE) whether they want the citation to link back, and which parts of it should be the link (for example only the number, not the brackets, or the whole citation, or something else). Steps to Reproduce: N/A Actual Results: N/A Expected Results: N/A Reproducible: Always User Profile Reset: No Additional Info: N/A
Can you name a format that requires adding a space before/after the entry? In technical areas it's common to just use sequential numbers in square brackets like Lorem ipsum [1]. But the APA, for example, requires bibliographical entries to consist of "(<authors name>, <year>)"; with a lot of exceptions. And there are many other publication standards around. Lorem ipsum (Foo, 2001) Foo said, Lorem ipsum (2001) Lorem ipsum (Foo & Bar, 2001) Foo and Bar said, Lorem ipsum (2001) Lorem ipsum (Foo et al., 2001) (Foo,Bar,Baz,Qux...) So besides I asked for details above, I agree with more flexibility. The option does not belong to the ToC dialog anyway, we have to create a separate dialog. And I could imagine to use the same layout paradigm as for the ToC entries with a couple of predefined tags (AN,CH,YE...) and the option to insert any character(s) in between. Ultimately this could be made a duplicate of bug 73275.
I admit I don't know format that would require the spaces, that part was more of a speculation, however I do believe it should be possible in case someone does need actually it. Since the marks cannot be edited in the same way as the index can be, it could make life of someone who needs it pretty miserable. I also don't believe it is a duplicate of 73275, since I don't see anything like this mentioned in there. Might be just overlooking it, though.
If we donÄt have a real life use case and don't know, if anybody would use it, I don't see a reason to implement it into LO.
Personally I don't agree, however that doesn't matter in this case. Heiko has a good example of where the extended editing really is needed, and introducing the extended editing options naturally brings option to add spaces, regardless if someone needs them.
[Automated Action] NeedInfo-To-Unconfirmed
It seems to be a FAQ https://ask.libreoffice.org/t/writer-how-to-insert-bibliography-entry-showing-number/33081 where even the experts struggle with the answer. Currently we insert shortname entry from the bibliography database entry, eg. ARJ00. Alternatively one can switch to sequential numbers but very unfamiliar at the bibliography (aka ToC) insertion dialog. And this dialog allows to change the brackets. We need an extra dialog that allows ad-hoc and more fine-grained definitions.
We discussed the topic in the design meeting and had two different views on the topic. * Inline citation and bibliography in general is way more complex than our implementation and adding simple options like space wont help at all * Introduce a format specifier to support all use cases The outcome of the discussion are the following two mockups.
Created attachment 199789 [details] Mockup #1 The idea here is to just support the request of spaces. That could be done by allowing to edit the brackets, separated into before and after the citation. The combobox control allows to edit and to store modifications, the example here is "My %".
Created attachment 199790 [details] Mockup #2 The alternative is inspired by the table of contents and the bibliography that provides a powerful customization under Entries. In contrast to mockup #1 that changes the "Insert ToC/Bibliography" dialog, this one affects every single citation. We probably cannot calculate what exactly the user needs, which depends on reference standard, number of authors, previous citations, and maybe more, but we could allow more user-configuration. The format is chosen via a dropdown that may have a couple of standard combinations but also stores the user configuration, done via the plus button. It shows a widget with all available tokens (for keeping the dialog simple not on the primary UI as known from the ToC). Like known from the ToC dialog, every token is followed by a text field to allow insertion of any fix character.