Can MathJax.typeset in v3 typeset the specific element?

795 views
Skip to first unread message

Xi Shen

unread,
Nov 16, 2019, 8:52:34 PM11/16/19
to mathja...@googlegroups.com
Hi,

In v2, the "Typeset" function takes an element argument.

MathJax.Hub.Queue(['Typeset', MathJax.Hub, this.element]);

In v3, we have MathJax.typeset and MathJax.typesetPromise. But it is unclear if there's a way to typeset the specific element.

Any idea?

Thanks,
 

Davide Cervone

unread,
Nov 16, 2019, 8:55:21 PM11/16/19
to mathja...@googlegroups.com
The documentation at


indicates (in the last paragraph of that section) that MathJax.typeset() and MathJax.typesetPromise() both take an array of elements whose contents are to be typeset.  So something like

MathJax.typeset([this.element]);

would be the equivalent of your v2 code.

Davide


--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/CANO68EP7aNbLitWiPaULWXbRPe1vNkk1zK2ummutP6cLbNf6ZA%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages