Render math formulas in LaTeX/AsciiMath format in SillyTavern chats.
- Install the "LaTeX" extension from the "Download Extensions & Assets" menu in the Extensions panel.
- Use the
latexorasciimathcode block to render math formulas in LaTeX or AsciiMath format respectively.
In the assets folder you'll find a collection of regex scripts for alternative LaTeX syntax options. Import them with the Regex extension to use them in your chats.
- Double Dollar Signs
($$...$$) - Single Dollar Signs
($...$) - LaTeX Brackets
(\[...\]) - LaTeX Parentheses
(\(...\))
To use the legacy syntax with $$ (LaTeX) and $ (AsciiMath) delimiters in Markdown, import the following scripts with the Regex extension.
```latex
\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
``````asciimath
int_{-oo}^{oo} e^{-x^2} dx = sqrt{pi}
```$$\boxed{\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}}$$$\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}$\[ \int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi} \]\( \int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi} \)AGPL-3.0