aboutsummaryrefslogtreecommitdiff
path: root/publish.el
diff options
context:
space:
mode:
Diffstat (limited to 'publish.el')
-rw-r--r--publish.el18
1 files changed, 12 insertions, 6 deletions
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 "<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/"