From af22a4822ce64cc9eb10d05d5490de72ecc415d9 Mon Sep 17 00:00:00 2001 From: panda-z Date: Sun, 15 Apr 2018 23:43:31 +0800 Subject: feat: add auto number for mathjax (#53) --- layouts/partials/scripts.html | 3 +++ 1 file changed, 3 insertions(+) (limited to 'layouts/partials') 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' }; -- cgit v1.2.3