asciidoctor / asciidoctorj

:coffee: Java bindings for Asciidoctor. Asciidoctor on the JVM!
http://asciidoctor.org
Apache License 2.0
617 stars 172 forks source link

problem parsing latex equation to pdf or epub files #1259

Open klvnsa opened 5 months ago

klvnsa commented 5 months ago

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.

slonopotamus commented 5 months ago

I believe you need to use asciidoctor-mathematical.

abelsromero commented 5 months ago

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.

klvnsa commented 5 months ago

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