Open rgaiacs opened 9 years ago
If you want to make \sideset
more strict, you can put
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: {Macros: {
sideset: ["\\mathop{\\vphantom{#3}}\\nolimits#1\\!#3\\nolimits#2",3]
}}
});
</script>
just before the script that loads MathJax.js itself. That will cause the same type of error that LaTeX does for \sideset{^*_*}{^*_*}X
.
There are several other places where MathJax is less strict than LaTeX (e.g., \raise
and \lower
don't actually require boxes but will operate on an argument enclosed in braces), and a few places where there are differences (e.g., the \color
macro takes an argument for what is colored rather than acting on everything that follows). There are also some macros that are MathJax extensions that aren't in LaTeX (e.g., the \style
, \class
, and \cssId
macros for manipulating the attributes of the underlying MathML). So there are a number of things that could still cause problems when MathJax TeX code is inserted into LaTeX directly.
It might be nice to have a "strict-LaTeX" extension that would reduce the number of such cases.
From amsmath documentation
So,
works.
But
Unfortunately, MathJax isn't compatible with this behavior of LaTeX.
This creates problems when users have to create a PDF using LaTeX from a webpage that uses MathJax. Can MathJax be more compatible with LaTeX?