[ANN] LAlatex.jl v1.0.0 — LaTeX rendering for linear algebra and symbolic math

LAlatex.jl is a Julia package for rendering linear algebra objects and symbolic expressions as clean LaTeX for notebooks, handouts, and docs.

GitHub: GitHub - ea42gh/LAlatex.jl: convert julia objects to latex representations, render in jupyter notebooks. Focus on Linear Algebra matrices, etc · GitHub

Main features:

  • L_show(...) returns a LaTeX string.
  • l_show(...) returns a LaTeXString for notebook display.
  • Structured helpers: set(...), lc(...), cases(...), and aligned(...).
  • 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.

2 Likes