From: Rasmus <rasmus@gmx.us>
To: borgauf@gmail.com
Cc: emacs-orgmode@gnu.org
Subject: Re: MathJax beyond org-html-mathjax-options?
Date: Fri, 03 Nov 2017 18:40:05 +0100 [thread overview]
Message-ID: <87o9ojuuq2.fsf@gmx.us> (raw)
In-Reply-To: <CAFAhFSXp2Fx3H9U9a5NKejgBGRSmYgv0vPXChxkuAkpBK+TWPA@mail.gmail.com> (Lawrence Bottorff's message of "Fri, 3 Nov 2017 13:29:53 -0400")
Lawrence Bottorff <borgauf@gmail.com> writes:
> Bottom line: we can't expand org-html-mathjax-options to add in MathJax's
> cancel.js, etc.
I did not say that. With the current version, you could do it yourself by
adding (extensions "ext1.js, ..., extn.js") to org-html-mathjax-options
and changing org-html-mathjax-template to load the extensions at the right
place. Once extensions is added to org-html-mathjax-options you should
also be able to set it in files via the #+html_mathjax keyword, but you
might have to be careful how you write it (I’m not sure space would go).
I hope this is clear enough.
> Yes, your first "quick-and-dirty" worked just fine.
> Q: How did you know how to format #+html: \(\require{cancel}\) ?
it’s in the mathjax manual,
http://docs.mathjax.org/en/latest/tex.html?highlight=cancel#tex-and-latex-extensions
> Also, how does the org world know that we're talking about loading
>MathJax's cancel.js?
It doesn’t really. But content after "#+html:" is only added to html
output. From there mathjax takes over.
> As you all know I'm not a "developer-class" poster here, so my questions
> often look dull-witted.
This is a community for all Org users. There’s mostly no numb questions.
This one certainly wasn’t. I’d no knowledge about mathjax extensions
before reading your mail.
> Will try the patch once I learn a bit more diff in Emacs lore. . . .
Thanks.
Rasmus
--
And when I’m finished thinking, I have to die a lot
prev parent reply other threads:[~2017-11-03 17:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-01 1:30 MathJax beyond org-html-mathjax-options? Lawrence Bottorff
2017-11-02 13:12 ` Rasmus
2017-11-03 17:29 ` Lawrence Bottorff
2017-11-03 17:40 ` Rasmus [this message]
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=87o9ojuuq2.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=borgauf@gmail.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).