[Debian] Generate TeX formulas as SVG or PNG images Wikipédia-like

Preparation We will use this file named texfile.tex as the .tex to convert: \documentclass[12pt]{article} \pagenumbering{gobble}% Remove page numbers (and reset to 1) \begin{document} My first \TeX~document. $s_n = (Ta)_n = \displaystyle\sum_{k=0}^\infty T_{nk} a_k$ \end{document} Result file Generating PNG images Packages you need: texlive (or any other TeX program, I guess) dvipng Step by step In …