What is the best way to embed LaTeX in a webpage?

后端 未结 10 1714
旧巷少年郎
旧巷少年郎 2020-11-28 20:21

I\'m not asking about converting a LaTeX document to html.

What I\'d like to be able to do is have some way to use LaTeX math commands in an html document, and have

10条回答
  •  情深已故
    2020-11-28 21:07

    I once developed a jQuery plugin that does in fact this: jsLaTeX

    Here's the simplest example of how it can be used:

    $(".latex").latex();
    
    
    
    \int_{0}^{\pi}\frac{x^{4}\left(1-x\right)^{4}}{1+x^{2}}dx =\frac{22}{7}-\pi

    The above will generate the following LaTeX equation on your page:

    The Demo Page of the plugin contains more code examples and demos.

提交回复
热议问题