You just want equations? You don’t need TeX-the-software, just TeX-the-mathematical-markup. Lots of things can render TeX math. In particular if you have an HTML or a markdown document with mathematical markup, many mathematical typesetting options are available. In fact, too many, all with incompatible syntax of course. The de facto standard is ’pandoc`, which is what I usually use for turning my markdown+math into various documents (including, for example, parts of this blog).
MathJax allows you to put LaTeX equations online easily without bothering with the rest of the latex infrastructure..
Katex is a faster competitor to MathJax,
but is not yet as widely supported.
Katex even eliminated another pain point, having
supported macros since 0.10.rc1.
You couldn’t define macros inline which was
tedious because macros are ubiquitous in real mathematics work.
Now you can either inject them via config,
or use the esoteric low-level
to get LaTeX-like behaviour, since
\renewcommand exists but doesn’t
persist between equations, which makes it pointless
for anything except prototyping individual macro definitions.
KaTex support of
maths markup is not
as complete as MathJax.
- I miss the
- You can’t put math markup inside
is a LaTeX document processing framework written entirely in Python. It currently comes bundled with an XHTML renderer (including multiple themes), as well as a way to simply dump the document to a generic form of XML. Other renderers can be added as well and are planned for future releases.…
plasTeX differs from other tools like
TtH, etc in that the parsing and rendering of the document are completely separated. This separation makes it possible to render the document in multiple output formats.
Inlined HTML mathematics
Both MathJax and KaTeX are eventually slow if you have enough equations in a document - MathJax sooner than KaTeX, but neither scales to the documents I write as a mathematician. You ideally want something different. There are a few attempts to do this.
plasTeX, above, is one, and probably the most vibrant (?).
Both these last 2 projects took the unusual step of not using the de facto standard for markdown/academia, ’pandoc`, in favour of implementing their own new engines, which makes them suspiciously niche.
There is another school of methods of rendering mathematics in HTML,
which is the school who note that
you can render MathJax without a browser
node.js, saving some time for the reader who
Presumably this could be implemented for KaTeX too; in fact it has been; see pelican-latex-prerender.
The tool du jour is
MathJax-node-page which comes with
mjpage which will pre-render HTML for you—it even claims to render math as SVG
too, through forbidden magic
into which it is best not to enquire too closely.
See also mathmd.
Wikipedia aims to leverage
via their mathoid project.
There are some full-pipeline tools which leverage this. The one that looks shiniest is ReLaXed, which also makes the case for their take on this approach
Many of us prefer markup languages (Markdown, LaTeX, etc.) to GUI document-editors like MS Office or Google Docs. This is because markup languages make it easier to quickly write documents in a consistent style.
However, Markdown is limited to the title/sections/paragraphs structure, and LaTeX has obscure syntax and errors that also make it difficult to stray from the beaten track.
On the other hand, web technologies have never looked so good.
- Beautiful CSS frameworks make sure your documents look clean and modern.
- Millions of people (and growing) know how to use these.
- Shorthand languages like Pug and SCSS are finally making it fun to write HTML and CSS.
- (Headless) web browsers can easily turn web documents into PDF, on any platform.
ReLaXed is an attempt at finding the most comfortable way to leverage this for desktop PDF creation.
However, I need citations in my workflow, and it is not immediately clear how I would inject those into such an end-to-end solution, at least not without writing yet another plugin— however, possibly Zotero could help with its HTML citation reports or maybe one of the word processor plugins supports HTML documents? It merits investigation. Not by me.
Gerby looks to be somewhere intermediate between a new markup language and HTML presentation; it generates a large indexed website from a latex document instead of a PDF.
If you have a LaTeX document which
- is large (probably several hundreds of pages at least)
- is regularly updated
- needs to be externally referenced often
you will run into the problem that
- large PDFs are not easily navigable
- PDFs of any size are not very searchable
- the internal numbering changes often, making external references outdated
Gerby addresses these problems by providing an online tag-based view, instead of just having a big PDF. Gerby is tailored towards making large online textbooks and reference works more accessible.
It uses plasTeX as the backend.
MathQuill is an open source formula editor for the Web…
MathQuill was born of a need to communicate math. The creators,… used LaTeX for projects together, but struggled to collaborate online once they were apart. They wanted a tool to both write and read math without resorting to ugly flat text or more cumbersome conventions.
… Today, MathQuill is used in educational software, math visualizations, collaborative editors, and more.