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

Strange artifacts in pdf output #47

Open no-simpler opened 5 years ago

no-simpler commented 5 years ago

I’ve tried for the better portion of the last two days, but I still can’t get a math-heavy .adoc file to render correctly in pdf, using asciidoctor-pdf and asciidoctor-mathematical.

Below is the image of the best I could get it to look. To the left is HTML, to the right is PDF. HTML rendering is spot on. I’ve highlighted some of the worst artifacts in PDF.

As I slowly give up hope, I’m just asking: is this some sort of known issue, or am I just asking too much from this software?

screenshot

.adoc snippets for the highlighted areas, in order:

Or, taking into account that latexmath:[ q = \integer \left( \frac{x}{y} \right)]:
… rounding method applied to latexmath:[\frac{x}{y}​].
…
+
[latexmath]
++++
q = \left\lfloor \frac{x}{y} \right\rfloor
++++
+
…

Specs

All installed as per their respective instructions.

haxandmat commented 5 years ago

Perhaps this page will help you. https://github.com/asciidoctor/asciidoctor-mathematical/issues/42