Skip to main content

Module make_bibliography

Module make_bibliography 

Source
Expand description

Bibliography generation processor.

Port of LaTeXML::Post::MakeBibliography (818 lines of Perl). Collects bibliographic entries from .bib.xml files and the ObjectDB, formats them according to the bibliography style (numeric, author-year, alpha), and fills in ltx:bibliography elements with ltx:biblist + ltx:bibitem.

Pipeline:

  1. Find bibliography sources (xml files, bib files, literals)
  2. Scan bibentry elements for cited keys (via BIBLABEL:* in ObjectDB)
  3. Transitively include entries cited from within included entries
  4. Extract names, dates, titles for sorting
  5. Detect duplicate author+year pairs → assign suffixes (a, b, c…)
  6. Format each entry into ltx:bibitem with ltx:tags + ltx:bibblock sections
  7. Optionally split by initial letter

Structs§

BibConversionRequest
Everything the recursive BibTeX session needs, gathered post-side.
MakeBibliography
MakeBibliography post-processor.

Enums§

CitationStyle
Citation style.
RawBibSource
A raw bibliography source that still needs converting.

Functions§

set_bib_converter
Install the recursive-BibTeX-session implementation for this thread.

Type Aliases§

BibConverterFn
Convert raw BibTeX into a document containing ltx:bibentry elements.