How to render formulas
@asbness
Published in
apache
· 1 year ago
This is a small example of an HTML page rendering Latex equations with Katex on browser side. <!DOCTYPE html> <html lang="en"> <head> <title>Equations</title> <link rel="stylesheet" href="./katex.css"> <script src="./katex.js"></script> <script defer src="./auto-render.js" onload="renderMathInElement(document.body);"></script> <style> /* optional - uncomment and customise next line to change maths font size .katex { font-size: 1em !important; } */ </style> </head> <body> Find $$\{ x, y, z \} \in \N$$ where: $$x^2 + y...