AngouriMath
Latexise
Method with 2 overloads
Latexise
Summary
Returns the expression in LaTeX
Example
Entity expr = "a / b + sqrt(c)"; Console.WriteLine(expr.Latexise());
Output:
\frac{a}{b}+\sqrt{c}
Example
using System; using AngouriMath; using static AngouriMath.MathS; Entity expr = "sqrt(a) + integral(sin(x), x)"; Console.WriteLine(expr); Console.WriteLine(expr.Latexise()); Entity expr2 = "a / b ^ limit(sin(x) - cosh(y), x, +oo)"; Console.WriteLine(expr2); Console.WriteLine(expr2.Latexise());
Prints
sqrt(a) + integral(sin(x), x) \sqrt{a}+\int \left[\sin\left(x\right)\right] dx a / b ^ limit(sin(x) - (e ^ y + e ^ (-y)) / 2, x, +oo) \frac{a}{{b}^{\lim_{x\to \infty } \left[\sin\left(x\right)-\frac{{e}^{y}+{e}^{-y}}{2}\right]}}
Latexise(System.Boolean)
Summary
Returns the expression in LaTeX (for example, a / b -> \frac{a}{b})Parameter "parenthesesRequired"
Whether to wrap it with parentheses
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1534 pages online