Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.openoffice.bst

public Class BstEntryRenderer

extends Object
Class Inheritance
Annotations
@NullMarked
Imports
java.util.List, java.util.regex.Pattern, org.jabref.logic.bst.BstVM, org.jabref.logic.cleanup.ConvertToBibtexCleanup, org.jabref.model.database.BibDatabase, org.jabref.model.entry.BibEntry, org.jspecify.annotations.NullMarked

Renders a single BibEntry through a BstVM and strips all LaTeX structure that precedes the actual bibliography text, leaving inline markup intact for pandoc to process.

IEEEtran and similar styles emit a large \providecommand preamble before every entry. Rather than matching individual macros with fragile regexes, we take everything after the last \bibitem{key} - since BstVM.render(List.of(entry), …) renders exactly one entry, every line before its \bibitem is preamble by construction.

Field Summary

Modifier and TypeField and Description
private static final Pattern
private static final Pattern
private final BstVM

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
renderEntryToLatex(BibEntry originalEntry, BibDatabase database)

Renders one entry to a LaTeX body string with preamble and structure stripped.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BIB_ENV_END_PATTERNback to summary
private static final Pattern BIB_ENV_END_PATTERN
BIBITEM_PATTERNback to summary
private static final Pattern BIBITEM_PATTERN
bstVMback to summary
private final BstVM bstVM

Constructor Detail

BstEntryRendererback to summary
public BstEntryRenderer(BstVM bstVM)

Method Detail

renderEntryToLatexback to summary
public String renderEntryToLatex(BibEntry originalEntry, BibDatabase database)

Renders one entry to a LaTeX body string with preamble and structure stripped.

Returns the inline LaTeX text ready for pandoc - no \bibitem, no \providecommand, no \begin/\end{thebibliography}.