Skip to content
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

labelled equations are not renderred when re-typeset #422

Closed
ghost opened this issue Mar 24, 2013 · 3 comments
Closed

labelled equations are not renderred when re-typeset #422

ghost opened this issue Mar 24, 2013 · 3 comments
Labels
Expected Behavior This is how MathJax works

Comments

@ghost
Copy link

ghost commented Mar 24, 2013

There is an issue with updating and retypsetting numbered equations:

Labelled equations aren't rendered at all.

The counter on unlabelled but numbered equations that are updated keeps increasing on every pass, throwing off the numbering sequence of all equations.

See here: http://jsfiddle.net/ZCEQ7/

@dpvc
Copy link
Member

dpvc commented Mar 24, 2013

This is the correct behavior. If you re-typeset a container that has an equation with a label, MathJax will see this as being a second equation with the same label and will throw an error (but the noErrors extension will trap that and simply display the original TeX code). Similarly, the other equations with numbers will be seen as new equations with new numbers. Because you could be typesetting two containers in succession to get the complete page, MathJax does not reset label and equation numbers between typesetting those containers.

If you want to reset the the labels and numbers, use

MathJax.Hub.Queue( 
  ["resetEquationNumbers",MathJax.InputJax.TeX], 
  ["Typeset",MathJax.Hub]
);

See this discussion and this one for some details.

@ghost
Copy link
Author

ghost commented Mar 24, 2013

Thanks Davide. That does the trick. I figured that this might have been what is going on, but I couldn't find the relevant info in the documentation.

@dpvc
Copy link
Member

dpvc commented Mar 26, 2013

A lot of things need to be better documented, and this is one (I think it may not have made it into the documentation at all). I will start an issue to have it included in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Expected Behavior This is how MathJax works
Projects
None yet
Development

No branches or pull requests

1 participant