You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to enable a mathjax extension (ams) due to running into a problem with unknown commands (\substack and \mathclap) however this currently seems to be impossible. In particular the runtime import mechanism provided by MathJax in the form of \require does not work. (I also tried LaTeX's default \usepackage which usually works with mathjax and ran into the same problems).
Reproducing the error
Linear program: {
formula: |latex
\\min_{ \\mathclap{\\substack{ x \\in \\mathbb{R}^n \\ x \geq 0 \\ Ax \leq b }}} c^T x
|
}
yields Undefined control sequence \substack.
Linear program: {
formula: |latex
\\require(ams)
\\min_{ \\mathclap{\\substack{ x \\in \\mathbb{R}^n \\ x \geq 0 \\ Ax \leq b }}} c^T x
|
}
yields Undefined control sequence \require.
The text was updated successfully, but these errors were encountered:
Thanks for the quick fix! I just noticed that my example was a bit off as the \\s inside the substack should've really been \\\\s so that it renders something like this:
Although I guess the other variant also works as a basic test.
Description
I wanted to enable a mathjax extension (
ams
) due to running into a problem with unknown commands (\substack
and\mathclap
) however this currently seems to be impossible. In particular the runtime import mechanism provided by MathJax in the form of\require
does not work. (I also tried LaTeX's default\usepackage
which usually works with mathjax and ran into the same problems).Reproducing the error
yields
Undefined control sequence \substack
.yields
Undefined control sequence \require
.The text was updated successfully, but these errors were encountered: