pympress icon indicating copy to clipboard operation
pympress copied to clipboard

Beamer transition animation

Open Obi8 opened this issue 7 years ago • 10 comments

Hello Guys,

i have add a transition animation for a slide in my presentation, but it doesnt works with pympress. In an PDF Viewer(foxit) i can see the animation.

Example:

\documentclass{beamer}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{pgfpages}

\setbeameroption{show notes on second screen = right}

\begin{document}
	\begin{frame}
		\only<1>{\includegraphics[width=0.5\textwidth]{example-image-a}}
		\only<2>{\includegraphics[width=0.5\textwidth]{example-image-golden}}
		\transdissolve<2>
	\end{frame}
\end{document}

Obi8 avatar Aug 09 '17 08:08 Obi8

This is indeed not implemented. Anyone wanting to take this on is free to do so and make a PR, I don't think I can rank this very high on my list of priorities.

Cimbali avatar Aug 09 '17 23:08 Cimbali

It should probably be easy enough to use a Gtk.Revealer for fading and sliding transitions.

That's only a small subset of the transitions support by Poppler, but I don't know if we really need fancy animations (I'm not sure we need animations at all to be entirely honest).

Cimbali avatar Sep 28 '17 10:09 Cimbali

Hi, I don't think you need sophisticated transitions, but it would be nice to have at least two, a melt between two devices and a melt to black. And if you can define the transition time, it would be perfect.

susobaco avatar Feb 13 '18 07:02 susobaco

What about animations? When I use animate package in LaTeX, Pympress just skips the slide.

multiflexi avatar Aug 20 '18 13:08 multiflexi

yes @multiflexi, they are not implemented (yet?). What kind of animations do you use? Are they really necessary to your presentation?

It's doable but it requires some work and I don't have a lot of free time these days. Feel free to give feedback and/or make a PR if it is important to you.

Cimbali avatar Aug 20 '18 14:08 Cimbali

I use it for GIFs which I convert to PNG and then play them in a loop. It is nice to have because some stuff is easier explained to students by moving picture, for example an 4 stroke engine or anything else technical. The only possible way now is multiple slides but those can't be looped or video but that is a lot of hustle and does not work reliably.

multiflexi avatar Aug 20 '18 18:08 multiflexi

Video works pretty reliably in pymress, and is closer to gifs than animations between slides. I'd give that a shot if I were you. Gifs are easy to convert mp4 for example, it's done all the time for various websites

Cimbali avatar Aug 20 '18 20:08 Cimbali

I have done what you suggested. The issue is that the video does not autostart and does not loop. Also mp4 videos do not work properly but I guess it is issue of VLC and VDPAU. I use WebM and OGV anyway.

multiflexi avatar Aug 27 '18 11:08 multiflexi

Alright, let's open an issue to look at those features (loop & autostart). Maybe you can also open another one with your full configuration (including VLC) & mp4 test file, because it works fine for me

Cimbali avatar Aug 27 '18 23:08 Cimbali

@multiflexi have a look at #72. You can now directly embed gifs and play them in pympress.

Cimbali avatar Aug 30 '18 09:08 Cimbali