Hi,

Here is a new port for generating HTML/XML output from TeX files.

%-------------------------------------------------------------------------------
In brief, latexml is a program, written in Perl, that attempts to faithfully
mimic TeX’s behavior, but produces XML instead of dvi. The document model of
the target XML makes explicit the model implied by LaTeX. The processing and
model are both extensible; you can define the mapping between TeX constructs
and the XML fragments to be created. A postprocessor, latexmlpost converts this
XML into other formats such as HTML or XHTML, with options to convert the math
into MathML (currently only presentation) or images.
%-------------------------------------------------------------------------------

I use it to generate epub files together with calibre:

        latexml --dest=${NAME}.xml ${NAME}.tex \
                --includestyles --preload=LaTeX.pool
        latexmlpost -dest=${NAME}.html ${NAME}.xml
        ebook-convert ${NAME}.html ${NAME}.epub \
                --language en --no-default-epub-cover

Also available on github for review.

OK?

Thanks,
Paul

Attachment: p5-LaTeXML.tgz
Description: application/tar-gz

Reply via email to