I'm trying to install tex4ht and I'm just turning crazy...
It sounds as simple to install and configure as TeX in the 80's... :-(
Is there a package somewhere for teTeX or a recipe to install it on teTeX ?
Last year I've installed tex4ht and I've tried to automate it but in the
last version it seems completely different... :-( Just have a look to all
the scripts in doc/share... :-(
For information, the recipe I've used last year:
In (ba)sh :
unzip tex4ht.zip
cd tex4ht
cd doc
mkdir Unix
cd Unix
unzip ../ufiles.zip
mkdir ../src
mv ht htlatex httex httexi t4ht.c testa.tex testb.tex tex4ht.c ../src
export TEXMF BINDIR
TEXMF=`kpsewhich --expand-var '$TEXMF' | sed 's/[^/]*//'`
BINDIR=`texconfig conf | sed -n 's,/[^/]*$,,;/^tex:/s/[^/]*//p'`
cd ../src
cc -o tex4ht tex4ht.c -DENVFILE='"'$TEXMF/tex4ht/base/tex4ht.env'"'
-DHTFDIR='"'$TEXMF/tex/generic/tex4ht'"' -DHAVE_DIRENT_H
cc -o t4ht t4ht.c -DENVFILE='"'$TEXMF/tex4ht/base/tex4ht.env'"'
for i in ht htlatex httex httexi ; do echo $i; sed
"s,-ipath,-i$TEXMF/tex/generic/tex4ht,;s,path/tex4ht.dir/,,;s,path/,," $i > $i.$$ &&
mv $i.$$ $i ;done
chmod +x ht htlatex httexi httex
cd ../Unix
# Generate the tfm path lines file :
texconfig confall | egrep '^[ ]*tfm:[ ]*' | sed 's,//,/!,g;s,[
]*tfm:[ ]*,,g' | tr ':' '\012' | sed 's,\([^/!]\)$,\1/,;s/\(.*\)/t\1/' >
tfmpath.$$
# Insert it and generate the tex4ht paths :
sed "/^ttfmpath/r tfmpath.$$" tex4ht.env | sed
"/^ttfmpath/d;s,dpath/tex4ht.dir/,d./,;s,path/tex4ht.dir/,$TEXMF/tex/generic/tex4ht/,"
> tex4ht.env.$$ && mv tex4ht.env.$$ tex4ht.env
rm tfmpath.$$
As root (assuming you are already in Unix/) :
mkdir -p $TEXMF/tex4ht/base $TEXMF/tex/generic/tex4ht $TEXMF/doc/tex4ht
mv tex4ht.env $TEXMF/tex4ht/base
rm -rf $TEXMF/tex/generic/tex4ht/ht-fonts
mv *.4ht ht-fonts tex4ht.sty $TEXMF/tex/generic/tex4ht
cd ../src
cp -p ht htlatex httexi httex tex4ht t4ht $BINDIR
cd ..
mv *.class *.css *.gif *.html $TEXMF/doc/tex4ht
texconfig rehash
Thank you,
--
Ronan KERYELL |\/
Labo Informatique T�l�com |/) Tel: (+33|0) 2.29.00.14.15
ENST Bretagne, BP832 K Fax: (+33|0) 2.29.00.12.82
29285 BREST CEDEX |\ E-mail: [EMAIL PROTECTED]
FRANCE | \ http://www-info.enst-bretagne.fr/~keryell