latex#
Render a LaTeX string as mathematics.
Available in: math cells, REPL.
Syntax#
latex(source [, config])
Arguments and behavior#
Pass a quoted LaTeX string. Write two backslashes for each LaTeX command in a math-cell or REPL string, and four for a LaTeX matrix row separator. Escaped quotes retain normal string semantics. Markdown formulas use single backslashes instead. Legacy single-backslash commands in math cells remain accepted. Use tex for formulas authored as math expressions.
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
latex("x^2 + 1")Interactive examples could not load. You can still copy the expressions.
Expected result: x^2 + 1.