Lawrence Bottorff <borg...@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


Reply via email to