Rendering atmxg strings¶
The automath render svg command renders an atmxg expression as an SVG,
printed to standard output. The produced SVG is designed to be used inline
in an HTML document.
See the atmxg page for the expression syntax, and the CLI reference for the exhaustive option list.
String mode¶
Arguments are joined with a single space, so quoting is optional when the expression contains no shell-special characters:
Use --locale to override the locale (it affects number formatting):
File mode¶
When every argument is an existing file, automath switches to file mode and
renders each .atmxg file. The per-file locale is derived from a _<locale>
suffix in the filename (e.g. foo_fr3.atmxg → fr), falling back to
--locale.
A single file, with no other option, prints its SVG to stdout:
With two or more files, --output-dir/-o or --write/-w is required, and
each produced stem is printed to stdout: