latexify

latexify

takes a Julia object x and returns a $\LaTeX$ formatted string. This works for x of many types, including expressions, which returns $\LaTeX$ code for an equation.

julia> ex = :(x-y/z)
julia> latexify(ex)
"x - \\frac{y}{z}"

Among the supported types are:

It can also take arrays, which it recurses and latexifies the elements, returning an array of latex strings.