It'd be great if external figures written in TeX could also use the math macros defined in the XML file