PASTE LLM OUTPUT ON THE LEFT
OR CLICK "LOAD IS800 DOC" TO TEST
Many LLM outputs (and pasted documents) contain LaTeX math without $...$ delimiters. The preprocessor detects these patterns and wraps them automatically before KaTeX renders.
| Pattern | Example (raw) | Becomes |
|---|---|---|
| Greek letters | \gamma_f, \epsilon, \mu | $\gamma_f$ |
| Fractions | \frac{a}{b} | $\frac{a}{b}$ |
| Subscript/superscript | T_{dg}, f_y, 10^5 | $T_{dg}$ |
| Math operators | \sqrt{x}, \approx, \geq | $\sqrt{x}$ |
| Display equations | T_{dg} = \frac{...}{...} | $$T_{dg} = ...$$ |
| Units in text | 7850 kg/m^3 | $7850\text{ kg/m}^3$ |
Wrap with $...$: $E = mc^2$
Wrap with $$...$$ on its own line.
$\ce{H2SO4 -> 2H+ + SO4^{2-}}$$\ce{Fe + O2 -> Fe2O3}$\alpha \beta \gamma \delta \sigma \omega \epsilon \mu\frac{a}{b} \sqrt{x} \sum_{i}^{n} \int_0^\infty \approx \leq \geq \implies\hbar \nabla \partial \vec{F} \hat{x} \langle \rangle