-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[textmacros] \tag{$*$} spacing issue #2828
Labels
Accepted
Issue has been reproduced by MathJax team
Code Example
Contains an illustrative code example, solution, or work-around
Fixed
Test Needed
v3
v3.2
Milestone
Comments
You are correct about the cause. It should to be hard to fix. Thanks for the report! |
dpvc
added
Accepted
Issue has been reproduced by MathJax team
Ready for Development
v3
labels
Feb 2, 2022
PS, you could use |
I've made a PR to address the issue. But in the meantime, you can use MathJax = {
loader: {load: ['[tex]/textmacros']},
tex: {packages: {'[+]': ['textmacros']}},
startup: {
ready() {
const TextParser = MathJax._.input.tex.textmacros.TextParser.TextParser;
const TextParser.prototype._PushMath = TextParser.prototype.PushMath;
TextParser.prototype.PushMath = (mml) => {
if (!mml.isKind('TeXAtom')) {
mml = this.create('node', 'TeXAtom', [mml]); // make sure the math is class ORD
}
this._PushMath(mml);
};
MathJax.startup.defaultReady();
}
}
} as part of your configuration in order to get the effect of the patch. |
dpvc
added
Code Example
Contains an illustrative code example, solution, or work-around
Ready for Review
Test Needed
and removed
Ready for Development
labels
Feb 2, 2022
dpvc
added a commit
to mathjax/MathJax-src
that referenced
this issue
Feb 22, 2022
Make sure math-in-text forms an ORD atom with textmacros. (mathjax/MathJax#2828)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Accepted
Issue has been reproduced by MathJax team
Code Example
Contains an illustrative code example, solution, or work-around
Fixed
Test Needed
v3
v3.2
E.g.
$$\text{Tag with math}\tag{$*$}$$
will render differently (using SVG but see below).Without textmacros extension:
With textmacros extension:
I think this come down to a missing
data-mjx-texclass="ORD"
when the extension is active.The text was updated successfully, but these errors were encountered: