next up previous 83
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}
    \htmladdimg{figure_replacement.gif}
    Figure: HTML replacement
\end{htmlonly}
However, you will not get a figure number in the caption.

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

Star2HTML Converting Starlink Documents to Hypertext
Starlink User Note 199
P W Draper
A J Chipperfield
M D Lawden
26 January 2009
E-mail:starlink@jiscmail.ac.uk

Copyright © 2000-2004 Council for the Central Laboratory of the Research Councils
Copyright © 2008-2009 Science and Technology Facilities Council