I have managed to get tex4ht working (on debian jessie) for a moderately complex document (containing muliple \includegraphics, bibliography) with article class. However, for beamer class even the following simple document (t.tex) fails:
\documentclass{beamer}
\usetheme{default}
\title{Simple beamer doc}
\author{John D}
\date{12 Aug 2014}
\usepackage{graphicx}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{frame title}
\includegraphics{xml-proc.eps}
\end{frame}
\end{document}
'latex t.tex' works fine but 'mk4ht htlatex t.tex' results in the error:
! TeX capacity exceeded, sorry [input stack size=5000].
<to be read again>
\def
l.19 \end{frame}
The culprit is \includegraphics
. Removing \includegraphics
eliminates above error producing html file with all slides (but obviously no figures). Tried increasing stack size to 50000, but same error. Also, specifying just \includegraphics{}
(no filename) also produces same error.
A possible hint to the problem may be the following line in the log file (generated by 'mk4ht htlatex t.tex'):
LaTeX Info: Redefining \includegraphics on input line 16.
Above line is absent in the log file when an article class tex file is used (in which case \includegraphics
causes no problem).
Any ideas why \includegraphics
with beamer fails? Else any workaround?