From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Latex strikethrough or cancel?
Date: Sat, 10 Oct 2015 20:49:12 -0400 [thread overview]
Message-ID: <87zizqi60n.fsf@pierrot.dokosmarshall.org> (raw)
In-Reply-To: CAFAhFSVMF0czzSKgEhT+rmuxvMhoy_1_0RNtP-RX18jkmChyPA@mail.gmail.com
Lawrence Bottorff <borgauf@gmail.com> writes:
> Actually I spoke too soon. Putting
>
> (setq org-html-mathjax-template (concat org-html-mathjax-template "
> <script type=\"text/x-mathjax-config\">
> MathJax.Hub.Register.StartupHook(\"TeX Jax Ready\",function () {
> MathJax.Hub.Insert(MathJax.InputJax.TeX.Definitions.macros,{
> cancel: [\"Extension\",\"cancel\"],
> bcancel: [\"Extension\",\"cancel\"],
> xcancel: [\"Extension\",\"cancel\"],
> cancelto: [\"Extension\",\"cancel\"]
> });
> });
> </script>
> "))
>
> in my init didn't fly when I rebooted, although it seemed to work
> before when I stuck it in my init and did eval-buffer.
> ...
> Would appreciate any advice on how to incorporate the \cancel code
> into org-html-mathjax-template.
>
The code assumes that org-html-mathjax-template has been initialized
already, so either
(require 'ox-html)
beforehand or use eval-after-load:
(eval-after-load "ox-html"
(setq org-html-mathjax-template ....))
--
Nick
prev parent reply other threads:[~2015-10-11 0:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-08 3:35 Latex strikethrough or cancel? Lawrence Bottorff
2015-10-08 7:06 ` Suvayu Ali
2015-10-08 7:31 ` Nick Dokos
2015-10-08 15:12 ` Nick Dokos
2015-10-08 16:30 ` Lawrence Bottorff
2015-10-08 7:49 ` Eric S Fraga
2015-10-08 14:29 ` Lawrence Bottorff
2015-10-08 17:35 ` Eric S Fraga
2015-10-10 15:28 ` Lawrence Bottorff
2015-10-11 0:49 ` Nick Dokos [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=87zizqi60n.fsf@pierrot.dokosmarshall.org \
--to=ndokos@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).