Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
bibconvert Namespace Reference

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

Functions

def read
 read bibtex files with bibtexparser More...
 
def getDatetime
 extract date time from entry More...
 
def getAddressAndDate
 extract address and date time from entry More...
 
def switchToFirstLastNameStyle
 switch from [last name, first name] to [first name last name] More...
 
def printBibDB
 print bibtex database with target format More...
 
def printWeb
 print in Jemdoc format More...
 
def printCV
 print in Latex format More...
 
def printHelp
 print help message
 

Variables

 suffix = None
 target format
 
list highlightAuthors = []
 list of authors for highlight
 
list filenames = []
 list of bibtex files
 
tuple 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

def bibconvert.getAddressAndDate (   entry)

extract address and date time from entry

Parameters
entrybibentry
Returns
formated address and date

Definition at line 51 of file bibconvert.py.

def bibconvert.getDatetime (   entry)

extract date time from entry

Parameters
entrybibentry
Returns
formated date time

Definition at line 37 of file bibconvert.py.

def bibconvert.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.

def bibconvert.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.

def bibconvert.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.

def bibconvert.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.

def bibconvert.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.