emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Latex strikethrough or cancel?


From: Nick Dokos
Subject: Re: [O] Latex strikethrough or cancel?
Date: Sat, 10 Oct 2015 20:49:12 -0400
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Lawrence Bottorff <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]