Update from mathjax 2 to mathjax 3
This commit is contained in:
parent
0e79a53dd3
commit
00d5fa5690
@ -640,33 +640,32 @@ https://emacs.stackexchange.com/questions/30575/adding-latex-newpage-before-a-he
|
|||||||
**** MathJax
|
**** MathJax
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq org-html-mathjax-template
|
(setq org-html-mathjax-template
|
||||||
"<script type=\"text/x-mathjax-config\">
|
"<script>
|
||||||
MathJax.Hub.Config({
|
MathJax = {
|
||||||
displayAlign: \"%ALIGN\",
|
tex: { macros: {
|
||||||
displayIndent: \"%INDENT\",
|
bm: [\"\\\\boldsymbol{#1}\",1],
|
||||||
|
}
|
||||||
\"HTML-CSS\": { scale: %SCALE,
|
}
|
||||||
linebreaks: { automatic: \"%LINEBREAKS\" },
|
};
|
||||||
webFont: \"%FONT\"
|
</script>
|
||||||
},
|
<script type=\"text/javascript\"
|
||||||
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>
|
|
||||||
<script type=\"text/javascript\"
|
|
||||||
src=\"%PATH\"></script>")
|
src=\"%PATH\"></script>")
|
||||||
#+end_src
|
#+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
|
**** Export with css class instead of inline css
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq org-html-htmlize-output-type 'css)
|
(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)
|
:n "<C-S-return>" #'tdh/ctrl-shit-ret)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Library of Babel
|
** TODO [#A] Library of Babel
|
||||||
Add all named source blocks to =org-babel-library-of-babel=.
|
Add all named source blocks to =org-babel-library-of-babel=.
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+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
|
#+end_src
|
||||||
|
|
||||||
** Org-Babel Matlab
|
** Org-Babel Matlab
|
||||||
|
Loading…
Reference in New Issue
Block a user