Giter VIP home page Giter VIP logo

Comments (3)

GabrieleMartino avatar GabrieleMartino commented on June 2, 2024

I solved with upgrading version 3.

Basically the solution constit in configuring the page with

  1. a update script of MathJax from where to recover Mathjax v3 (see documentation [https://docs.mathjax.org/en/latest/web/configuration.html#loading-mathjax]),
  2. configuring a MathJax = ... in a script tag of the page where to put inside the configuration options, defult key to embrace Latex text, and important to put inside ready object function, the tex packages and all (see documentation at Configuring and Loading MathJax [https://docs.mathjax.org/en/latest/web/configuration.html]
  3. to recall call the MathJax.typePromise() after have put the formula in innerHTML of the object your are looking to display.

I tryed answer because I would have used your time and response; Thank you MathJax.

from mathjax.

dpvc avatar dpvc commented on June 2, 2024

The key difference between your initial description using version 2 (your first posting), and your three points for version 3 (second post) is step 3, where you can Mathjax.typesetPromise(). Version 2 had a similar call that you need to do in order to typeset the math, and it looks like you never did that. It would have been something like MathJax.Hub.Queue(['Typeset', idParagraph]). The call to MathJax.Hub.getAllJax() will only find items that have been typeset previously, so if you haven't queued the Typeset call, this will return no results, as you found.

from mathjax.

dpvc avatar dpvc commented on June 2, 2024

I'm glad you were able to figure out a solution on your own. Good work. I am closing this as completed.

from mathjax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.