asciidoctor-maven-examples
asciidoctor-maven-examples copied to clipboard
Provide example for math/formula usage
It should be possible to use the math extensions.
In HTML and PDF formulas don't get rendered and the plugin just shows a warning:
asciidoctor: WARNING: conversion missing in backend pdf for stem
There need to be a similar example as it does exist for the asciidocj-diagram extension.
Putting :stem: into the document header or <stem/> into the <attribute>-section of the plugin configuration does not help.
A non working sample could be provided.
Short answer is PDF is not supported out of the box.
HTML worked fine for me. I could not reproduce the issue and stem integration. These lines worked fine in the current diagram example without any change.
stem:[sqrt(4) = 2]
Water (stem:[H_2O]) is a critical component.
But PDF is another thing, checking this https://asciidoctor.org/docs/user-manual/#stem-docbook I am pretty sure stem is not supported with asciidoctor-pdf. Instead, to get it working I had to go trough the dockbook pipeline with integrate asciimath, and then use asciidoctor-fopub from the shell.
This whole process could be automated using several maven plugins to download and run fopub.
On one hand I am reluctant to add such a complex example...on the other I can't resist the challenge 😆 . wdyt?