diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-12-01 21:41:48 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-12-01 21:41:48 -0800 |
commit | d9f0b816e2f118833c8ff3e8c8c3a7bf4d6952f8 (patch) | |
tree | 0cdc377b4d7703dd19845fcea911aa483e614f37 | |
parent | 1193c1a505aac616d41a7b1c61c0cde07d2560d2 (diff) | |
download | pandoc-d9f0b816e2f118833c8ff3e8c8c3a7bf4d6952f8.tar.gz |
reveal.js template: include tex2jax configuration.
This ensures that we don't use $..$ delimiters, which
gives bad results when $ is used as a currency sign.
This depends on the current dev version of reveal.js.
-rw-r--r-- | data/templates/default.revealjs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/data/templates/default.revealjs b/data/templates/default.revealjs index 78c3c6551..aed4b72c8 100644 --- a/data/templates/default.revealjs +++ b/data/templates/default.revealjs @@ -234,6 +234,18 @@ $if(mathjax)$ math: { mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js', config: 'TeX-AMS_HTML-full', + tex2jax: { + inlineMath: [['\\(','\\)']], + displayMath: [['\[','\]']], + balanceBraces: true, + processEscapes: false, + processRefs: true, + processEnvironments: true, + preview: 'TeX', + skipTags: ['script','noscript','style','textarea','pre','code'], + ignoreClass: 'tex2jax_ignore', + processClass: 'tex2jax_process' + }, }, $endif$ |