LaTeX forum ⇒ Presentations and Posters[solved] Layout shifting with overlays in slide Topic is solved

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

[solved] Layout shifting with overlays in slide

Postby kozimodo » Thu May 23, 2024 4:56 pm

I have a frame as follows:
\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 2021:

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

Exclusive June 2024 offer: All LaTeX eBooks (PDF, EPBUB) for $9.99 or €8.99

LaTeX books

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

[solved] Layout shifting with overlays in slide  Topic is solved

Postby kozimodo » Wed May 29, 2024 4:01 pm

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


Return to “Presentations and Posters”

Who is online

Users browsing this forum: No registered users and 5 guests