petermr / norma

Convert XML/SVG/PDF into normalised, sectioned, scholarly HTML
Apache License 2.0
2 stars 4 forks source link

Add --transform tex2html import option #9

Closed robertknight closed 9 years ago

robertknight commented 9 years ago

This adds an option to convert fulltext in LaTeX format to Scholarly XHTML using LaTeXML. The main TeX file for the article is expected to be named fulltext.tex in the ContentMine input directory.

This requires https://github.com/petermr/cmine/pull/1

robertknight commented 9 years ago

The diff looks large because of a DOS -> Unix line ending change for one of the files. I thought GitHub ignored whitespace changes in diffs but apparently not.

Using the --transform tex2html option and running the tests requires latexml to be installed (either via the latexml Debian/Ubuntu package or otherwise put somewhere that appears in the PATH).

petermr commented 9 years ago

Thanks Robert. Have merged.