diff options
author | Zhao YunXiang <xiaohei.zyx@gmail.com> | 2019-11-21 05:43:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-21 05:43:35 +0300 |
commit | 6b974bad6768b8cc0d17f65859c4b8cb5c382bcd (patch) | |
tree | 45859bfa36e5ac1128611edc6e839a6b11d91b82 | |
parent | e9cfd5a166869db5fb37389dc994fa9fb609b860 (diff) | |
parent | d6798096d96be3c4b35ff423a95d56ff39f5d159 (diff) |
Merge pull request #25 from xiaoheiAh/add-mathjax-config
add mathjax congi & update README
-rw-r--r-- | README.md | 14 | ||||
-rw-r--r-- | layouts/partials/script.html | 8 |
2 files changed, 22 insertions, 0 deletions
@@ -16,6 +16,20 @@ The file structure of `repo` is roughly referred to [hexo-theme-pure](https://gi 2. [2019-11-19] Support MathJax([PR](https://github.com/xiaoheiAh/hugo-theme-pure/pull/20)) & Upgrade jQuery version([PR](https://github.com/xiaoheiAh/hugo-theme-pure/pull/19)). + e.g. + + ```latex + $$\begin{cases} + a_1x+b_1y+c_1z=d_1\\ + a_2x+b_2y+c_2z=d_2\\ + a_3x+b_3y+c_3z=d_3\\ + \end{cases} + $$ + ``` + + <img src="https://raw.githubusercontent.com/xiaoheiAh/imgs/master/20191121103534.png" alt="not-set-mmark" style="zoom:50%;" /> + <img src="https://raw.githubusercontent.com/xiaoheiAh/imgs/master/20191121104118.png" alt="set-mmark" style="zoom:50%;" /> + ## Screenshots ![](https://raw.githubusercontent.com/xiaoheiAh/hugo-theme-pure/master/images/grey.png) diff --git a/layouts/partials/script.html b/layouts/partials/script.html index 13ccb61..6d1b164 100644 --- a/layouts/partials/script.html +++ b/layouts/partials/script.html @@ -1,4 +1,12 @@ <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_SVG"></script> +<script type="text/x-mathjax-config"> + MathJax.Hub.Config({ + showMathMenu: false, //disables context menu + tex2jax: { + inlineMath: [ ['$','$'], ['\\(','\\)'] ] + } + }); +</script> <script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js"></script> <script> window.jQuery || document.write('<script src="js/jquery.min.js"><\/script>') |