GeneralLaTeX and Hevea

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
eleanor
Posts: 19
Joined: Sat Oct 03, 2009 6:03 pm

LaTeX and Hevea

Post by eleanor »

Hi, I'm parsing my .tex documents using hevea (which translates a .tex document into .html).

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
Any idea how to get rid of those annoying warnings?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply