diff options
author | Yuchen Pei <me@ypei.me> | 2021-06-23 23:07:44 +1000 |
---|---|---|
committer | Yuchen Pei <me@ypei.me> | 2021-06-23 23:07:44 +1000 |
commit | 4f5ad1a70089365c5b6949d06386930433e09193 (patch) | |
tree | 0284b527b6de539ff70a7a3e6591568474d3e0dd /publish.el | |
parent | f1e60d7a09d1c2b77869435e99603f1c8b41fe71 (diff) |
Updated.
Diffstat (limited to 'publish.el')
-rw-r--r-- | publish.el | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -1,3 +1,5 @@ +(package-initialize) + (require 'ox-publish) (defvar this-date-format "%Y-%m-%d") @@ -79,9 +81,10 @@ PUB-DIR is when the output will be placed." (org-html-publish-to-html plist filename pub-dir))) (defun my-blog-local-mathjax () - '((path "/js/MathJax.js?config=TeX-AMS-MML_HTMLorMML") - (scale "100") (align "center") (indent "2em") (tagside "right") - (mathml nil))) +; '((path "/js/MathJax.js?config=TeX-AMS-MML_HTMLorMML") + '((path "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML") + (scale "100") (align "center") (indent "2em") (tagside "right") + (mathml nil))) (setq org-publish-project-alist '(("posts" @@ -101,7 +104,8 @@ PUB-DIR is when the output will be placed." :html-self-link-headlines t :author ("Yuchen Pei") :html-postamble me/html-postamble - :html-mathjax-options ((path "/js/MathJax.js?config=TeX-AMS-MML_HTMLorMML")) + :html-mathjax-options ((path "/js/mathjax/MathJax.js?config=TeX-AMS_CHTML")) + :html-mathjax-template "<script type=\"text/javascript\" src=\"%PATH\"></script>" ) ("microposts" :base-directory "microposts/" @@ -119,7 +123,8 @@ PUB-DIR is when the output will be placed." :html-preamble me/html-preamble :author ("Yuchen Pei") :html-postamble me/html-postamble - :html-mathjax-options ((path "/js/MathJax.js?config=TeX-AMS-MML_HTMLorMML")) + :html-mathjax-options ((path "/js/mathjax/MathJax.js?config=TeX-AMS_CHTML")) + :html-mathjax-template "<script type=\"text/javascript\" src=\"%PATH\"></script>" ) ("pages" :base-directory "pages/" @@ -133,7 +138,8 @@ PUB-DIR is when the output will be placed." :author ("Yuchen Pei") :html-postamble me/html-postamble :html-prefer-user-labels t - :html-mathjax-options ((path "/js/MathJax.js?config=TeX-AMS-MML_HTMLorMML")) + :html-mathjax-options ((path "/js/mathjax/MathJax.js?config=TeX-AMS_CHTML")) + :html-mathjax-template "<script type=\"text/javascript\" src=\"%PATH\"></script>" ) ("css" :base-directory "css/" |