How can I add as an option math formula? So far something like \frac{1}{2} renders as I wrote}

15 views
Skip to first unread message

Tutor O

unread,
May 15, 2024, 5:22:52 PMMay 15
to MathJax Users
let questions = [
    {
        numb: 1,
        question: "some question?",
        answer: "answer 1",
        options: [
            "option 1",
            math formula,
            "option 2",
            "option 3"
        ]
    }










Davide Cervone

unread,
May 19, 2024, 8:53:20 AMMay 19
to mathja...@googlegroups.com
There is not enough information in you message to give you an answer.  For example, you don't say what framework you are using, but just give a data structure, so there is no way we can help you at this point.

I can tell, you however, that once the math has been added to the page, you will need to call MathJax.typesetPromise() to have the new math typeset.  See the documentation for how to handle math that is added to a page dynamically, as it seems is the case for your situation.

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/1b9e6e4d-5469-44f2-abb0-0086c3102e6en%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages