Actually, before we go down that road, this may just be a simple matter of loading MathJax. I think the question to be asked is what format are you producing? If you are producing standalone HTML files that are generated by Asciidoctor, then you simply need to enable the stem attribute in your document.= Document TitleAuthor Name:stem:You can also enable the stem attribute in the Maven configuration, though I recommend having it in the document if the document contains stem (i.e., math) because it's semantic.The asciimath gem is for converting AsciiMath blocks to MathML for DocBook output. It should not be needed if you are creating HTML directly.Cheers,-Dan--On Sun, Oct 25, 2015 at 4:03 PM, abelsromero [via Asciidoctor :: Discussion] <[hidden email]> wrote:Welcome,
I see that asciimath (https://rubygems.org/gems/asciimath/) is written in ruby, so to use it from the maven plugin you need to add some extra code into the maven configuration.
It's the same for any extra Ruby extension you want to use*, it's not hard, just cumbersome.
You can take this example as template https://github.com/asciidoctor/asciidoctor-maven-examples/blob/master/asciidoctor-diagram-example/.
Once you have the name of the gem and the version you want to use (https://rubygems.org/gems/asciimath/), just add them as a ruby dependency:
· https://github.com/asciidoctor/asciidoctor-maven-examples/blob/master/asciidoctor-diagram-example/pom.xml#L33,L34
And then, tell asciidoctor that you want to load it changing the name here:
· https://github.com/asciidoctor/asciidoctor-maven-examples/blob/master/asciidoctor-diagram-example/pom.xml#L91
This should work, if it doesn't please, let us know.
* There are some extentions which are embedded with asciidoctorj adn don't require this configuration...but let's skip that for now to keep things simple ^^
PS: I guess latexmath is not asciidoctro right? I cannot find it.
If you reply to this email, your message will be added to the discussion below:http://discuss.asciidoctor.org/Maven-plugin-and-Math-tp3895p3896.htmlTo start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAMLDan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
| Free forum by Nabble | Edit this page |