From a075f93c3ea41e2d7b0e64fa6a0214ed68d62a08 Mon Sep 17 00:00:00 2001 From: Daniel Weschke Date: Sun, 26 Mar 2023 20:57:54 +0200 Subject: [PATCH] mathjax v2 to v3 --- settings/org-settings.el | 142 ++++++++++++++++++--------------------- 1 file changed, 66 insertions(+), 76 deletions(-) diff --git a/settings/org-settings.el b/settings/org-settings.el index 7803d19c..3be2e057 100644 --- a/settings/org-settings.el +++ b/settings/org-settings.el @@ -1066,90 +1066,80 @@ Uses function `my-org-headline-string-element'" (setq org-html-doctype "html5") (setq org-html-html5-fancy t) (setq org-html-validation-link nil) ;; remove the "Validate" link at the bottom of the page - (setq org-html-mathjax-options - '((path "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML") - ;;(path "/js/MathJax-master/MathJax.js?config=TeX-AMS_HTML") - (scale "100") + (setq org-html-mathjax-options ;; variables used in `org-html-mathjax-template' + '((path "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js") + (scale "1.0") (align "center") (font "TeX") - (linebreaks "false") - (autonumber "AMS") + (overflow "overflow") + (tags "ams") (indent "0em") (multlinewidth "85%") (tagindent ".8em") (tagside "right"))) ;; #+HTML_MATHJAX: align: left indent: 5em tagside: left font: Neo-Euler ;; http://docs.mathjax.org/en/latest/input/tex/macros/ - (setq org-html-mathjax-template " -") + +") ) (use-package ox-latex