Jean-Marc Lasgouttes wrote:
> Angus> No. It doesn't matter where I put the '\usepackage{tex4ht}'. If
> Angus> '\usepackage[T1]{fontenc}' is present, 'fi' becomes '0x00'. :-(
> 
> How do you run it? I took a look at the web page of the project, and
> it seems very complicated...

Truly, it isn't. Install the package, add the line '\usepackage{tex4ht}' to
your latex source and run:

$ latex tmp
$ latex tmp
$ tex4ht tmp
$ lynx tmp.html

where 

$ cat tmp.tex
\documentclass[english]{article}
\usepackage{tex4ht}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{lmodern}
\usepackage{babel}

\begin{document}

\begin{figure}
\begin{center}\rule{1cm}{1cm}\end{center}
\caption{\label{cap:foo}My figure}
\end{figure}

In approximation of these experimental data, \ldots, 
as shown in figure~\ref{cap:foo}.

\end{document}

The point is that tex4ht sits in between tex and latex, so it's guaranteed
to understand all of your latex file. Of course, you can pass it a whole
slew of options to tell it how to interpret the generated .dvi file...

Angus


Reply via email to