I'm using MkDocs 1.2.2 with MathJax 3.2 via Arithmatex from the pymdown-extensions. I'm trying to get Arithmatex to recognize math inside \\[
and \\]
(instead of the default \[
… \]
) as display math. Starting with a basic config,
markdown_extensions:
- footnotes
- pymdownx.arithmatex
- pymdownx.highlight
- pymdownx.superfences
extra_javascript:
- javascripts/mathjax-config.js
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg-full.js
where mathjax-config.js
contains exactly the code under the tab "Default – MathJax 3" in the section on Loading MathJax, writing the following in a Markdown input file,
\\[
\Sigma_n
\\]
produces
Changing the MkDocs config file to add tex_block_wrap
like this,
markdown_extensions:
- footnotes
- pymdownx.arithmatex:
tex_block_wrap: ['\\\\[', '\\\\]']
- pymdownx.highlight
- pymdownx.superfences
does not change the output. I've tried variations on the number of \
characters to no effect. I've tried similar configuration changes on the MathJax side by adding the following to my mathjax-config.js
file:
window.MathJax = {
tex: {
displayMath: [ ["\\\\[", "\\\\]"] ],
},
....
and variations on the number of \
characters there too, but without success.
How can I get Arithmatex+MathJax in MkDocs to allow the use of \\[
and \\]
as display math delimeters?