Mathematical diagrams and macro support [tfmt-000G]

A basic requirement of tools for scientific thought is to support the rendering of mathematical diagrams. What kinds of diagrams are needed depends, of course, on the problem domain: for my own work, the main diagram-forms needed are commutative diagrams and string diagrams.

The situation for hypertext mathematical tools is somewhat less advanced than that of LaTeX and PFG/TikZ, but there are several options which we discuss below.

Both \KaTeX and MathJax have the benefit that diagrams created using them will respect the ambient macro package with which the tool has been configured; therefore, if one looks past the rudimentary nature of the support for commutative diagrams, our main requirement is indeed satisfied. Another tool worth discussing is quiver.

Because of the currently inadequate support of quiver for embedding diagrams in hypertext settings, we cannot consider it any further. There is a final option that turns out to be the most used in practice: generating SVG images statically from embedded LaTeX code.

Finally, we comment on more principled approaches using web standards such as SVG and MathML that we hope will take form in the future.

References

Reference. The Stacks project [stacks-project]

Context

Requirements for typesetting mathematics [tfmt-000E]

Related

Commutative diagrams in MathJax [tfmt-000K]

Commutative diagrams in KaTeX [tfmt-000J]

The quiver interactive diagramming tool [tfmt-000I]

Definition. Tool for scientific thought [tfmt-0002]