asciidoctor-browser-extension
asciidoctor-browser-extension copied to clipboard
Add asciidoctor-latex functionality
It would be great to add the html backend features of asciidoctor-latex
to asciidoctor-chrome-extension. The repo is at https://github.com/asciidoctor/asciidoctor-latex.
For a description of what asciidoctor-latex
, does, see http://www.noteshare.io/section/asciidoctor-latex-manual-intro
For an exemplar of the extension's use, see https://vschool.s3.amazonaws.com/manuscripts/337.html
Would be glad to discuss this.
It's a good idea but I think the first step is to cross-compile asciidoctor-latex to Javascript using Opal to create asciidoctor-latex.js ! (similar to what has be done with Asciidoctor.js)
Once this is done we can find a way to integrate it.
Great! I have never used Opal, but will try to learn how and cross-compile. Could you point to where I might learn to do this?
Thanks so much!
Sent from my iPhone
On Feb 23, 2015, at 12:20 PM, Guillaume Grossetie [email protected] wrote:
It's a good idea but I think the first step is to cross-compile asciidoctor-latex to Javascript using Opal to create asciidoctor-latex.js ! (similar to what has be done with Asciidoctor.js)
Once this is done we can find a way to integrate it.
— Reply to this email directly or view it on GitHub.
Oops! Your link has all the necessary info. I'll work on it.
Jim
Sent from my iPhone
On Feb 23, 2015, at 12:20 PM, Guillaume Grossetie [email protected] wrote:
It's a good idea but I think the first step is to cross-compile asciidoctor-latex to Javascript using Opal to create asciidoctor-latex.js ! (similar to what has be done with Asciidoctor.js)
Once this is done we can find a way to integrate it.
— Reply to this email directly or view it on GitHub.
I am new to asciidoc and wanted to include a latex equation. The related issue: https://github.com/asciidoctor/asciidoctor-browser-extension/issues/51 pointed me to a solution. The following syntax worked for me to display some equations in myFile.ad with Firefox or Chrome. The "trick" was to add ":stem: latexmath" at the beginning.
:stem: latexmath
== Test of more complicated mathematics
The fundamental theorem of calculus statest that
[latexmath]
++++
\frac{d}{dx}\int_a^x f(t) dt = f(x)
++++
An inline equation latexmath:[C = \alpha + \beta Y^{\gamma} + \epsilon]
using the ’latexmath’ inline macro.