From 4f5ad1a70089365c5b6949d06386930433e09193 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Wed, 23 Jun 2021 23:07:44 +1000 Subject: Updated. --- publish.el | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'publish.el') diff --git a/publish.el b/publish.el index b1f6659..f4f2052 100644 --- a/publish.el +++ b/publish.el @@ -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 "" ) ("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 "" ) ("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 "" ) ("css" :base-directory "css/" -- cgit v1.2.3