>I am also trying to get a thumbnail inline figure that will link to a
>better postscript figure. I have been using something like:
>
>\newcommand{\figthumbcapl}[3]{\begin{figure}
> \htmlimage{thumbnail=.4,align='center',extrascale=2}
> \htmlborder{4}
> \includegraphics[width=6in]{#1}
> \caption[#2]{#3}
> \end{figure}}
>
>but if then use:
>\figthumbcapl{dynamic_height.ps}{Dynamic topography in the N. Pacific
>subarctic gyre.}{\label{fig:dyn_ht}The mean flow is illustrated by
>contouring the dynamic height
>(dynamic topography). The subarctic and subtropical gyres are clearly
>illustrated as well as the Kuroshio, Oyashio, California, and Alaska
>Stream currents.}
>
>
>then the link is to a gif file and seriously degrades the image.
Yes, it is still a .gif because there is nothing in your code to *stop*
LaTeX2HTML from processing the \includegraphics command.
The \htmlimage{thumbnail=.4 simply *adds* a thumbnail, linking to the
processed version.
But having run LaTeX2HTML on your job once, to create the thumbnails,
you now have what you need to use my previous answer in this thread.
That is, use
\htmladdnormallink
{\htmladdimg[...]{ link to thumbnail version }}{ link to ps-version }
Make sure you rename the thumbnails, (else later runs of LaTeX2HTML
might delete them as unnecessary) and delete the full-size .gifs .
It is a good idea to use a macro for each image, written in terms
of another macro which can be redefined after the initial run
which creates the thumbnails.
e.g.
% use this to make the thumbnails from the .eps files
% located in subdirectory #2 of the source directory
%
\newcommand{\MakeThumbnail}[2]{%
\htmlimage{thumbnail=.4,<other options>}
\includegraphics[<options>]{#2/#1}}
% Use this to link the renamed thumbnails to the .eps files
% located in directory ../#2 from where the .html files reside
% the thumbnails were created in the same directory as the .html files
% Note the empty {makeimage} to suppress further image-generation.
%
\newcommand{\LinkThumbnail}[2]{%
\begin{makeimage}
\end{makeimage}
\htmladdnormallink{\htmladdimg[<options>]{#1.gif}}{../#2/#1.eps}}
%
% Comment-out one of these for each run of LaTeX2HTML:
%
\begin{htmlonly}
\newcommand{\myimages}[2]{\MakeThumbnail{#1}{#2}}
\newcommand{\myimages}[2]{\LinkThumbnail{#1}{#2}}
\end{htmlonly}
%
% LaTeX always uses \includegraphics
%
%begin{latexonly}
\newcommand{\myimages}[2]{\includegraphics[..options..]{#2/#1}}
\let\MakeThumbnail=\myimages
\let\LinkThumbnail=\myimages
%end{latexonly}
For each image define a macro in the document preamble:
\newcommand{\pictureA}{\myimages{pict1}{images}}
\newcommand{\pictureB}{\myimages{pict2}{images}}
\newcommand{\pictureC}{\myimages{pict3}{images}}
...
Your markup within the body of the LaTeX source will remain fixed
in a very simple form:
\begin{figure}
\pictureA
\caption{....}\label{...}
\end{figure}
If you are developing a document,
generating a few more thumbnails on different runs,
then simply replace the \myimages command with \LinkThumbnail ,
in the \pictureX definition for completed images.
Leave \myimages to expand to \MakeThumbnail while there are images
for which thumbnails are not yet available.
Another advantage of having macros handle all the images is that you
can easily make consistent style changes to all images;
e.g. if they all have to be resized to fit a narrow column (in LaTeX)
or you want to put background colors, or whatever in the HTML.
Hope this helps,
Ross Moore
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ross Moore email: [EMAIL PROTECTED]
Mathematics Department phone: +612 9850 8955
Macquarie University fax: +612 9850 8114
Sydney, NSW 2109 office: E7A-419
Australia WWW: http://www-math.mpce.mq.edu.au/~ross/
***************************
for the best in (La)TeX-nical typesetting and Web page production
join the TeX Users Group (TUG) --- browse at http://www.tug.org
<[EMAIL PROTECTED]>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~