emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Lawrence Bottorff <borgauf@gmail.com>
To: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: Latex strikethrough or cancel?
Date: Sat, 10 Oct 2015 15:28:05 +0000	[thread overview]
Message-ID: <CAFAhFSVMF0czzSKgEhT+rmuxvMhoy_1_0RNtP-RX18jkmChyPA@mail.gmail.com> (raw)
In-Reply-To: <87egh5xnyy.fsf@ucl.ac.uk>

[-- Attachment #1: Type: text/plain, Size: 959 bytes --]

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. Going back to

#+begin_html
<script type="text/x-mathjax-config">
 MathJax.Hub.Config({
   TeX: {extensions: ["cancel.js"]},
   tex2jax: {
     inlineMath: [ ['$','$'], ['\\(','\\)'] ],
     processEscapes: true
   }
 });
</script>
#+end_html

Would appreciate any advice on how to incorporate the \cancel code
into org-html-mathjax-template.

[-- Attachment #2: Type: text/html, Size: 1862 bytes --]

  reply	other threads:[~2015-10-10 15:28 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 [this message]
2015-10-11  0:49         ` Nick Dokos

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=CAFAhFSVMF0czzSKgEhT+rmuxvMhoy_1_0RNtP-RX18jkmChyPA@mail.gmail.com \
    --to=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).