[l2h] Requesting sample code used in a .tex file for including animated figures, presently as .gif files, in output .pdf and/or .html files/file, et cetera

Nasser M. Abbasi nma at 12000.org
Wed Oct 31 14:13:25 CET 2012


On 10/31/2012 2:59 AM, Pat Somerville wrote:

Pat;

This is how I add animated gif files to my Latex document for
use with l2h. I do the conversion on windows, but the resulting
animated gif file can of course be used on windows on Linux with
l2h

1) Tool needed on windows (free)
    - UNFreeze to convert the GIF files to animated gif.
2) Use the above program to convert the set of gif file to one
animated gif file, say animation.gif

in Latex, do the line

-----------------------------
\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{html}

\begin{document}
\begin{htmlonly}
\includegraphics[scale=1]{animation.gif}
\end{htmlonly}
\end{document}
--------------------------------------

If the files are .png files, then first convert them to
gif files and then do the above. To covert set of png files
to set of gif files, I use free program call EazyGraphics
converter to convert PNG to GIF.

--Nasser





More information about the latex2html mailing list