Skip to main content

Module svg

Module svg 

Source
Expand description

SVG rendering processor.

Port of LaTeXML::Post::SVG (522 lines of Perl). Converts ltx:picture elements to SVG by traversing LaTeXML picture primitives (g, path, line, rect, circle, ellipse, polygon, bezier, arc, wedge, text, dots) and generating corresponding SVG elements.

The coordinate system is mirrored: LaTeXML uses a bottom-left origin with y increasing upward; SVG uses top-left with y increasing downward. The top-level picture gets transform="translate(0,h) scale(1,-1)".

Structsยง

SVG
SVG post-processor.