wdbibtex.WdBibTeX.build#

WdBibTeX.build(bib=None, bst=None)[source]#

Build word file with latex citations.

Build word file with latex citation key of \cite{} and \thebibliography. This is realized by the following five steps:

  1. Find latex citations and thebibliography key.

  2. Generate dummy LaTeX file.

  3. Build LaTeX project.

  4. Parse LaTeX artifacts of aux and bbl.

  5. Replace LaTeX keys in word file.

Parameters:
bibstr or None, default None

Bibliography file to be used. If None, all .bib files placed in the same directory of target .docx file will be used.

bststr or None, default None

Bibliography style. If None, .bst file placed in the same directory of target .docx file is used.