-
Notifications
You must be signed in to change notification settings - Fork 101
Demos
You can try LaTeXML online here (you can "select examples" at the bottom left)
The latexmlc
executable provides a combined interface for both core and post processing, with the largest set of supported options.
-
LaTeX document to HTML page
latexmlc paper.tex --dest=page.html
-
LaTeX document to embeddable HTML fragment
latexmlc paper.tex --dest=fragment.html --whatsout=fragment
-
LaTeX fragment to embeddable HTML fragment
latexmlc fragment.tex --dest=fragment.html --whatsin=fragment --whatsout=fragment
-
Web service optimized LaTeX fragment to embeddable HTML fragment
latexmlc 'literal:some \textit{fragment} here' --profile=fragment-html
The fragment-html profile specifies a range of common LaTeX packages to preload, uses a 2 minute timeout and provides all supported textual math representations - presentation and content MathML, as well as the original TeX formula source.
-
LaTeX formula to an annotated MathML expression
latexmlc 'literal:\sqrt{x}' --whatsin=math --whatsout=math --pmml --cmml --mathtex
- LaTeX formula to a MathML expression with a linguistics-motivated "math lexemes" annotation
latexmlc 'literal:\sqrt{x}' --whatsin=math --whatsout=math --pmml --cmml --mathlex --preload=llamapun.sty
-
Web service optimized LaTeX formula to MathML output
latexmlc 'literal:\sqrt{x}' --profile=math
The math profile preloads common LaTeX packages used for mathematical expressions and outputs an annotated MathML equation
-
LaTeX document to HTML page with activated MathJaX rendering
latexmlc paper.tex --dest=page.html --javascript=LaTeXML-maybeMathJax.js
The LaTeXML-maybeMathJax.js script loads MathJax for browsers without native MathML support, as a fallback rendering solution.
-
Preserve math source as-is, without parsing in LaTeXML
latexmlc paper.tex --dest=page.html --noparse --mathtex