1

I am creating a presentation in Latex where I have 2 slides which would contain 4-4 slides in a window-like setup. I found this link: Add four images on a beamer frame and tried to put the animations like that but it does not work with animations. It ends up like this no matter what:

enter image description here

However, I would like to put them like in the link. Like this:

enter image description here

Minimal Working Example:

\documentclass{beamer}
\usepackage{animate}
\usepackage{graphicx}
\begin{document}

\begin{frame}
\begin{columns}
\column{.5\textwidth}
\centering
\animategraphics[autoplay, loop,scale=0.33]{25}{gif/frame-}{0}{36}\\
\animategraphics[autoplay, loop,scale=0.33]{25}{gif/frame-}{0}{36}
\column{.5\textwidth}
\centering
\animategraphics[autoplay, loop,scale=0.33]{25}{gif/frame-}{0}{36}\\
\animategraphics[autoplay, loop,scale=0.33]{25}{gif/frame-}{0}{36}
\end{columns}
\end{frame}
\end{document}

I also tried this with animate: how can I put multiple video next to each other on one slide presentation but it does not change anything regarding the animations.

Edit: Based on this answer from '13: Animate multiple sequences of images side by side, it seems like it worked previously but something has changed.

Edit: \begin{columns}[b] or \begin{columns}[c] or \begin{columns}[t] or \begin{columns}[T] with and without \centering did not change anything. Neither if I put any of them after \begin{frame}.

Edit: The inputs are in png format. Using height and width explicilty changes the size of the animations but no the location.

Edit: Something really weird is happening since even I just put one animation in the slide, it will be placed in the lower left corner.

Edit: \begin{center} does the same as the first try. It does not change anything.

Edit: Creating a fully new version with just one slide, it works as expected. Not sure what happens in my actual project which makes it wrong.

12
  • 2
    Welcome to TSE. Please post a Minimal Working Example, instead of a code snippet. Dec 10, 2021 at 22:25
  • 1
    Ok. Will try to create something.
    – nyaki
    Dec 10, 2021 at 22:28
  • I am not sure why this is, but you can maybe place the animations in minipages or \parboxes and this way specify the height and width. Dec 11, 2021 at 9:06
  • I did try the minipages approach but the animation was out of them.
    – nyaki
    Dec 11, 2021 at 9:45
  • I think that the correct syntax for the columns should be \begin{columns} \column{0.5\textwidth} ... \column{0.5\textwidth}... \end{columns}
    – vi pa
    Dec 11, 2021 at 9:49

1 Answer 1

0
\usepackage{pgfpages}
\pgfpagesuselayout{resize to}[%physical paper width=8in, physical paper height=6in]

lines caused the whole problem. Removing them fixed the issue.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .