Skip to content

Documentation

Temml for .NET converts TeX math to MathML in C#. It is an unofficial community port of Temml by Ron Kok. It ports upstream 0.14.0.

Terminal window
dotnet add package Temml
using Temml;
var mathml = TemmlRenderer.RenderToString(
@"x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}",
new TemmlOptions { DisplayMode = true }
);
Console.WriteLine(mathml);

That expression, as MathML in your browser:

x=−b±b2−4ac2a

MIT · Copyright 2020 Ron Kok · unofficial community port of Temml