Skip to content

MathJax defaults to horrible-looking CHTML rendering #3868

@henrikt-ma

Description

@henrikt-ma

If one doesn't tell MathJax to change rendering mode to SVG, code inside math looks horrible. Here is an example from https://specification.modelica.org/master/modelica-dae-representation.html:

Image

The fix for this appears to be to modify the LaTeXML-maybeMathjax.js produced by LaTeXML, so that it looks like this:

    var mathjax_url =
        "https://cdn.jsdelivr.net/npm/mathjax@3/es5/mml-svg.js";

Before creating a PR, I'd like input on the following alternatives:

  • Add a copy of LaTeXML-maybeMathjax.js to the repository, and modify the copy. (I don't like this approach since we won't automatically get new versions of the file from future versions of LaTeXML.)
  • Add a small build step that modifies the LaTeXML-maybeMathjax.js coming from LaTeXML. (Minor drawback is maintenance of a small program making the substitution.)
  • Don't change anything, the current situation is good enough.

Metadata

Metadata

Assignees

Labels

LaTeXIssue with the LaTeX code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions