π yaml2bib
: Convert YAML to BibTeX with Correct Journal Abbreviations Using Only DOIs πο
Introducing π yaml2bib
, an easy-to-use and powerful Python library and command-line tool that seamlessly converts YAML files to BibTeX format, all while maintaining the correct journal abbreviations using only DOIs! π
Whether youβre a researcher or a student, yaml2bib
will simplify and streamline your bibliography management process. With an intuitive interface, customizable options, and compatibility as both a library and a command-line tool, itβs never been more convenient to create and maintain your citation records.
Say goodbye to manual conversions and hello to yaml2bib
! π
π οΈ Installationο
pip install yaml2bib
π Usageο
Command Line Toolο
Check out the help message yaml2bib --help
:
Example invocation for Bas Nijholtβs thesis:
yaml2bib \
--bib_fname "dissertation.bib" \
--dois_yaml "*/*.yaml" \
--replacements_yaml "replacements.yaml" \
--static_bib "chapter_*/not_on_crossref.bib" \
--email "bas@nijho.lt"
Python Libraryο
from yaml2bib import yaml2bib
yaml2bib(
bib_fname="dissertation.bib",
dois_yaml="*/*.yaml",
replacements_yaml="replacements.yaml",
static_bib="chapter_*/not_on_crossref.bib",
email="bas@nijho.lt",
)
π Full Exampleο
Check out the ``examples` <[https://github.com/basnijholt/yaml](https://github.com/basnijholt/yaml>`_
Convert with:
yaml2bib \
--bib_fname "example.bib" \
--dois_yaml "example.yaml" \
--replacements_yaml "replacements.yaml" \
--static_bib "not_on_crossref.bib" \
--email "bas@nijho.lt"