-----BEGIN PGP SIGNED MESSAGE-----

Hi,

concerning discussion about exporting from LyX to HTML, let me
offer my very simple script for conversion of LaTeX to HTML.

I do not know, how to find how many times latex should be run
and which auxiliary programs should be used (bibtex, makeindex),
so that you have to produce all auxiliary files (*.aux, *.bb?,
*.id?, *.toc, etc.) by hand. Any ideas?

However, it works very well for anyway. So it may work
(hopefuly) to you as well.

                Have a nice day

                                Matej

----------------------------------------
#!/bin/bash
# l2h latex to HTML script to call TtH.
#
# $Log: l2h,v $
# Revision 1.4  2000/10/07 19:20:12  matej
# Included processing with sed -- now it is working,
# when I resolved confusion between function of sed and tr :-)
#
# Revision 1.3  2000/01/05 20:32:43  matej
# Tr nějak nepracuje.
#
# Revision 1.2  2000/01/05 19:32:24  matej
# Přidáno tidy a vyházení TeXových uvozovek pomocí tr.
#
# Revision 1.1  2000/01/05 16:26:13  matej
# Initial revision
#
if [ $# -lt 1 ] ; then
       echo " Usage: l2h file [switches]" 1>&2
       exit 1
else
        FILE=$1
        shift 1
        TMP=/tmp/l2h.$$
        trap "rm $TMP* 2>/dev/null" EXIT
        tth <$FILE.tex >$FILE.htm -L$FILE $* 2> /dev/null
# echo "Processing ... " $FILE".htm"
        tidy -quiet $FILE.htm 2>/dev/null
        mv $FILE.htm $TMP
        sed -e s/\`\`/\"/ < $TMP | sed -e s/,,/\"/ | sed -e s/\'\'/\"/ > $FILE.htm
        trap "rm $TMP* 2>/dev/null" EXIT
fi


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: xYkMkEi0iOWs4LCedLCVqq+oO0dVq3ne

iQEVAwUAOd+YBe1neEitXwCrAQHYzAgAxyZ5cNu5xK5zi1qzhkNOHK1cJmiJJEej
ZS8o/pmEyDMDk4pzk5mu1QEv802/oYZZbG3kU+PcNH5CrD41EQbxFkmZlWuTZw3U
+UjpaEVyQL0m6kGPGkH9lJZ53nJa5KxPFlQj/rFTKEY47CdHCvEHq7OIF6zpITGL
aF8SVAxp60PB2hK2YM//9E5hdEpnEoCa0A/WsVCHdkEBx/DHb6ZogAhKXHV1NlKP
mkmE5p59iXm3d1LENeVjBOEFhTO1Tc/k1NCuo3r80lmDNJRiYNeoffXKaQUIYE+U
DAIKRAhX4Tg6l0CmpNrLE7dczoq8R5mg8R45obIquGBjBQLgy0v9/g==
=foHa
-----END PGP SIGNATURE-----

Reply via email to