Not all browsers support MathML in a nice way. Another approach to embed mathematics in Html is to use the MathJax javascript library (http://www.mathjax.org/) that makes clever use of CSS for displaying Math. I've created a patch for including this functionality when exporting to html so the same code can be used for Html and latex backends.
> Not all browsers support MathML in a nice way. Another approach to embed
> mathematics in Html is to use the MathJax javascript library
> (http://www.mathjax.org/) that makes clever use of CSS for displaying Math.
> I've created a patch for including this functionality when exporting to html
> so the same code can be used for Html and latex backends.
> In order to obtain the MathJax version of the HTML run "asciidoc -a mathjax
> minimal.asciidoc" and you'll get the beautiful math in any modern browser.
> I'd like to have this functionality as default for the xhtml11 backend but I
> don't know how to do this without the -a option.
Make it unconditional?
If you don't want to make it unconditional, then set the mathjax
attribute in $HOME/.asciidoc/asciidoc.conf
Someone else did some work on Mathjax but never made an official
plugin as I remember, you could search the mailing list.
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/asciidoc/-/SV98ywSIZKMJ.
> To post to this group, send email to asciidoc@googlegroups.com.
> To unsubscribe from this group, send email to
> asciidoc+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/asciidoc?hl=en.
I have not had any time to do more with this. Also, I am not confident in my ability to create a plug-in for this capability. This is the main reason that I did not follow up in order to provide a plug-in. In my opinion the ability to use this MathJax option for rendering mathematics notation using LaTeX formulas would be useful and further extend the capabilities of Asciidoc. However, I lack the know-how and the time to acquire it to make this an easy to use option in the form of a plug-in, etc. in way that would allow Asciidoc users to use this feature easily. I hope that someone who has the time and interest in helping me with this will reply so that MathJax is an option available for Asciidoc users that does not require manually editing config files as I did in the documentation of the link above. By the way, my recollection is that I was able to get this to work as well with the slidy option.
On Wednesday, October 24, 2012 4:57:58 PM UTC-4, Toni Cebrián wrote:
> Hi,
> Not all browsers support MathML in a nice way. Another approach to > embed mathematics in Html is to use the MathJax javascript library (
> http://www.mathjax.org/) that makes clever use of CSS for displaying > Math. I've created a patch for including this functionality when exporting > to html so the same code can be used for Html and latex backends.
> In order to obtain the MathJax version of the HTML run "asciidoc -a > mathjax minimal.asciidoc" and you'll get the beautiful math in any modern > browser.
> I'd like to have this functionality as default for the xhtml11 backend but > I don't know how to do this without the -a option.