commit 10374ec973542b251b9938b228ae601ce7698b0c
parent 045cf06246a0ad51c45b94334578fc500c00ad5f
Author: Wolfgang Corcoran-Mathe <wcm@sigwinch.xyz>
Date: Sun, 3 Mar 2024 18:57:08 -0500
build: Add option to disable special math rendering.
Diffstat:
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/doc/r7rs-small/build.sh b/doc/r7rs-small/build.sh
@@ -32,7 +32,8 @@ Options:
-s Split output files.
-m METHOD Use METHOD for HTML math output (default: mathjax)
METHODs include 'mathjax', 't4h', and 'l2h'. See
- the texinfo manual for more information.
+ the texinfo manual for more information. Pass 'none'
+ to disable special rendering.
-h Show this text.
TARGETs are 'info', 'html', and 'pdf'. The default is 'html'.
@@ -64,7 +65,15 @@ do
done
# Append HTML_MATH setting.
-set_var="--set-customization-variable HTML_MATH=${html_math}"
+case "$html_math" in
+none)
+ set_var="--set-customization-variable HTML_MATH=undef"
+ ;;
+*)
+ set_var="--set-customization-variable HTML_MATH=${html_math}"
+ ;;
+esac
+
makeinfo_flags="$makeinfo_flags $set_var"
if test "$split" != "yes"