Compare commits

..

No commits in common. "4d5e1e8b1001b1413518a8723dda1c8a4d99afb1" and "38d8d44b00851fb5e838a5884aa08bf0341a8d9b" have entirely different histories.

8 changed files with 6 additions and 20 deletions

1
.gitignore vendored
View file

@ -8,4 +8,3 @@ woff2/
**/serve_* **/serve_*
/lexers.out /lexers.out
fonts/*trial fonts/*trial
**/*.log

View file

@ -1 +0,0 @@
../math_wrapper.sh

View file

@ -1,6 +1,6 @@
#! /usr/bin/env nix-shell #! /usr/bin/env nix-shell
#! nix-shell --pure -i bash #! nix-shell --pure -i bash
#! nix-shell --pure -p nodejs_24 bash harfbuzz soupault woff2 jotdown python3 recode perl538Packages.LaTeXML minify #! nix-shell --pure -p nodejs_24 bash harfbuzz soupault woff2 jotdown python3 recode nodePackages_latest.katex minify
if ! [[ -d pgvv/ ]]; then if ! [[ -d pgvv/ ]]; then
python3 -m venv pgvv python3 -m venv pgvv

View file

@ -245,8 +245,8 @@ code, pre code {
font-size: calc(0.84 * var(--base-font-size)); font-size: calc(0.84 * var(--base-font-size));
} }
/* for STIX 2 */
math { math {
color: black;
font-family: "Math"; font-family: "Math";
font-size: calc(0.96 * var(--base-font-size)); font-size: calc(0.96 * var(--base-font-size));
} }

View file

@ -189,7 +189,7 @@ math[display="block"] {
position: relative; position: relative;
left: 0; left: 0;
right: auto; right: auto;
text-align: center; text-align: left;
} }
footer { footer {

View file

@ -1,11 +0,0 @@
#! /usr/bin/env sh
if [ $# -lt 1 ]; then
echo -n '<strong>BLOCK MATH ERROR</strong>'
elif [[ "$1" == "display" ]]; then
echo -n '<p>'
latexmlmath --preload=amsmath.sty --preload=amssymb.sty -
echo -n '</p>'
else
latexmlmath --preload=amsmath.sty --preload=amssymb.sty -
fi

View file

@ -132,11 +132,11 @@ command = "./syntax_wrapper.sh ${ATTR_CLASS##*-}"
[widgets.math-inline] [widgets.math-inline]
widget = "preprocess_element" widget = "preprocess_element"
selector = "span.math.inline" selector = "span.math.inline"
command = "./math_wrapper.sh inline" command = "sed -E 's/^\\\\\\((.*)\\\\\\)$/\\1/' | katex --format mathml"
action = "replace_element" action = "replace_element"
[widgets.math-display] [widgets.math-display]
widget = "preprocess_element" widget = "preprocess_element"
selector = "span.math.display" selector = "span.math.display"
command = "./math_wrapper.sh display" command = "sed -E 's/^\\\\\\[(.*)\\\\\\]$/\\1/' | katex -d --fleqn --format mathml | awk '{print \"<p>\" $0 \"</p>\"}'"
action = "replace_element" action = "replace_element"

View file

@ -1 +0,0 @@
../math_wrapper.sh