[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.

Super useful for preparing course materials and presentations, thank you!

Out of curiosity, how does this differ from GitHub - korsbo/Latexify.jl: Convert julia objects to LaTeX equations, arrays or other environments. · GitHub by @korsbo ? It seems like it overlaps quite a bit?

It does overlap with Latexify.jl, and that is intentional.
Latexify.jl is a general Julia-to-LaTeX converter, while
LAlatex is a more opinionated display layer aimed at linear algebra,
symbolic expressions, and notebook/course material.

It adds things like L_show(…) / l_show(…),
structured helpers such as lc(…), set(…), cases(…), and aligned(…),
and tighter control over matrix styling, denominator factoring, separators,
and Symbolics/SymPy display behavior.

So I would describe the relationship as: Latexify.jl is the general conversion engine, while LAlatex is a higher-level presentation layer built on top of that ecosystem for linear algebra workflows.
It is also part of a broader tool suite with jupyter-tikz, matrixlayout and la_figures, which is mostly written in Python and geared toward notebook-
friendly mathematical rendering and visualization (See ea42gh · GitHub)