Wilang Documentation1.0.0+4

toTex#

Return the LaTeX source of an expression.

Available in: math cells, REPL.

Syntax#

toTex(expression [, evaluate])

Arguments and behavior#

Returns plain LaTeX text. The optional true argument evaluates the expression before converting it. The example returns scalar (string).

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
toTex(x^2+1)

Expected result: "{ x}^{2}+1".

All functions · Math guides