We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3aa5eb commit fe34bd1Copy full SHA for fe34bd1
1 file changed
scripts/run-latex2html.sh
@@ -1,11 +1,11 @@
1
-#!/bin/sh
+#!/bin/bash
2
#
3
# @file run-latex2html.sh
4
5
# Usage:
6
# run-latex2html.sh main.tex
7
8
-set -eu
+set -euo pipefail
9
10
if [ $# -ne 1 ]; then
11
echo "Usage: $(basename "$0") main.tex" >&2
@@ -41,8 +41,10 @@ LATEX2HTML_INIT=$BINDIR/.latex2html-init
41
"$LATEX2HTML" -init_file "$LATEX2HTML_INIT" "$MAIN_PATH"
42
43
fix_html() {
44
- # HREF="main.html#SECTION..." -> HREF="#SECTION..."
45
- sed "s/$2.html#/#/g" "$1" >"$1.tmp"
+ # (1) HREF="main.html#SECTION..." -> HREF="#SECTION..."
+ # (2) workaround for latex2html < v2025
46
+ # See: https://github.com/latex2html/latex2html/commit/b77ee98
47
+ sed "s/$2.html#/#/g" "$1" | sed 's/&̈#305;/\ï/g' >"$1.tmp"
48
mv "$1.tmp" "$1"
49
}
50
0 commit comments