Skip to content

Creating .atmxs files

See the atmx page for details on .atmxs files.

Use automath render atmxs to write a document as a snapshot (.atmxs) file instead of as interactive HTML. (SOURCE is a script reference.) This is supported for both grid and slideshow documents:

automath render atmxs SOURCE > output.atmxs

For grid documents, add --rotate to include a random rotate offset in the file. When the file is later rendered with automath render html -w, two HTML files are produced (one per rotation variant):

automath render atmxs --rotate SOURCE > output.atmxs

Add --font-mode embedded|served|local to stamp the font-delivery mode into the snapshot (a top-level font_mode entry). A later automath render html on that file reuses the stamped mode unless its own --font-mode overrides it, so re-rendering reproduces the original choice without re-passing the option. Without --font-mode no entry is written and the fonts.mode config default (shipped as embedded) applies at render time:

automath render atmxs --font-mode local SOURCE > output.atmxs