Installation
v1.0
Search this version
Installation
Installation
Features
Comments
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Latex
Copy Markdown
Open in ChatGPT
Open in Claude
For all equations written in javascript, remember to escape the \ with another \. \ by itself is an escape delimiter.
LaTeX.js
Project homepage: https://latex.js.org/
Code:
HTML
x
<!DOCTYPE html><html lang="en"><head> <script src="https://cdn.jsdelivr.net/npm/latex.js/dist/latex.js"></script></head><body> <script> var text = 'The fraction is as such: $\\frac{\\sqrt{2}}{2}$' var generator = new latexjs.HtmlGenerator({ hyphenate: false }) generator = latexjs.parse(text, { generator: generator }) document.head.appendChild( generator.stylesAndScripts("https://cdn.jsdelivr.net/npm/latex.js@0.12.4/dist/")) document.body.appendChild(generator.domFragment()) </script></body></html>KaTex
Project homepage: https://katex.org/
Code:
HTML
<!DOCTYPE html><html> <head> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css" integrity="sha384-Xi8rHCmBmhbuyyhbI88391ZKP2dmfnOl4rT9ZfRI7mLTdk1wblIUnrIq35nqwEvC" crossorigin="anonymous"> <script src="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.js" integrity="sha384-X/XCfMm41VSsqRNQgDerQczD69XqmjOOOwYQvr/uuC+j4OPoNhVgjdGFwhvN02Ja" crossorigin="anonymous"></script> </head> <body> <span id="container"></span> <script> katex.render("c = \\pm\\sqrt{a^2 + b^2}", document.getElementById("container"), { displayMode: true }); </script> </body></html>Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Next to read:
GraphQLDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message