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

problem parsing latex equation to pdf or epub files #1259

Open
silverlayer opened this issue Feb 4, 2024 · 3 comments
Open

problem parsing latex equation to pdf or epub files #1259

silverlayer opened this issue Feb 4, 2024 · 3 comments
Labels

Comments

@silverlayer
Copy link

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
Copy link
Contributor

I believe you need to use asciidoctor-mathematical.

@abelsromero
Copy link
Member

abelsromero commented Feb 4, 2024

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.

@silverlayer
Copy link
Author

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

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

No branches or pull requests

3 participants