-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically include the katex style or document how to do it #4
Comments
OK, after 20 total minutes of manual grepping I found the docinfo mechanism: docinfo.html
and add to adoc document attributes:
as in:
|
@cirosantilli I had a look at this. If I modify your example above to set = bla
:stem: latexmath
:docinfo: shared
[latexmath]
++++
\sqrt{1+1} = 2
++++ The readme does indicate that AsciiMath is not supported only LaTeX style math. |
This is how it can be done automatically from the script: https://github.com/cirosantilli/cirosantilli.github.io/blob/28c4ae178359a0fc760fd8608499d321be705467/katex.rb#L88 |
This is how it can be done automatically from the script: https://github.com/cirosantilli/cirosantilli.github.io/blob/28c4ae178359a0fc760fd8608499d321be705467/katex.rb#L88
Hi there,
a.adoc
then:
with asciidoctor-katex (0.3.0) generates the katex markup, but the formula does not show correctly because the stylesheet was not added.
If I manually add:
to the HTML then it works, but it would be better if that was done automatically by the plugin.
Or at least document how to include it in the README of the project.
The text was updated successfully, but these errors were encountered: