Consider the following code:
\begin{frame}{title}
\hfill\includegraphics[width=7cm]{1.pdf}\hfill\hfill
\vspace{2cm}
\hfill\includegraphics[width=7cm]{2.pdf}\hfill\hfill
\end{frame}
This creates two slides: 1.pdf
is shown on both, while 2.pdf
is only shown on the second one. The problem is that when you move from the first slide to the second, 1.pdf
jumps a little up, as if it is making room for 2.pdf
(although there are plenty of room left for it!)
Here's a demonstration:
You can get the source + PDF from here, and see it for yourself. (It is best to view the PDF in the full-screen mode.)
I tried absolute positioning of 1.pdf
, using textpos
(and a bunch of other techniques). However, this seems to be an overkill, and, moreover, placing the graphic at the center of the page (horizontally) seems hard.
Any suggestions?
<pre>
HTML tags for (La)TeX code, because it doesn't produce syntax highlighting. Indent the code by 4 spaces instead or use the '101010' button which does it for you. Please upload images using the official image provider imgur.com (using the image button) and include a your code as a minimal working example (MWE) into the question and not over an external website. Posts on TeX.SX should be selfcontained.