Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5d59d3d

Browse files
committed
Added --l2h-config option to add additional initialization files for
latex2html. Can be useful in setting up things like the upward external link for the top of the documents.
1 parent ec9fbe9 commit 5d59d3d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Doc/tools/mkhowto.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ DEFAULT_FORMAT=PDF
2020
USE_DEFAULT_FORMAT=true
2121
DISCARD_TEMPS=true
2222

23+
CONFIG_FILES=''
2324
ICONSERVER=''
2425

2526
TEMPBASE=mkhowto-$LOGNAME-$$
@@ -248,6 +249,10 @@ while [ "$1" ] ; do
248249
TEXINPUTS=$TOPDIR/paper-a4:$TEXINPUTS
249250
shift 1
250251
;;
252+
--l2h-config|--l2h-confi|--l2h-conf|--l2h-con|--l2h-co|--l2h-c|--l2h-|--l2h|--l2)
253+
CONFIG_FILES="$CONFIG_FILES $2"
254+
shift 2
255+
;;
251256
--letter|--lette|--lett|--let|--le)
252257
shift 1
253258
;;
@@ -321,6 +326,15 @@ fi
321326

322327
echo '# auxillary init file for latex2html' >$L2H_AUX_INIT_FILE
323328
echo '# generated by mkhowto.sh -- do not edit' >>$L2H_AUX_INIT_FILE
329+
for FILE in XXX $CONFIG_FILES ; do
330+
if [ ! "$FILE" = XXX ] ; then
331+
cat >>$L2H_AUX_INIT_FILE $FILE
332+
cat >>$L2H_AUX_INIT_FILE <<EOF
333+
334+
print "\\ninitializing from file: $FILE";
335+
EOF
336+
fi
337+
done
324338
if [ "$ICONSERVER" ] ; then
325339
ICONSERVER="${ICONSERVER%/}"
326340
fi

0 commit comments

Comments
 (0)