Installing tex4ht on OpenSuSE 10.2
by Richard Hollos and Stefan Hollos
The steps we took to install tex4ht are described in general terms at the tex4ht setup for unix environments page. The details we describe below, are only of value if you want to install tex4ht on a SuSE system. It might also potentially be of use if you install on some other Linux system. tex4ht is not currently (10/29/07) part of the OpenSuSE distribution. Note that getting tex4ht to work requires some software that is part of the OpenSuSE distribution, like LaTeX.
To start, downloaded the 2.8 MB file tex4ht.zip from the
setup for unix environments page, placed it in
Copied files /usr/local/src/tex4ht/src/tex4ht.c, t4ht.c
Then compiled the first program like this:
Note there are double quotes and single quotes on the command line above. Both types of quotes are on the same key of the keyboard, just to the right of the semicolon key. If you copy and paste this command from the web into your console, you may get complaints from gcc like "error: stray \342 in program". In that case, just type it.
The compilation above produces lots of warnings but no errors, which is OK as long as an executable is produced.
Now compiling t4ht.c with the command:
Now we have two executable files in /usr/local/src/tex4ht/temp
Moved the executable files tex4ht and t4ht to directory
Opened this file in a text editor:
and replaced the line that starts with "t":
with the following line:
then, on the next line, added the following line:
This specifies the two locations where the tfm fonts are found on SuSE Linux.
Also in the file tex4ht.env we replaced the string
with the string
The line in tex4ht.env which starts with:
was changed to:
In the directory /usr/local/src/tex4ht/bin/unix
with the string
perl -p -i -e 's/~\/tex4ht\.dir/\/usr\/local\/src\/tex4ht/' *
Notice the "/" and "." characters are escaped with a "\" character.
The general form is:
As root, ran the command:
As regular user, typed:
Copied the example files:
into a home work directory then processed them by running:
The examples ran with no problems.
Thanks to Eitan Gurari for his great installation instructions, and for the very nice tex4ht software.