Module bibtex

Source
Expand description

Native BibTeX/BibLaTeX export — no BBT dependency.

§Why native?

BBT’s JSON-RPC export takes ~300ms per call (JavaScript inside Electron). We can generate equivalent BibTeX in <0.1ms from SQLite data.

§BibTeX format

@article{demilloHintsTestData1978,
  author    = {DeMillo, Richard A. and Lipton, Richard J. and Sayward, Fred G.},
  title     = {Hints on Test Data Selection: Help for the Practicing Programmer},
  journal   = {Computer},
  year      = {1978},
  volume    = {11},
  number    = {4},
  pages     = {34--41},
  doi       = {10.1109/C-M.1978.218136},
}

§Item type mapping

Zotero typeBibTeX typeBibLaTeX type
journalArticle@article@article
book@book@book
bookSection@incollection@incollection
conferencePaper@inproceedings@inproceedings
thesis@phdthesis@thesis
report@techreport@report
webpage@misc@online
* (other)@misc@misc

Functions§

biblatex_type 🔒
Map Zotero item types to BibLaTeX entry types (more granular).
bibtex_type 🔒
Map Zotero item types to BibTeX entry types.
escape_bibtex 🔒
Escape special BibTeX characters in a string value.
format_authors 🔒
Format creators as BibTeX author field.
format_editors 🔒
Format creators as BibTeX editor field.
item_to_bibtex
Generate a BibTeX entry for a single item.
items_to_bibtex
Generate BibTeX for multiple items.