jabref2obsidian.cite.gen_citation#

jabref2obsidian.cite.gen_citation(entry: dict) str[source]#

Generates a brief form citation string from a dictionary of bibtex entry.

Attention

The citation text presented here is only for adding brief literature citations referenced to this note in another Obsidian note, not for formal academic papers.

Parameters:

entry (dict) –

A a bibtex entry from which the parameters will be extracted. For example:

import bibtexparser

bib_path = '/Users/kirov/Library/Mobile Documents/iCloud~com~apple~iBooks/Documents/Knowledge.bib'
with open(bib_path) as bibtex_file:
    bib_database = bibtexparser.load(bibtex_file)

entry = bib_database.entries[1]
gen_citation(entry)

Returns:

A brief form citation string generated from the bibtex entry.

Return type:

str