diff options
author | panda-z <panda.hust@gmail.com> | 2018-04-15 23:43:31 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2018-04-15 23:43:31 +0800 |
commit | af22a4822ce64cc9eb10d05d5490de72ecc415d9 (patch) | |
tree | ac9a21c5b4dc3a58c5b4f1625dce69c203cf81b4 /layouts | |
parent | 5f8b79f942f94da8954d8c28c8704aa5af045a54 (diff) |
feat: add auto number for mathjax (#53)
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/scripts.html | 3 |
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' }; |