Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
So I've been writing notes and assignments for my math course in Asciidoc -- specifically, using Asciimath stem,
because that's a lot quicker to type than latex. I haven't been able to find a single toolchain that can turn my adoc file (with asciimath) into a pdf. asciidoc-mathematical doesn't seem to support it, I wasn't able to get mathoid working, Publican spat out the MathML and complained about it, I couldn't get fopub working, asciidoc-latex doesn't support asciimath, pandoc didn't render the math right... I ended up having to use wkhtmltopdf on my html file, which is pretty hacky. What's the adoc w/ asciimath ==> pdf toolchain now? Does it exist? |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
The path to converting AsciiMath in AsciiDoc is as follows: 1. Install the asciimath gem (gem install asciimath) 2. Convert the file to DocBook (asciidoctor document.adoc) 3. Convert the DocBook file to PDF using a DocBook toolchain - One option is fopub, but you could also use any other DocBook toolchain If you're using Apache FO, you do have to make sure it's configured to load JEuclid (jeuclid-fop), which is what provides the mathml rendering support. This appears as a jar on the classpath. This is all mentioned here: https://github.com/asciidoctor/asciidoctor-fopub#mathml-rendering-using-jeuclid Unfortunately, AsciiMath isn't all that widely supported, so we're at the mercy of a toolchain that understands how to process mathml. The asciimath gem gets you to mathml. You have to take it the rest of the way, though fopub does attempt to help pave that path. Cheers, -Dan On Wed, May 15, 2019 at 9:57 PM WritesMessily [via Asciidoctor :: Discussion] <[hidden email]> wrote: So I've been writing notes and assignments for my math course in Asciidoc -- specifically, using Asciimath stem, ... [show rest of quote] -- Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Does configuring Apache FO to load Jeuclid include anything else, except putting the jeuclid .jar files into fop's lib directory? Jeuclid's site states, that's all the 'installation' requires. Yet, the toolchain doesn't seem to work for me, see this thread. Thanks in advance! |
Free forum by Nabble | Edit this page |