Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide example for math/formula usage #70

Open
thackel opened this issue May 22, 2018 · 1 comment
Open

Provide example for math/formula usage #70

thackel opened this issue May 22, 2018 · 1 comment

Comments

@thackel
Copy link

thackel commented May 22, 2018

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.

@abelsromero
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants