Skip to content

Instantly share code, notes, and snippets.

@salmanarif
salmanarif / refworks_to_tex.py
Last active August 29, 2015 14:14
Script to convert RefWorks Bibliography to LaTeX
# Install the BeautifulSoup package
# Edit all Author fields in RefWorks to contain the latex citation reference:
# for example, "Clarke, T.J.W.C." should become "@!cite_ref!@Clarke, T.J.W.C."
# Download the bibliography from RefWorks as an HTML file, using the
# "Imperial College Vancouver" Output Style.
# Run the script: refworks_to_tex.py <input> <output>
# Import the tex file into latex where you want your bibliography to be
# Cite entries using \cite{cite_ref}
from bs4 import BeautifulSoup