[l2h] already generated image inclusion

Ross Moore ross@ics.mq.edu.au
Thu, 3 Oct 2002 13:56:49 +1000 (EST)


> Hello,
> 
> > \usepackage{html}
> > \htmladdimg[<options>]{<URL>}
> 
> It worked but I've got now another problem ! I don't wan't my images to
> be include twice (one automatically generated from the eps and the other
> one added with the \htmladdimg command).
> 
> I tried to play with the \latex and \begin{latexonly}... commands and

Yes; that is the right approach.
But you can use the *conditional comments* :

 %begin{latexonly}
  ...
  ...
  ...
 %end{latexonly}

which simplify the processing for LaTeX (since it just ignores them,
and doesn't require the extra wrapping of an environment).


> environments but without success. Most of the time, my figure
> environment are "complex" and include some subfigure but without
> success. However, after several trial and error, this solution is still not working ;-((

> Here is a code sample of a typical figure with the:
> 
> \begin{figure}[ht!]
>   \htmladdimg{../figs/4a_sbs-build-image1.png}
>   \htmladdimg{../figs/4b_sbs-build-image2.png}
>   \htmladdimg{../figs/4c_sbs-build-image3.png}
                ^^^
                your images are in a subdirectory of the parent directory

> \begin{latexonly}
>   \begin{center}
>     \centerline{
>     \includegraphics[scale=\imgscale]{figs/4a_sbs-build-image1.\sbsext}
>      }
>     \vspace{\imgvskip}
>     \centerline{
>       \includegraphics[scale=\imgscale]{figs/4b_sbs-build-image2.\sbsext}
>       \hspace{\imghskip}
>       \includegraphics[scale=\imgscale]{figs/4c_sbs-build-image3.\sbsext}
>       }
>   \end{center}
> \end{latexonly}
>     \caption{Step 2 -- Building the image.}
>     \label{fig:sbs-build-image}
> \end{figure}
> 
> However, it does not work at all : no figure is present in the HTML
> document. What is the proper procedure to have the awaited behavior ?

Your figures are 1-level higher in the directory tree, than where the HTML
pages reside. You must include the extra  ../  to account for this.
\htmladdimg takes an arbitrary URL (could be anywhere on the web)
as parameter, so it is up to you to get it right.

 
> 
> Once again, if such a feature exists, I'm sorry for the rethinking and
> requestionning !

You need to think about the directory structure that results,
after the LaTeX2HTML job has been done.


Hope this helps,

	Ross 

 
> Ben
> 
> -- 
> Benoit des Ligneris               Etudiant au Doctorat -- Ph. D. Student
> Web :                                    http://benoit.des.ligneris.net/
> President du - GULUS - president                   http://www.gulus.org/
> Mydynaweb Developpe(u)r:                           http://mydynaweb.net/
> GPG/PGP Key                 http://benoit.des.ligneris.net/linux/gpg.txt
> _______________________________________________
> latex2html mailing list
> latex2html@tug.org
> http://tug.org/mailman/listinfo/latex2html