Fork me on GitHub Home Examples Installation Github Examples

LaTeX2HTML5 Installation

HTML5


This is for those who just want to make a simple HTML page with LaTeX2JS. The object provided is called “LaTeX2HTML5”:
1. Download the JS and CSS files! You can go get the JS here and CSS here here.
<html>
  <head>
    <link rel="stylesheet" href="/path/to/your/css/latex2js.css">
    <script src="/path/to/your/js/latex2html5.bundle.js"></script>
  </head>

2. Then, write your $\LaTeX$ inside of a script tag with type set to “text/latex”:
  <body>
    <script type="text/latex">
    you can write any \LaTeX here!
    </script>

<script type="text/latex"> some more ... </script>

3. Lastly, towards the end of your HTML page, call the init method
    <script>
    LaTeX2HTML5.init();
    </script>
  </body>
</html>

Powered by MathJax

Dan Lynch © LaTeX2JS 2020