asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.86k stars 296 forks source link

Support for R code blocks rendering with knitr package of R #579

Open aksigkvgithub opened 1 year ago

aksigkvgithub commented 1 year ago

I am a regular R and Rmarkdown user. I was trying to write a book. During the process, I found great difficulty in composing the book. In the search to my solution I came ascross Asciidoc language, which perfectly suits the need for writing and composing a well typeset book. But, its renders fall short in some or the other ways. However, AsciidocFX is the best so far among the ones I compared, namely, among Eclipse plugin, IntelliJ Idea plugin, Ruby Asciidoctor, JRuby Asciidoctor. Among all these renderers, all of them fail to render the equations in pdf format, if I include the asciimath or latexmath blocks in the asciidoc book. Only AsciidocFX19 renders all the formats well, i.e., pdf, html, docbook, but it also does not render the epub format. However, using docbook, abd with the help of pandoc we can create docx or tex files too. Thats great.

So, in this post I request the devlopers to please correct the failure of epub format as indicated above.

Further, I wish a direct support of rendering R code blocks using knitr package of R can be included in AsciidocFX.

In fact, as a R user I have to render the asciidoc file twice, once by including a comment block containing R codes, as per suggestion of KBrowman with knitr, which is already implemented by knitr package of R, followed by redering the first time rendered file second time in AsciidocFX to get the final pdf. If these two steps can be merged into one step, it would be a great contribution to all Rmarkdown users who want to write good books using R code blocks within Asciidoc language.

One more suggestion, if the developers could include the dark mode theme as in sublime text, its look would be greatly enhanced.

Thank you all the developers and wish that my above mentioned wishes could be implemented in AsciidocFX tool