4

I created a beamer slide, What I want to do in the next slide is:

  1. Blur the previous slide and have it as background of the new slide
  2. Creating a box and write a few lines in it.

note that the in the first slides I have columns containing pictures and TikZ picture.

Is there an elegant way to this except of a copy and paste solution?

  • Does this procedure has to be repeated or do you need it just for one slide? – Claudio Fiandrino Jul 1 '14 at 9:03
  • For only one slide. – user2090491 Jul 1 '14 at 9:06
  • In that case you might want to save as image the previous slide and use it as background for the next one. – Claudio Fiandrino Jul 1 '14 at 9:10
  • Is there any command to do so? I mean saving first slide as an image? – user2090491 Jul 1 '14 at 9:13
  • Comment out the other slides or duplicate the file and remove all but the desired slide. Compile the file to create a PDF of the slide. You can now include it as a background for other slides. You should rename it so you don't overwrite it when you compile again. – Michael S Taylor Jul 1 '14 at 10:00
5

A simple way to do it without copying the code for the current slide is to use overlays coupled with TikZ. You could use one overlay to create a semitransparent rectangle to cover the current slide, and at the same time add the box for the additional text (the coordinates for the rectangle may need some tweaking depending on your particular layout).

Example:

blurred background example

Code:

\documentclass{beamer}

\usepackage{lipsum}
\usepackage{tikz}

\usetikzlibrary{backgrounds}

\begin{document}

\begin{frame}[c]{A sample slide}
    \lipsum[1]

    \begin{tikzpicture}[remember picture, overlay]
        % we don't want to affect the bounding box if the rectangle is too large
        \begin{pgfinterruptboundingbox}
            % the following coords. may need to be changed to suit your slides
            \fill <2> [fill=white, opacity=0.8] (0,0) rectangle (12, 7);
        \end{pgfinterruptboundingbox}
        \node <2> [draw, shape=rectangle, align=left] at (4, 4) {%
            Very interesting sample text about\\
            an even more interesting sample subject
        };
    \end{tikzpicture}
\end{frame}

\end{document}

I have used this method to prepare slides, and it should work regardless of the background you're using.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.