You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains some fairly crude but functional tools for converting
laTeX and Bibtex files to ReStructured Text (.rst) and html files. The tex2rst functions
are in many places specific to converting old Clawpack documentation, but may
still be a useful starting place for other purposes. Also, note that these do
not constitute a real TeX parser by any stretch of the imagination. The
bibtex2rst module mainly uses the bibliograph.parser module. Other tools exist,
but seem to be fragile or have very poor documentation.
Requires bibliograph.parsing, bibliograph.rendering, zope.component, and zope.schema:
You should clone or download this repository and put it on your PYTHONPATH.
There are various tools included, but the one I mainly use and continue
to develop is the bibtex to html bit. It can be used as follows:
cd /directory/with/my/bibtex/file/
ipython
from tex2rst import bibtex2htmldiv
bibtex2htmldiv.bib2html('mybibtexfile.bib')
Then copy the contents of bib.html into your HTML page, preferably
with appropriate CSS defined. For example, the CSS I use on my own site
is as follows: