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

Output mostly broken with asciidoctor-pdf, less broken with asciidoctor to HTML #41

Closed krjackson closed 5 years ago

krjackson commented 5 years ago

Rendering sample.adoc to PDF with asciidoctor-pdf does not convert most of the math at all, and the \sqrt symbol is broken. When rendering to HTML with asciidoctor, most of the math in the sample doc renders correctly, except the \sqrt, which is still an S with a line.

I'm running Ruby 2.5.1 via RVM on OpenSUSE Tumbleweed.

test.pdf Screenshot of HTML: html

ProgramFan commented 5 years ago

There might be something wrong. If you can find the formula images under images directory in the same directory as the HTML file, asciidoctor-mathematical shall work.

krjackson commented 5 years ago

Most of my problem was the fonts. As I usually also have a full TeX install, the fonts expected by the mathematical gem are already present. In this case they weren't. That doesn't address the issue with the equations in cells when using asciidoctor-pdf, though. As that's not an immediate issue for me, I'll close this issue.