Next: Hints from the Starlink Software Librarian
Up: Common conversion problems
Previous: Tildas in URLs

## Using the htmladdimg command to replace figures

The \htmladdimg command is used to display an image stored in an external file. Its form is:

\htmladdimg{<URL>}

where the URL is the hypertext address of the image (probably just the name of an image.gif file in the default directory).

It is tempting to use this command to replace existing figures with better colour graphics. However, you cannot use this command inside a figure environment. Instead, you should use something like:

\begin{latexonly}
\begin{figure}
\label{This figure}
body of figure
\caption{Latex eps version}
\end{figure}
\end{latexonly}
\begin{htmlonly}
\label{This figure}
Figure: HTML replacement
\end{htmlonly}

However, you will not get a figure number in the caption.

Next: Hints from the Starlink Software Librarian
Up: Common conversion problems
Previous: Tildas in URLs

Star2HTML Converting Starlink Documents to Hypertext