Open jeirf12 opened 1 week ago
@jeirf12 Please provide more context. Maybe a screenshot?
I think, you are talking about the LibreOffice integration of JabRef?
@jeirf12 If I understand your issue correctly:
I would like to know which version of JabRef you are using - it is asked in the issue format so that we have more context. There have been major changes in JabRef's OO/LO integration since the last release.
My thoughts:
It will be very convoluted to generate bibliography at the position of the cursor. Reason being in case of the auto-generate bibliography feature, which generates and updates the bibliography on the run as you keep citing items in the rest of the document (which are inserted at the cursor position), there will be conflicts (whether to insert a citation or generate a bibliography at that position?). By default, the Bibliography section is generated at the end of text to avoid such conflicts between citations and bibliography. There could be, however, a provision made in the case of the auto-generate feature being turned off - such that when "generate/update bibliography" is pressed, it generates it at the position of the cursor - but I don't see the utility of this - as the bibliography section is always supposed to be after the text at the end of the document anyway? In case you really require the section to be somewhere else, you can always cite your items (with auto generate bibliography turned off), then generate the bibliography once you are done - and then move it to your desired place. Just a matter of four clicks.
You have the provision to choose the style you want by defining it in JStyle files (in released versions at the time of this comment). If you download the unreleased version, you can choose pre-formatted citation (and bibliography) styles as well - such as IEEE, by using CSL Styles in the "Select Style" dialog of the Open/LibreOffice panel. Once you do that, your selection is saved as a preference until changed. Reverse-parsing the currently present style in the document and auto-selecting that is a near impossible task without AI, and a very difficult task with AI.
In the released versions, two separate bibliography sections are never created, except if you manually create your own bibliography section (or use any other software to do that) and then use JabRef to generate another again. The reason being JabRef uses it's own unique mechanism to add and detect present references, add and mark the bibliography section in the text and then identify, edit/modify or refresh it. In the unreleased version, two bibliography sections are created only when you mix up the style "families" you are using in the document - that is, if you use both a JStyle for some references, and CSL Styles for other. Within each family, there will always be one single bibliography section created pertaining to it.
CC: @ThiloteE , @koppor
The point is that when you click on the update bibliography button, you should be able to choose with the cursor where to start creating the section. Also, have the same format of the document, for example IEEE. Also, it should not create a different section than the one currently being worked on.