asciidoctorj icon indicating copy to clipboard operation
asciidoctorj copied to clipboard

problem parsing latex equation to pdf or epub files

Open silverlayer opened this issue 1 year ago • 3 comments

MY SETUP Windows 10 Java(TM) SE Runtime Environment (build 21.0.1+12-LTS-29) AsciidoctorJ 2.5.7 (Asciidoctor 2.0.18) Runtime Environment: jruby 9.3.8.0 (2.6.8)

MY test.adoc FILE

= My Equation
:stem: latexmath

[stem]
++++
\lim_{n \to \infty}\frac{n}{\sqrt[n]{n!}} = {\large e}
++++

TRIED COMMANDS asciidoctorj -b pdf test.adoc and asciidoctorj -b epub3 test.adoc

THE PROBLEM Running the above commands, the equation doesn't render properly into pdf or epub files. When I run for html5, it works well. The equation is properly rendered.

What is missing? Could someone help me? Please.

silverlayer avatar Feb 04 '24 01:02 silverlayer

I believe you need to use asciidoctor-mathematical.

slonopotamus avatar Feb 04 '24 13:02 slonopotamus

I believe you need to use asciidoctor-mathematical.

Yes, PDF rendering has different requirments. @klvnsa you can find more details in https://docs.asciidoctor.org/pdf-converter/latest/stem/. For questions, I'd suggest dropping them at http://chat.asciidoctor.org/, there's more ppl there and you can also find many common ones answered.

abelsromero avatar Feb 04 '24 14:02 abelsromero

thanks. I will use http://chat.asciidoctor.org/

silverlayer avatar Feb 05 '24 12:02 silverlayer