Open charlesstaats opened 4 months ago
The PreTeXt project already does something like this:
https://pretextbook.org/doc/guide/html/latex-asymptote-links.html
so that would be a good place to start. Here's an example of how it looks in practice:
Interesting! Having the ability to author documents in LaTeX certainly has additional value (in particular since arXiv is experimentally rendering papers as html via LaTeXML), but PreTeXt looks like it covers some important use cases, especially if you just want a document with embedded asy images and don't mind writing the document in XML directly.
The LaTeXML project attempts to convert LaTeX code to html documents. If this could be made to work with Asymptote, and in particular with WebGL output, it might offer a nice avenue for distributing 3d (and 2d svg) figures inside a larger document.