I've defined the following command:
Code: Select all
\newcommand{\picture}[2][] {
\ifhevea\begin{rawhtml}
<CENTER>
<DIV CLASS="surround">
<P CLASS="surround-text">\end{rawhtml}{#1}\begin{rawhtml}</P>
<IMG SRC="\end{rawhtml}{#2}\begin{rawhtml}" WIDTH="97%">
</DIV>
</CENTER>\end{rawhtml}
\else
\begin{figure}[htb]
\renewcommand{\figurename}{Picture}
\caption[{#1}]{{#1}}
\centerline{\includegraphics[width=0.8\textwidth]{{#2}}}
\label{{#2}}
\end{figure}
\fi
}
But when parsing, I get this error (which is happening inside the \picture environment):
Code: Select all
./exploiting.tex:9: Warning: '_'occuring outside math mode