s4

changeset 952:d5e87825195f

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 diff
     1.1 --- a/s4-funcs.sh	Sat Nov 06 11:23:09 2021 +0900
     1.2 +++ b/s4-funcs.sh	Mon Nov 08 18:15:52 2021 +0900
     1.3 @@ -78,7 +78,10 @@
     1.4  whatsnewdays=${WHATS_NEW_DAYS:-14}
     1.5  main_session=`date +%F-$$`
     1.6  session=$main_session
     1.7 -mathjax=${MATHJAX:-'<script>MathJax = {tex: {tags: "ams"}};</script>
     1.8 +mathjax=${MATHJAX:-'<script>MathJax = {
     1.9 +  tex: {tags: "ams",
    1.10 +        macros: {warn: ["\\fcolorbox{red}{white}{#1}", 1],
    1.11 +		 Warn: ["{\\Large \\warn{#1}}", 1]}}};</script>
    1.12  <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>'}
    1.13  
    1.14  tconfs=""