From: "Rudolf Adamkovič" <salutis@me.com>
To: emacs-orgmode@gnu.org
Subject: Re: MathJax extension does not work
Date: Sun, 10 Oct 2021 21:39:19 +0200 [thread overview]
Message-ID: <m24k9obrfc.fsf@me.com> (raw)
In-Reply-To: <m2pmscrd5x.fsf@gmail.com>
Daniel Fleischer <danflscr@gmail.com> writes:
> […] the mathtools.js library was introduced in mathjax 3.2 but org provided version 2.7 […]
> You can just change the "path" in 'org-html-mathjax-options'.
I see. I tried the following and it worked:
(with-eval-after-load 'ox-html
(add-to-list 'org-html-mathjax-options
'(path "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js")))
> Secondly, mathtools is not autoloaded so you need to call it; for
> example you can put it in org using "export" block.
>
> #+begin_src HTML
The "export" blocks did not work for me, but the following did:
(setq-default org-html-head "
<script>
window.MathJax = {
loader: {load: ['[tex]/mathtools']},
tex: {packages: {'[+]': ['mathtools']}}
};
</script>")
> After that it worked.
> Not sure why the "#+HTML_MATHJAX: mathtools.js" doesn't do anything.
All the above makes using MathJax extensions impractical. I would have to include HTML hacks in my Org documents or tie the documents to my Emacs configuration, if I understand everything. Neither sounds right, and thus I will avoid using "modern" MathJax until Org switches to it and HTML_MATHJAX actually works.
P.S. I wonder why Org uses MathJax 2.x when other popular tools, such as Pandoc, use the latest one.
Thank you for your help!
Rudy
--
"'Contrariwise,' continued Tweedledee, 'if it was so, it might be; and if it were so, it would be; but as it isn't, it ain't. That's logic.'" -- Lewis Carroll, Through the Looking Glass
Rudolf Adamkovič <salutis@me.com>
Studenohorská 25
84103 Bratislava
Slovakia
[he/him]
next prev parent reply other threads:[~2021-10-10 19:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-10 9:14 MathJax extension does not work Rudolf Adamkovič
2021-10-10 17:40 ` Daniel Fleischer
2021-10-10 18:11 ` Daniel Fleischer
2021-10-10 19:39 ` Rudolf Adamkovič [this message]
2023-03-28 4:34 ` chris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m24k9obrfc.fsf@me.com \
--to=salutis@me.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).