JabRef doesn't recognize my LibreOffice paragraph styles

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!

Hi, thanks for reporting this issue.

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,

Please first try the. Beta, then check if you really have the format in LO, this was an issue for someone else with the same error message

SPDX-License-Identifier: MIT

NAME
InfoREDAF style file.

JOURNALS
#Journal name 1
#Journal name 2

PROPERTIES
Title=“Referencias”
IsSortByPosition=“false”
IsNumberEntries=“false”
ReferenceParagraphFormat=“Hanging Indent”
ReferenceHeaderParagraphFormat=“Heading 3”

CITATION
BracketBefore=“(”
BracketAfter=“)”
BracketBeforeInList=“(”
BracketAfterInList=“) "
CitationSeparator=”, "
UniquefierSeparator=“,”
GroupedNumbersSeparator=“-”
MinimumGroupingCount=“3”
FormatCitations=“false”
CitationCharacterFormat=“Reference Number”
PageInfoSeparator=": "

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?

Please try “Hanging indent” with a small “i” and report back.

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?

Yeah there happens to be a disparity between what the LibreOffice application internally understands and what is displayed in the LibreOffice UI.

Currently JabRef does not have this internal conversion, and nor is it documented. Thanks for reporting.

I have filed Support parity between displayed LibreOffice paragraph formats and JStyle specifications · Issue #17883 · JabRef/jabref · GitHub and it should be done by V6.0-stable.

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.