Installing and using ASCIIMATH

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Installing and using ASCIIMATH

sroth
Hi,

there are many Diskussions and posts about mathematical formulas used with asciidoctor-pdf, but not one complete discription of installing and using it or any other tool.

I read much, tested all i found but nothing really usable.
Please, anyone who is ready to discribe the way to use ist?

In AsciidocFX the formulas are shown, but asciidoctor-pdf does not render it.
It wold be very kind to get some help here.

Regards
Sven
Reply | Threaded
Open this post in threaded view
|

Re: Installing and using ASCIIMATH

Alexander Schwartz
I've never tries to add math to asciidoctor-pdf. But out of curiosity I've tried to add math to its JavaScript companion asciidoctor-pdf.js that is available as an experimental alpha release.

TL;DR: it works with a custom template, but as it is a experimental/alpha you might miss other Asciidoctor features that you might need for your document.

You can follow up on the discussion here: https://github.com/Mogztter/asciidoctor-pdf.js/issues/64

Alexander Schwartz (alexander.schwartz@gmx.net)
https://www.ahus1.de
Reply | Threaded
Open this post in threaded view
|

Re: Installing and using ASCIIMATH

mojavelinux
Administrator
In reply to this post by sroth
Sven,

The Asciidoctor PDF docs addresses this subject.


You'll need to use asciidoctor-mathematical. Keep in mind, though, that it's limited to latexmath. It does not include support for asciimath.

I'll be frank that asciidoctor-mathematical can be a challenge to install on some platforms, but once installed, it does the trick.

As Alex said, the emerging solution for PDF generation is asciidoctor-pdf.js.

Best,

-Dan

On Fri, Sep 27, 2019 at 3:23 AM sroth [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,

there are many Diskussions and posts about mathematical formulas used with asciidoctor-pdf, but not one complete discription of installing and using it or any other tool.

I read much, tested all i found but nothing really usable.
Please, anyone who is ready to discribe the way to use ist?

In AsciidocFX the formulas are shown, but asciidoctor-pdf does not render it.
It wold be very kind to get some help here.

Regards
Sven


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Installing-and-using-ASCIIMATH-tp7164.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Installing and using ASCIIMATH

sroth
Hi Mojavelinux,

sorry, but it doesn't work!
Installed MSYS2, then gem install asciidoctor-mathematical, doesn't Work, Installed  ridk install,
then agiain gem install asciidoctor-mathematical without error.

asciidoctor-pdf -r asciidoctor-mathematical -o formeltest.pdf formeltest.adoc
gives the error:
asciidoctor: FAILED: 'asciidoctor-mathematical' could not be loaded
  Use --trace for backtrace

Reply | Threaded
Open this post in threaded view
|

Re: Installing and using ASCIIMATH

sroth
And why is asciidocFX partial working?
Just when i only install AsciidocFX?
Reply | Threaded
Open this post in threaded view
|

Re: Installing and using ASCIIMATH

mojavelinux
Administrator
In reply to this post by sroth
Sven,

Your issue seems to be with asciidoctor-mathematical. If you add the --trace flag as suggested, you may discover the underlying reason. Likely there's a runtime error being reported when loading the asciidoctor-mathematical gem. (Either that, or it's just not finding it on the system, which would indicate a installation path problem).

AsciidocFX use its own stack and is likely setting up the conversion in a different way. So its an apples and oranges comparisons. There are many paths to go from AsciiDoc to the converted output.

Best,

-Dan



On Mon, Oct 7, 2019 at 4:37 AM sroth [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi Mojavelinux,

sorry, but it doesn't work!
Installed MSYS2, then gem install asciidoctor-mathematical, doesn't Work, Installed  ridk install,
then agiain gem install asciidoctor-mathematical without error.

asciidoctor-pdf -r asciidoctor-mathematical -o formeltest.pdf formeltest.adoc
gives the error:
asciidoctor: FAILED: 'asciidoctor-mathematical' could not be loaded
  Use --trace for backtrace




If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Installing-and-using-ASCIIMATH-tp7164p7180.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux