Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Change picture in place (not animate)

0 views
Skip to first unread message

Ton 't Lam

unread,
Jul 23, 2008, 10:23:35 AM7/23/08
to
Hello,

Is there a way to change a picture in a PDF, rather then having about 10
pretty similar pictures in a row. It is like having an in place slide
show. I don't mean the animate package and step through a picture. It
would be great to have buttons to select a picture. It is meant to
explain process flows.

Thanks,
Ton 't Lam

Martin Heller

unread,
Jul 23, 2008, 12:02:51 PM7/23/08
to
Ton 't Lam skrev:

You can use layers. I don't know if there is a package at ctan
that does it, but the code suggested by Michael Ritzert in
<http://groups.google.com/group/comp.text.tex/browse_thread/thread/4eb3b173df26324>
works.

\documentclass{article}
\usepackage{tikz,ocg}
\begin{document}
\begin{tikzpicture}
\begin{ocg}{Filled}{1}{1}%
\fill (0,0) circle (1cm);
\end{ocg}%
\begin{ocg}{Empty}{2}{0}%
\draw (0,0) circle (1cm);
\end{ocg}
\end{tikzpicture}
\end{document}

0 new messages