asciidoctor / asciidoctor-mathematical

An extension for Asciidoctor that converts the content of STEM blocks and inline macros using Mathematical.
MIT License
49 stars 44 forks source link

Support for asciidoctor-latex #31

Closed tribut closed 7 years ago

tribut commented 7 years ago

Could this package be made to work with formulas generated with asciidoctor-latex? I was hoping that something like this would work:

asciidoctor -b html -r asciidoctor-mathematical -r asciidoctor-latex -a stem=latexmath file.adoc

But it only converts the stem expressions generated by stem[x^2], not those by asciidoctor-latex syntax ($x^2$). Would be great if interoperability could be achieved.

ProgramFan commented 7 years ago

asciidoctor-bibtex does provide public APIs for this task. One has to hack into asciidoctor-latex source to extract APIs to hook its formula handling. Any PR is welcoming. 😄