GithubHelp home page GithubHelp logo

Comments (6)

dpvc avatar dpvc commented on June 10, 2024

It is probably tied to the content of the page you are trying to process. If MathJax can't parse the HTML (and it's LiteDOM is pretty simple), this is the message you will get. Try a simple HTML page first, and see if that goes. Follow your steps (on Mac OS) it works for me. But I don't have your HTML file to test with.

from mathjax-demos-node.

zpostfacto avatar zpostfacto commented on June 10, 2024

Ah. It is indeed something particular to my html. I will try to narrow down what LiteDOM doesn't like.

My next problem is that it isn't actually processing the math. So I obviously have some really basic misunderstanding of how to tell mathjax what to do.

Input:

<html>
<body>
$x+y$
</body>
</html>

Output:

<!DOCTYPE html>
<html>
<head></head><body>
$x+y$
</body>
</html>

from mathjax-demos-node.

dpvc avatar dpvc commented on June 10, 2024

Single-dollar-sign delimiters are not enabled by default, do you need to either use \(...\) or add more configuration to the tex2chtml-page command to enable single dollar signs.

from mathjax-demos-node.

zpostfacto avatar zpostfacto commented on June 10, 2024

Great, that worked. Thanks for the help! My next issues will be align and related environments, and equation numbering. Where can I find more about how to deal with those topics?

from mathjax-demos-node.

dpvc avatar dpvc commented on June 10, 2024

The align environment is in the ams package, which is loaded automatically (see the --packages option), so that should work automatically. Automatic equation numbers can be set using the tex block's tags option. See the tex input options for more details.

from mathjax-demos-node.

zpostfacto avatar zpostfacto commented on June 10, 2024

Thanks for your help. I realize these are all questions I could have answered by Reading The Docs. I tried! I just didn't find what I was looking for.

from mathjax-demos-node.

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.