Update from mathjax 2 to mathjax 3

This commit is contained in:
Thomas Dehaeze 2020-01-29 15:28:53 +01:00
parent 0e79a53dd3
commit 00d5fa5690

View File

@ -640,33 +640,32 @@ https://emacs.stackexchange.com/questions/30575/adding-latex-newpage-before-a-he
**** MathJax
#+begin_src emacs-lisp
(setq org-html-mathjax-template
"<script type=\"text/x-mathjax-config\">
MathJax.Hub.Config({
displayAlign: \"%ALIGN\",
displayIndent: \"%INDENT\",
\"HTML-CSS\": { scale: %SCALE,
linebreaks: { automatic: \"%LINEBREAKS\" },
webFont: \"%FONT\"
},
SVG: {scale: %SCALE,
linebreaks: { automatic: \"%LINEBREAKS\" },
font: \"%FONT\"},
NativeMML: {scale: %SCALE},
TeX: { equationNumbers: {autoNumber: \"%AUTONUMBER\"},
MultLineWidth: \"%MULTLINEWIDTH\",
TagSide: \"%TAGSIDE\",
TagIndent: \"%TAGINDENT\",
Macros: {
bm: [\"{\\\\boldsymbol #1}\",1],
"<script>
MathJax = {
tex: { macros: {
bm: [\"\\\\boldsymbol{#1}\",1],
}
}
});
};
</script>
<script type=\"text/javascript\"
src=\"%PATH\"></script>")
#+end_src
#+begin_src emacs-lisp
(setq org-html-mathjax-options
'((path "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js")
(scale "100")
(align "center")
(font "TeX")
(linebreaks "false")
(autonumber "AMS")
(indent "0em")
(multlinewidth "85%")
(tagindent ".8em")
(tagside "right")))
#+end_src
**** Export with css class instead of inline css
#+begin_src emacs-lisp
(setq org-html-htmlize-output-type 'css)
@ -1423,13 +1422,11 @@ https://emacs.stackexchange.com/questions/22430/rebind-org-babel-execute-src-blo
:n "<C-S-return>" #'tdh/ctrl-shit-ret)
#+end_src
** Library of Babel
** TODO [#A] Library of Babel
Add all named source blocks to =org-babel-library-of-babel=.
#+begin_src emacs-lisp
(after! org-babel
(org-babel-lob-ingest "~/Cloud/thesis/org-mode/org-babel-tutorial/org-babel-library.org")
)
; (org-babel-lob-ingest "~/Cloud/thesis/org-mode/org-babel-tutorial/org-babel-library.org")
#+end_src
** Org-Babel Matlab