Ardi <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> sorry, but somehow I do not understand the explanation for
> including a simple image (f.e. exampleimage.png) into example.tex
> to get
> 
> a) resulting dvi file via: latex  example.tex) 
> and
> b) resulting hyperlatex html files: example.html, example0.html,
> ...etc)
> 

There isn't really a general-purpose converter.  Do something like this:

\texorhtml{%
\includegraphics{example.ps}%
}{%
\htmlimage{example.png}%
}

If you want something more automatic, you can do something like what's
below, and change copy-file to execute ImageMagick's "convert" function.
I put the following into a .hlx file.  The corresponding code for the
latex version of the class is below.

Hope this helps,

 -tom



\HlxEval{
(put 'figpath        'hyperlatex 'hyperlatex-set-figurepath)
(put 'figuremove     'hyperlatex 'hyperlatex-figuremove)

(defvar hyperlatex-figurepath)
(defun hyperlatex-set-figurepath ()
  (setq hyperlatex-figurepath (hyperlatex-parse-required-argument)))

(defun hyperlatex-figuremove ()
  (if hyperlatex-final-pass
    (let ((infile (hyperlatex-parse-required-argument))
          (outfile (hyperlatex-parse-required-argument)))
      (let ((inpath  (concat hyperlatex-figurepath "/" infile))
            (outpath (concat hyperlatex-html-directory "/" outfile)))
        (message "Copying %s to %s" inpath outpath)
        (copy-file inpath outpath t)))))
}
\newcommand{\figureplace}[4]{
\figuremove{#4}{#5}
\begin{figure}[#1]
  \label{#2}
  \begin{center}\xmlattributes{img}{border="0"}
    \htmlimage{#5}
    \caption{#3}
  \end{center}
\end{figure}}


LaTeX version:

\newcommand{\figureplace}[4]{
\begin{figure}[#1]
  \includegraphics{#4}
  \caption{#3}
  \label{#2}
\end{figure}}




-- 
 ------------------------
 tomfool at as220 dot org
 http://sgouros.com  
 http://whatcheer.net

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Hyperlatex-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hyperlatex-users

Reply via email to