aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorpanda-z <panda.hust@gmail.com>2018-04-15 23:43:31 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-04-15 23:43:31 +0800
commitaf22a4822ce64cc9eb10d05d5490de72ecc415d9 (patch)
treeac9a21c5b4dc3a58c5b4f1625dce69c203cf81b4 /layouts/partials
parent5f8b79f942f94da8954d8c28c8704aa5af045a54 (diff)
feat: add auto number for mathjax (#53)
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/scripts.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index abd76f6..b087982 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -46,6 +46,9 @@
{{ if or .Params.mathjaxEnableSingleDollar (and .Site.Params.mathjaxEnableSingleDollar (ne .Params.mathjaxEnableSingleDollar false)) -}}
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]},
{{ end -}}
+ {{ if or .Params.mathjaxEnableAutoNumber (and .Site.Params.mathjaxEnableAutoNumber (ne .Params.mathjaxEnableAutoNumber false)) -}}
+ TeX: {equationNumbers: {autoNumber: "AMS"}},
+ {{ end -}}
showProcessingMessages: false,
messageStyle: 'none'
};