diff --git a/.gitignore b/.gitignore index 30560b6..78623cd 100644 --- a/.gitignore +++ b/.gitignore @@ -7,5 +7,4 @@ all_chars.txt woff2/ **/serve_* /lexers.out -fonts/*trial -**/*.log +fonts/*trial \ No newline at end of file diff --git a/acl.cool/math_wrapper.sh b/acl.cool/math_wrapper.sh deleted file mode 120000 index f40564e..0000000 --- a/acl.cool/math_wrapper.sh +++ /dev/null @@ -1 +0,0 @@ -../math_wrapper.sh \ No newline at end of file diff --git a/build.sh b/build.sh index 9a3d098..7499ae4 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,6 @@ #! /usr/bin/env nix-shell #! 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 python3 -m venv pgvv diff --git a/css/fonts.css b/css/fonts.css index 35a1487..aa31541 100644 --- a/css/fonts.css +++ b/css/fonts.css @@ -245,8 +245,8 @@ code, pre code { font-size: calc(0.84 * var(--base-font-size)); } -/* for STIX 2 */ math { + color: black; font-family: "Math"; font-size: calc(0.96 * var(--base-font-size)); } \ No newline at end of file diff --git a/css/looks.css b/css/looks.css index b59acd5..43dd9c5 100644 --- a/css/looks.css +++ b/css/looks.css @@ -189,7 +189,7 @@ math[display="block"] { position: relative; left: 0; right: auto; - text-align: center; + text-align: left; } footer { diff --git a/math_wrapper.sh b/math_wrapper.sh deleted file mode 100755 index b3b99c2..0000000 --- a/math_wrapper.sh +++ /dev/null @@ -1,11 +0,0 @@ -#! /usr/bin/env sh - -if [ $# -lt 1 ]; then - echo -n 'BLOCK MATH ERROR' -elif [[ "$1" == "display" ]]; then - echo -n '
' - latexmlmath --preload=amsmath.sty --preload=amssymb.sty - - echo -n '
' -else - latexmlmath --preload=amsmath.sty --preload=amssymb.sty - -fi \ No newline at end of file diff --git a/soupault.toml b/soupault.toml index 7d8e4e3..100a915 100644 --- a/soupault.toml +++ b/soupault.toml @@ -132,11 +132,11 @@ command = "./syntax_wrapper.sh ${ATTR_CLASS##*-}" [widgets.math-inline] widget = "preprocess_element" selector = "span.math.inline" -command = "./math_wrapper.sh inline" +command = "sed -E 's/^\\\\\\((.*)\\\\\\)$/\\1/' | katex --format mathml" action = "replace_element" [widgets.math-display] widget = "preprocess_element" selector = "span.math.display" -command = "./math_wrapper.sh display" +command = "sed -E 's/^\\\\\\[(.*)\\\\\\]$/\\1/' | katex -d --fleqn --format mathml | awk '{print \"\" $0 \"
\"}'" action = "replace_element" \ No newline at end of file diff --git a/ytheleus.org/math_wrapper.sh b/ytheleus.org/math_wrapper.sh deleted file mode 120000 index f40564e..0000000 --- a/ytheleus.org/math_wrapper.sh +++ /dev/null @@ -1 +0,0 @@ -../math_wrapper.sh \ No newline at end of file