LAlatex.jl is a Julia package for rendering linear algebra objects and symbolic expressions as clean LaTeX for notebooks, handouts, and docs.
Main features:
L_show(...)returns a LaTeX string.l_show(...)returns aLaTeXStringfor notebook display.- Structured helpers:
set(...),lc(...),cases(...), andaligned(...). - Support for vectors, matrices, tuples, and
BlockArrays. - Symbolic support with both Symbolics and SymPy backends.
Example:
using LAlatex
using LaTeXStrings
A = [1 2; 3 4]
l_show("A = ", A)
l_show("S = ", set(1, 2, 3; separator=L", "))
l_show("f(x) = ", cases(
x^2 => L"x \\ge 0",
(-x, L"x < 0"),
))
l_show(aligned(
L"Ax" => L"b",
(L"x", L"\\in", L"\\mathcal{N}(A)"),
))
# For linear combinations:
s = [2, -1]
X = [1 0; 0 1]
l_show(lc(s, X))
This is the v1.0.0 release. Feedback is welcome, especially from people using Julia for teaching, notes, and linear algebra notebooks.