Limbo 3.5.4
Loading...
Searching...
No Matches
bibconvert Namespace Reference

convert bibtex format of references to jemdoc and latex formats More...

Functions

 read (filenames, commentPrefix)
 read bibtex files with bibtexparser
 getDatetime (entry)
 extract date time from entry
 getAddressAndDate (entry)
 extract address and date time from entry
 switchToFirstLastNameStyle (author)
 switch from [last name, first name] to [first name last name]
 printBibDB (bibDB, highlightAuthors, suffix)
 print bibtex database with target format
 printWeb (bibDB, stringMap, highlightAuthors, entries, publishType, booktitleKey)
 print in Jemdoc format
 printCV (bibDB, stringMap, highlightAuthors, entries, publishType, booktitleKey)
 print in Latex format
 printHelp ()
 print help message

Variables

 suffix = None
 target format
list highlightAuthors = []
 list of authors for highlight
list filenames = []
 list of bibtex files
 bibDB = read(filenames, "%")
 bibtex database

Detailed Description

convert bibtex format of references to jemdoc and latex formats

Author
Yibo Lin
Date
Dec 2016

!/bin/python

Function Documentation

◆ getAddressAndDate()

getAddressAndDate ( entry)

extract address and date time from entry

Parameters
entrybibentry
Returns
formated address and date

Definition at line 51 of file bibconvert.py.

◆ getDatetime()

getDatetime ( entry)

extract date time from entry

Parameters
entrybibentry
Returns
formated date time

Definition at line 37 of file bibconvert.py.

◆ printBibDB()

printBibDB ( bibDB,
highlightAuthors,
suffix )

print bibtex database with target format

Parameters
bibDBbibtex database
highlightAuthorsauthors need to be highlighted
suffixtarget format

Definition at line 89 of file bibconvert.py.

◆ printCV()

printCV ( bibDB,
stringMap,
highlightAuthors,
entries,
publishType,
booktitleKey )

print in Latex format

Parameters
bibDBbibtex database
stringMapstrings defined in bibtex database, which will be used to replace some references
highlightAuthorsauthors to be highlighed
entrieslist of bibentry to be printed
publishTypetype of publications
booktitleKeythe keyword of entries need to search in the stringMap

Definition at line 180 of file bibconvert.py.

◆ printHelp()

printHelp ( )

print help message

Definition at line 231 of file bibconvert.py.

◆ printWeb()

printWeb ( bibDB,
stringMap,
highlightAuthors,
entries,
publishType,
booktitleKey )

print in Jemdoc format

Parameters
bibDBbibtex database
stringMapstrings defined in bibtex database, which will be used to replace some references
highlightAuthorsauthors to be highlighed
entrieslist of bibentry to be printed
publishTypetype of publications
booktitleKeythe keyword of entries need to search in the stringMap

Definition at line 137 of file bibconvert.py.

◆ read()

read ( filenames,
commentPrefix )

read bibtex files with bibtexparser

Parameters
filenamesarray of bibtex files
commentPrefixtake lines starting with specific charactors as comment
Returns
bibtex database

Definition at line 19 of file bibconvert.py.

◆ switchToFirstLastNameStyle()

switchToFirstLastNameStyle ( author)

switch from [last name, first name] to [first name last name]

Parameters
authorauthor list
Returns
formated author list

Definition at line 70 of file bibconvert.py.

Variable Documentation

◆ bibDB

bibconvert.bibDB = read(filenames, "%")

bibtex database

Definition at line 263 of file bibconvert.py.

◆ filenames

list bibconvert.filenames = []

list of bibtex files

Definition at line 245 of file bibconvert.py.

◆ highlightAuthors

list bibconvert.highlightAuthors = []

list of authors for highlight

Definition at line 243 of file bibconvert.py.

◆ suffix

bibconvert.suffix = None

target format

Definition at line 241 of file bibconvert.py.