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

\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}
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
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
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