How TikZJax works
masterTikZJax performs the entire compilation process within the browser using the following pipeline:
- WebAssembly Compilation: The Pascal source of
texis compiled to WebAssembly viaweb2js. - LaTeX Execution: A minimal LaTeX environment is initialized using
\documentclass[margin=0pt]{standalone},\def\pgfsysdriver{pgfsys-ximera.def}, and\usepackage{tikz}. - Core Dumping: The resulting core is dumped and compressed to allow for rapid reloading in the browser.
- SVG Conversion: An SVG driver for PGF is used in conjunction with
dvi2htmlto convert the DVI output into the final SVG element, which replaces the original<script type="text/tikz">tag.