[l2h] Cannot get htmlonly to work in a macro
Francois Felix Ingrand
Francois Felix Ingrand <felix@laas.fr>
27 Jan 2000 12:14:14 +0100
The following macro used to work.... but now breaks latex on the htmlonly
part.
! LaTeX Error: Not in outer par mode.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.133 \figuregif[scale=0.5]{mo
ve-valve-op-exp}{Example of a OP}{fig-proc1-fig}
You've lost some text. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
Any way to fix it?
\newcommand{\figuregif}[4][]%
{
\begin{figure}
\begin{makeimage}
\end{makeimage}
\begin{latexonly}
\begin{center}
\includegraphics[#1]{#2.ps}
\end{center}
\end{latexonly}
\begin{htmlonly}
\htmladdimg[center]{gif/#2.gif}
\end{htmlonly}
\caption{#3}
\label{#4}
\end{figure}
}
$Id: html.sty,v 1.37 1999/03/12 07:02:38 RRM Exp $
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Francois Felix INGRAND "Dieu est un fumeur de Havane."
Professional: http://www.laas.fr/~felix mailto:felix@laas.fr
Personal: http://www.ingrand.net/felix mailto:felix@ingrand.net