|
Greetings!
I am very new to LaTeX2HTML, although I have been TeXing for a
decade or so. I have a problem where a \newcommand I have defined becomes
garbled in LaTeX2HTML, but not in LaTex2e. In other words, this file
processes normally in LaTex (dvi, ps, and pdf files are fine), but gives me an
html file with no figure: just some text (from the file below, I get "fig1.eps"), followed by the correct caption in a figure
environment.
The smallest atom of my code that exhibited this problem is
listed below. If I include the eps file without using my newcommand (by
directly typing \includegraphics), it works fine. This is part of
a source with over a hundred figures, and I would hate to redo everything
just to get html output.
I am using Latex2HTML version 99.2beta8 <1.42> on a
WinNT box and MikTeX 1.15.
Any help will be most appreciated.
Nat
____________________________________________________________
\documentclass{book}
\usepackage[dvips]{color,graphics} \usepackage{html} \newcommand{\epsfigure}[2]{\begin{figure}%
\centerline{\includegraphics{#1.eps}}% \caption{#2}% \label{fig:#1}% \end{figure}} \begin{document}
% fig1.eps exists in the current
directory
\epsfigure{fig1}{An interesting
result}
\end{document}
__________________________________________________
Dr. C. 'Nat' Nataraj Villanova University, Villanova, PA 19085 Tel: 610-519-4994, Fax: 610-519-6515 E-mail: [EMAIL PROTECTED] http://faculty.engineering.villanova.edu/cnataraj/main.html __________________________________________________ |
