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

Michal Hoftich michal.h21 at gmail.com
Sun Dec 11 21:13:00 CET 2022


I think that in this case it would be best to convert glideranim.pdf
to an animated format that is supported by web browsers (I think SVG
should allow this, or GIF). I am not really a fan of conditional tests
for TeX4ht in the document text, but if you have only a few
animations, it could be the best option.

Another option would be to redefine the \animategraphics command to
use \includegraphics in the config file. Something like this:


This will search for glideanim.svg and glideanim.gif and include them
as normal pictures.

Best regards,

On Sun, Dec 11, 2022 at 7:22 PM Hefferon, Jim S. <jhefferon at smcvt.edu> wrote:
> MIchal,
> Thank you so much for your help.
> I use the animate package as here.
>    \animategraphics{3}{prologue/asy/life/glideranim}{00}{16}
> In book.pdf this will use use a little Javascript to successively show the files glideranim00.pdf through glideranim16.pdf (perhaps at 3 frames per second?).  If you are interested then you can see the output at https://joshua.smcvt.edu/computation/book.pdf on page 49.  (I think you may have to use Acrobat to see the animation.)
> I could absolutely supply example files if you want.  But I wonder if maybe the right answer is that you shouldn't support this, that a person who has this should separately bundle the graphic files into a .gif or some other format suitable for the web?  Then in the .tex file calls for this could be surrounded with the \ifx\HCode\undefined ... construct.  If that is right, perhaps this could be noted somewhere?
> Regards,
> Jim

More information about the tex4ht mailing list.