I am using JabRef with LibreOffice. I have used this combination a lot with good results, but after installing Ubuntu 26.04 and reinstalling JabRef (version 5.15) I am having a problem I can’t solve. My LibreOffice is 26.2.6.3.
After connecting JabRef with the running LibreOffice document and pointing JabRef to the .jstyle I want to use, when I try to update the list of references I get this message:
The ReferenceParagraphFormat paragraph style ‘Hanging Indent’ is missing from the document
Please create it in the document or change in the file:
/home/lorenzo/.styles/JabRef/inf.jstyle
However, the style “Hanging Indent” does exist in the document. In fact I get the same error if I change the line in the .jstyle file to any other existing paragraph style, e.g. “Default Paragraph Style”
Curiously, I don’t get this error if I change the line in the .jstyle to “Text body” (which I copied from the internal style file in JabRef), despite the fact that there is no paragraph style by that name in my LibreOffice document (I have “Body Text” there).
I don’t know if there is a way to fix this as a user, or if it is a bug I should report. Thank you!
Could you please attach the .jstyle file so that I can reproduce it?
We also added a lot of cool features to LibreOffice component lately (CSL support, Zotero compatibility, etc.) that you may be interested in. It would be great if you could try it and share us any issues/suggestions. You can find it via Release v6.0-beta.1 · JabRef/jabref, but please be sure to make a backup of your bib files.
Hi. Thanks for your answer. I do have the format in LO and it works.
As for your suggestion, do I need to unisntall 5.15 to try the current beta version?
Thank you. It works if I type “Hanging indent” (with a smal “i”). For my practical purposes, this is enough.
However, as a general solution it is not really satisfactory, because the names of the paragraph styles displayed in LibreOffice don’t coincide with the ones we need to type in the jstyle file: “Text body” to use the style displayed as “Body Text”; “Hanging indent” to use the style displayed as “Hanging Indent” — I have tried some other styles such as “Default” and “Default Paragraph Style” (with and without capitalization) and get an error as before.
But, as I said, I can live with this workaround. Should I mark the problem as solved?
The names in the .jstyle need to match LibreOffice’s internal style:name, not necessarily the UI label. To find the exact internal names, save a copy as .fodt (Flat ODF), open it as text, and search for the paragraph style entries; copy the exact casing into ReferenceParagraphFormat. That should also explain why some displayed names fail. Worth marking solved with the workaround and linking the filed issue.