Presentations and Posters[solved] Layout shifting with overlays in slide

Beamer, Powerdot and KOMA-Script presentations, Conference posters (a0poster, baposter, tikzposter)
Post Reply
kozimodo
Posts: 5
Joined: Fri Jul 17, 2020 10:09 pm

[solved] Layout shifting with overlays in slide

Post by kozimodo »

I have a frame as follows:

Code: Select all

Code, edit and compile here:
\begin{frame}
\frametitle{My title}
\begin{minipage}{6cm}
Some content
\end{minipage}
\begin{minipage}{6cm}
\includegraphics<1>[scale=.4]{overlay1.pdf}
\includegraphics<2>[scale=.4]{overlay2.pdf}
\end{minipage}
\invisible<1>{Some text}
\end{frame}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
and the layout changes as I move from 1 to 2. The figures have precisely the same dimensions:
$ pdfinfo overlay1.pdf
Creator: Matplotlib v3.7.1, https://matplotlib.org
Producer: Matplotlib pdf backend v3.7.1
CreationDate: Thu May 23 10:26:39 2024 EDT
Custom Metadata: no
Metadata Stream: no
Tagged: no
UserProperties: no
Suspects: no
Form: none
JavaScript: no
Pages: 1
Encrypted: no
Page size: 460.8 x 345.6 pts
Page rot: 0
File size: 94729 bytes
Optimized: no
PDF version: 1.4
$ pdfinfo overlay2.pdf
Creator: Matplotlib v3.7.1, https://matplotlib.org
Producer: Matplotlib pdf backend v3.7.1
CreationDate: Thu May 23 10:26:38 2024 EDT
Custom Metadata: no
Metadata Stream: no
Tagged: no
UserProperties: no
Suspects: no
Form: none
JavaScript: no
Pages: 1
Encrypted: no
Page size: 460.8 x 345.6 pts
Page rot: 0
File size: 96186 bytes
Optimized: no
PDF version: 1.4
Is there something obvious that I'm doing wrong here?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

kozimodo
Posts: 5
Joined: Fri Jul 17, 2020 10:09 pm

[solved] Layout shifting with overlays in slide

Post by kozimodo »

I found the solution on stackexchange - for anyone else seeing something similar, add %'s after your includegraphics statements.
Post Reply