Skip to main content

Render LaTeX to SVG with matplotlib backend

programming
visualization
Published

April 4, 2023

We use matplotlib’s mathtext system and SVG backend to generate an SVG rendering of LaTeX code.

2024-05-13T09:44:49.847495 image/svg+xml Matplotlib v3.8.4, https://matplotlib.org/

We can insert the SVG image into HTML layouts, for example, into an HTML table.

2024-05-13T09:44:49.847495 image/svg+xml Matplotlib v3.8.4, https://matplotlib.org/ foo
bar baz