[tex4ht] [bug #586] Incompatibility with package animate

Nasser M. Abbasi nma at 12000.org
Sat Dec 10 21:29:56 CET 2022


On 12/10/2022 2:14 PM, Jim Hefferon wrote:
> URL:
>    <http://puszcza.gnu.org.ua/bugs/?586>
> 
>                   Summary: Incompatibility with package animate
>                   Project: tex4ht
>              Submitted by: jimhefferon
>              Submitted on: Sat Dec 10 20:14:28 2022
>                  Category: None
>                  Priority: 5 - Normal
>                  Severity: 5 - Normal
>                    Status: None
>                   Privacy: Public
>               Assigned to: None
>          Originator Email:
>               Open/Closed: Open
>           Discussion Lock: Any
> 
>      _______________________________________________________
> 
> Details:
> 
> I have a minimal file at the end of this message.  If I run
> 
>    make4ht -a debug -m draft test.tex
> 
> then I get this message.
> 
> (/usr/local/texlive/2022/texmf-dist/tex/generic/tex4ht/html5.4ht))
> (./test.aux)
> ! TeX capacity exceeded, sorry [input stack size=10000].
> \old:outputpage ->\old:outputpage
>                                    {}
> l.9 \end{document}
>                    
> No pages of output.
> Transcript written on test.log.
> [FATAL]   make4ht-lib: Fatal error. Command htlatex returned exit code 1
> 
> If I comment out the \usepackage{animate} line then it works great, and I can
> view the .html file perfectly.
> 
> Regards,
> Jim Hefferon
> 
> =================================
> 
> \documentclass{book}
> \usepackage{graphicx}
> \usepackage{animate}
> 
> \usepackage{lipsum}
> \begin{document}
> 
> \lipsum[1-3]
> \end{document}
> 

As far as I know, animate never, and most likely will never work with tex4ht.

It does not even work with pdf readers embedded in browsers. i.e. if you open the
pdf inside the browser, the animation will not run.

I think it works only with standalone adobe pdf reader and may be with 1-2 other
standalone pdf readers.

This is what I do to run animations in HTML

----------------
\documentclass[12pt]{book}

\usepackage{graphicx}
\ifdefined\HCode
\else
\usepackage{animate}
\fi

\usepackage{lipsum}

\begin{document}

\ifdefined\HCode
\ScriptEnv{html}
      {\NoFonts\hfill\break}
      {\EndNoFonts}

     \HCode{
     <IMG SRC="f.gif" ALT="some text" WIDTH=750 />
     }
\else
\animategraphics[controls,loop,width=3in]{3}{f}{1}{10}
\fi

\lipsum[1-3]
\end{document}
-----------------

--Nasser


More information about the tex4ht mailing list.