Thank you for your help. The animation approach in the PDF seems to be the best they can do but on the web there are better options. I'll do exactly what you suggest.
Jim ________________________________________ From: Michal Hoftich <[email protected]> Sent: Sunday, December 11, 2022 15:13 To: Hefferon, Jim S. Cc: Michal Hoftich; [email protected] Subject: Re: [bug #586] Incompatibility with package animate ⚠ External Sender ⚠ Jim, 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: \Preamble{xhtml} \DeclareGraphicsExtensions{.svg,.gif,.png,.jpg} \renewcommand\animategraphics[5][]{\includegraphics{#3}} \begin{document} \EndPreamble This will search for glideanim.svg and glideanim.gif and include them as normal pictures. Best regards, Michal On Sun, Dec 11, 2022 at 7:22 PM Hefferon, Jim S. <[email protected]> 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://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjoshua.smcvt.edu%2Fcomputation%2Fbook.pdf&data=05%7C01%7Cjhefferon%40smcvt.edu%7Cf41d6ed252a5469ade0b08dadbb421a7%7Ccba7935edf564a6e9e66e8b9adbfaba4%7C0%7C0%7C638063864540572968%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=VYp1%2Fm7AfT%2B2uMA78vaQt5AHdHchBAyCdfpRx2BJ%2FUs%3D&reserved=0 > 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 >
