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.
This commit is contained in:
parent
ec9fbe90be
commit
5d59d3df7f
|
@ -20,6 +20,7 @@ DEFAULT_FORMAT=PDF
|
|||
USE_DEFAULT_FORMAT=true
|
||||
DISCARD_TEMPS=true
|
||||
|
||||
CONFIG_FILES=''
|
||||
ICONSERVER=''
|
||||
|
||||
TEMPBASE=mkhowto-$LOGNAME-$$
|
||||
|
@ -248,6 +249,10 @@ while [ "$1" ] ; do
|
|||
TEXINPUTS=$TOPDIR/paper-a4:$TEXINPUTS
|
||||
shift 1
|
||||
;;
|
||||
--l2h-config|--l2h-confi|--l2h-conf|--l2h-con|--l2h-co|--l2h-c|--l2h-|--l2h|--l2)
|
||||
CONFIG_FILES="$CONFIG_FILES $2"
|
||||
shift 2
|
||||
;;
|
||||
--letter|--lette|--lett|--let|--le)
|
||||
shift 1
|
||||
;;
|
||||
|
@ -321,6 +326,15 @@ fi
|
|||
|
||||
echo '# auxillary init file for latex2html' >$L2H_AUX_INIT_FILE
|
||||
echo '# generated by mkhowto.sh -- do not edit' >>$L2H_AUX_INIT_FILE
|
||||
for FILE in XXX $CONFIG_FILES ; do
|
||||
if [ ! "$FILE" = XXX ] ; then
|
||||
cat >>$L2H_AUX_INIT_FILE $FILE
|
||||
cat >>$L2H_AUX_INIT_FILE <<EOF
|
||||
|
||||
print "\\ninitializing from file: $FILE";
|
||||
EOF
|
||||
fi
|
||||
done
|
||||
if [ "$ICONSERVER" ] ; then
|
||||
ICONSERVER="${ICONSERVER%/}"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue