Mercurial > hgrepos > hgweb.cgi > s4
changeset 952:d5e87825195f draft
Supply some useful macros for MathJax.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Mon, 08 Nov 2021 18:15:52 +0900 |
parents | 41032d34324d |
children | 93c38e425c85 |
files | s4-funcs.sh |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/s4-funcs.sh Sat Nov 06 11:23:09 2021 +0900 +++ b/s4-funcs.sh Mon Nov 08 18:15:52 2021 +0900 @@ -78,7 +78,10 @@ whatsnewdays=${WHATS_NEW_DAYS:-14} main_session=`date +%F-$$` session=$main_session -mathjax=${MATHJAX:-'<script>MathJax = {tex: {tags: "ams"}};</script> +mathjax=${MATHJAX:-'<script>MathJax = { + tex: {tags: "ams", + macros: {warn: ["\\fcolorbox{red}{white}{#1}", 1], + Warn: ["{\\Large \\warn{#1}}", 1]}}};</script> <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script><script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>'} tconfs=""