latex2html5

2.1.3 • Public • Published

LaTeX2HTML5

yarn add latex2html5

installation

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 https://github.com/pyramation/LaTeX2JS/blob/master/libs/latex2html5/latex2html5.bundle.js and CSS here https://github.com/pyramation/LaTeX2JS/blob/master/core/latex2js/latex2js.css.
<html>
  <head>
    <link rel="stylesheet" href="/path/to/your/css/latex2js.css">
    <script src="/path/to/your/js/latex2html5.bundle.js"></script> 
  </head>
  1. 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> 
  1. Lastly, towards the end of your HTML page, call the init method
    <script>
    LaTeX2HTML5.init();
    </script> 
  </body>
</html>

Readme

Keywords

none

Package Sidebar

Install

npm i latex2html5

Weekly Downloads

0

Version

2.1.3

License

SEE LICENSE IN LICENSE

Unpacked Size

17.6 kB

Total Files

20

Last publish

Collaborators

  • pyramation