From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: Latex strikethrough or cancel? Date: Sat, 10 Oct 2015 15:28:05 +0000 Message-ID: References: <87r3l5kdfx.fsf@ucl.ac.uk> <87egh5xnyy.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c39b24197a150521c1be80 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zkw47-0007wF-3O for emacs-orgmode@gnu.org; Sat, 10 Oct 2015 11:28:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zkw46-0004Xh-8M for emacs-orgmode@gnu.org; Sat, 10 Oct 2015 11:28:07 -0400 Received: from mail-lb0-x229.google.com ([2a00:1450:4010:c04::229]:35446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zkw46-0004XS-1k for emacs-orgmode@gnu.org; Sat, 10 Oct 2015 11:28:06 -0400 Received: by lbwr8 with SMTP id r8so106842132lbw.2 for ; Sat, 10 Oct 2015 08:28:05 -0700 (PDT) In-Reply-To: <87egh5xnyy.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Mailinglist --001a11c39b24197a150521c1be80 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Actually I spoke too soon. Putting (setq org-html-mathjax-template (concat org-html-mathjax-template " ")) =E2=80=8B 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 #+end_html Would appreciate any advice on how to incorporate the \cancel code into org-html-mathjax-template. --001a11c39b24197a150521c1be80 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Actually I spoke too soon. Putting

(setq org-html-mathjax-template (concat org-html-mathjax-template "
<script type=3D\"text/x-mathjax-config\">
MathJax.Hub.Register.StartupHook(\"TeX Jax Ready\",function () = {
=C2=A0 MathJax.Hub.Insert(MathJax.InputJax.TeX.Definitions.macr= os,{
=C2=A0 =C2=A0 cancel: [\"Extension\",\"cancel= \"],
=C2=A0 =C2=A0 bcancel: [\"Extension\",\"= cancel\"],
=C2=A0 =C2=A0 xcancel: [\"Extension\",\= "cancel\"],
=C2=A0 =C2=A0 cancelto: [\"Extension\&= quot;,\"cancel\"]
=C2=A0 });
});
&l= t;/script>
"))
=E2=80=8B
in my init didn&#= 39;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=C2=A0

#+begin_html
<script type=3D"text/x-mathjax-confi= g">
= =C2=A0MathJax.Hub.Config({
=C2=A0 =C2=A0TeX: {extensions: ["cancel.js"]},
=C2=A0 =C2=A0tex2= jax: {
=C2=A0= =C2=A0 =C2=A0inlineMath: [ ['$','$'], ['\\(','= \\)'] ],
= =C2=A0 =C2=A0 =C2=A0processEscapes: true
=C2=A0 =C2=A0}
=C2=A0});
</script>
#+end_html

Would appreciate any advice on how to incorporate the= \cancel code into=C2=A0org-html-mathjax-template.
--001a11c39b24197a150521c1be80--