-
-
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
using multiple \eqref's inside an equation #2540
Comments
OK, I can reproduce the issue using your example file. I will have to look into it. So clue what is happening at this point. |
I spoke too soon, I do know what it is. It is actually issue #2530. The SVG output uses a transparent There is already a proposed fix, but I haven't posted a configuration that will do a patch on the fly. I will see about posting one as soon as I can. |
Thanks a lot |
@parhizkari, here is a configuration that patches the link issue: MathJax = {
startup: {
ready() {
const {SVGWrapper} = MathJax._.output.svg.Wrapper;
const place = SVGWrapper.prototype.place;
SVGWrapper.prototype.place = function (x, y, node) {
place.call(this, x, y, node);
if ((x || y) && !node && this.node.attributes.get('href')) {
const translate = 'translate(' + this.fixed(x) + ', ' + this.fixed(y) + ')';
const rect = this.adaptor.previous(this.element);
this.adaptor.setAttribute(rect, 'transform', translate);
}
};
MathJax.startup.defaultReady();
}
}
} |
It worked great, fantastic, thank you 👍 |
Issue Summary
When multiple \eqref{}'s are used inside an equation, the number of the equations shown are all correct, but sometimes some of them link to wrong equations.
I'm in Firefox, in Lubuntu.
Steps to Reproduce:
A minimal example to show the behavior:
You can also try it with only first two equations, then both links will link to the second, the eq2.
Technical details:
Supporting information:
The text was updated successfully, but these errors were encountered: