RPIC

texlabels

rpic extension. With texlabels = 1, any label string fully delimited as $…$ is typeset as inline TeX math — natively, by a pure-Rust engine (RaTeX, a KaTeX port). No LaTeX installation, no JavaScript, no fonts to install.

.PS
texlabels = 1; margin = 0.1
arrow "$u$" above
S: circle rad 10/72.27
line right 0.35
G: box "$G(s)$" wid 1 ht 0.55
arrow "$y$" above
line -> down G.ht from last arrow then left last arrow.c.x - S.x then to S.s
"$-\;$" below rjust
.PE

Coverage is KaTeX-grade — fractions, radicals, operators with limits, Greek, \mathbb, matrices:

.PS
texlabels = 1
box "$-\frac{T}{2}$" fit
move right 0.25
box "$\sqrt{2}\,V\sin(\omega t)$" fit
move right 0.25
box "$\displaystyle\sum_{n=1}^{\infty}\frac{1}{n^2}=\frac{\pi^2}{6}$" fit
.PE

Rules

The dpic ecosystem typesets labels through LaTeX in its TeX backends; texlabels brings that quality to rpic’s native SVG/PNG/PDF. Design and the full candidate study: docs/tex-labels.md.