[l2h] Images in different directories
R. Prabhakar
prabha at strandgenomics.com
Sat Feb 22 12:36:18 CET 2003
hi,
i had a similar problem. and discussed it on this list. and this is how i
solved the problem.
firstly, the \graphicspath did not seem to work. latex2html was oblivious
of whatever was given in teh graphicspath. however, htmladding seemed to
work. this is my bit of code that worked.
\begin{htmlonly}
\newcommand{\screenshot}[2]{%
\begin{figure}[H]
\begin{makeimage}
\end{makeimage}
\htmladdimg{../#1}%%% <--- get the path right here !
\caption{#2}%
\end{figure}%
}
\end{htmlonly}
%begin{latexonly}
\newcommand{\screenshot}[2]{%
\begin{figure}[H]
\includegraphics{#1}%
\caption{#2}%
\end{figure}%
}
%end{latexonly}
and my comman for putting the screenshot in the appropriate place is:
\screenshot{images/custom_script.jpg}{Custom Script Interface}
hope this helps.
On Fri, 21 Feb 2003, Thomas Deschamps wrote:
> Hi
>
> I am having troubles replacing the ps images of my article with the
> original gif images.
> All my images are in several directories, and all these directories are
> in \graphicspath.
> I don't know if the same mechanism exists for latex2html.
>
> The following for example does not work:
>
> \begin{figure}[!h]
> \centering
> \begin{makeimage}
> \end{makeimage}
> \htmladdimg[HEIGHT=\HtmlImageSize]{kimmel\_thanks.gif}
> \begin{latexonly}
> \includegraphics[width=1.\linewidth]{kimmel_thanks}
> \end{latexonly}
> \end{figure}
>
> where \HtmlImageSize is a command.
> The image is not displayed, only its name is shown.
>
> And when I include the path name, like
>
> \htmladdimg[HEIGHT=\HtmlImageSize]{../../Figures/kimmel\_thanks.gif}
>
> It does not work either... is it because of the \graphicspath?
>
> Does anyone have a clue about that?
> Thanks.
>
> Thomas
>
> _______________________________________________
> latex2html mailing list
> latex2html at tug.org
> http://tug.org/mailman/listinfo/latex2html
>
More information about the latex2html
mailing list