PDF generates text ok but doesn't process the LaTex stem.
When I generate a PDF from the Asciidoc windows, the LaTeX stem is not interpreted and appear as its source.
In the generated PDF, I see that:
stem:[\sum_{k=2}^{n} \frac{n!}{2(n-k)!}]
I would like to see this:
:doctype: book
:toc: macro
:toc-title: Contents
:icons: font
:stem: latexmath
:source-highlighter: pygments
:pygments-style: manni
:pygments-linenums-mode: inline
:author_name: myname
:author_email: myemail
:relfileprefix: ./
ifdef::env-github,env-browser[:outfilesuffix: .adoc]
......
......given by this formula: stem:[\sum_{k=2}^{n} \frac{n!}{2(n-k)!}],
...... etc..
......
sciiDoc Plugin Version: Asciidoc 0.31.15

IDE Name and Version: GoLand 2020.2.2 Build #GO-202.6948.9
The PDF generation requires the use of an extension to process STEM blocks. asciidoctor-mathematical is one such extension.
I haven't been using mathematical formulas in PDFs yet. But if someone describes what extension to use on the command line (JRuby preferred), I'll be happy to give it a try and pre-bundle it with the plugin.
I think it's going to be pretty tricky to get asciidoctor-mathematical to work with JRuby since it uses native bindings. I could be wrong, though.
Dear ahus1 and mojavelinux,
You are right that aciidoctor-mathemaitical is necessary for pdf generation in PDF. However, it seems impossible to install this gem, First, the gem mathematical in not being installed on Ruby because its dependencies are not available to common users like me. Second, since gem asciidoctor-mathematical depends on the gem mathematical, which is also not installable similarly we would never see the dawn in theis matter, especially those who use mathematics, statistics and R a lot.
Asciidoctor does not even provide a block for R code blocks, just like R-mardown and Quarto do. I have to first run through, // R codes // as suggested by Knitr with asciidoc - Karl Broman and then use knit() function of R-package and then only can we render .adoc file.
So, I request and suggest the following:
- please keep mathemtics user too in mind during development. I myself like asciidoctor very much as it the the most beautiful markup language with clarity as compared to all markups, but it is the most neglected so far too.
-
please consider using latex backend heavily for pdf creation, just like pandoc people and R-mardowna and Qurato do, which have so far has been most popular and sucessfull workflow for creating pdf document so far. But that is not good for scientifica, especially, mathematical and statistical users. Your HTML and docbook are worndorfull.
-
the project asciidoctor-web-pdf is really fantastic, as it can generate pdf with mathematical equations sucessfully, but it also can not provide equation numbers and its cross-referencing, which latex backend workflow, suggested above, does easily by defualt. So this project may also be enhanced for mathematical users for creation of articles and books and can also be integrated with asciidoc plugin of Intellij Idea, which also fails in redering mathematical equations in pdf.
-
asciidoctor-mathematical may be made as an application instead of a gem, depending on so many unavailable tool chains of gems, just like R-markdown people did by launching Quarto as an application, not depending on anything, because that includes all necessary dependencies inside it.
Thanks for considering in advance.
Dr. A.K. Singh Professor and Head (Department of Statistics and mathematics) Indira Gandhi Agricultural University, Raipur, Chhattisgarh, India [email protected]
@aksigkvgithub - Open Source project like these are about making contributions and discussing possible solutions. Requests don't help here. A valuable contribution could be to show how a command line version of JRuby uses asciidoctor-mathematical.
Until that has been shown to work, I suggest users edit the content with IntelliJ, and build their preferred output with a command line helper and build helper of their choice.
Users who are keen on mathematical typesetting should consider using Latex directly.