Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have seen a nice looking table of contents in a Beamer presentation. There were some formulas, pictures, graphs situated across the frame in a shadow background. Any idea how to do this?enter image description here

share|improve this question
    
What did you see? A background picture? –  Marco Daniel Aug 25 '12 at 10:30
    
Could you upload as picture the frame you saw? –  Claudio Fiandrino Aug 25 '12 at 10:33
    

2 Answers 2

up vote 3 down vote accepted

You can use the background template; the background is an image that can be included with the usual \includegraphics command; the opacity is controlled by putting the image inside a \node with the help of TikZ; after the ToC, the template is again redefined to suppress the image:

\documentclass{beamer}
\usetheme{Boadilla}
\usepackage{tikz}

\begin{document}

\setbeamertemplate{background}{%
   \tikz\node[opacity=0.3] at (current page.center) {\includegraphics[height=\paperheight]{ctanlion}};}
\begin{frame}
\frametitle{Outline}
\tableofcontents
\end{frame}

\setbeamertemplate{background}{}
\section{Test Section One}
\begin{frame}
Contents of section one
\end{frame}

\section{Test Section Two}
\begin{frame}
Contents of section two
\end{frame}

\section{Test Section Three}
\begin{frame}
Contents of section three
\end{frame}

\end{document}

enter image description here

CTAN lion drawing by Duane Bibby.

share|improve this answer
    
ImageMagick's convert can help us to convert a PDF file into a PNG image tightly (rather than pressing PRINTSCREEN that sometimes leaves unnecessary borders). Invoke convert -density <integer value> -alpha <choose: on, off, remove> <input filename>.pdf <output filename>.png. Remarks: -alpha remove will remove the transparency better than -alpha off. Inserting %02d in the output filename makes 2-digit counter 00, 01, ..., 99 attached to the output filename when the PDF contains more than one page. –  Please don't touch Aug 25 '12 at 14:14
1  
@GarbageCollector ah, thank you very much for that. I simply open the document with okular, seclect the desired region and save it as an image. –  Gonzalo Medina Aug 25 '12 at 14:18

enter image description here

\documentclass{beamer}
\usepackage{filecontents}
\begin{filecontents*}{background.tex}
\documentclass[pstricks,border=0pt]{standalone}
\usepackage{pst-plot}

\begin{document}
\begin{pspicture}(-\psPi,-2)(\psPi,2)
    \psplot[algebraic,plotpoints=1500]{-\psPi}{\psPi}{sin(15*x)*cos(13*x)+cos(5*x)}
\end{pspicture}
\end{document}
\end{filecontents*}

\usepackage{graphicx}
\AtBeginDocument
{
    \immediate\write18{latex background}
    \immediate\write18{dvips background}
    \immediate\write18{ps2pdf background.ps}
}
\begin{document}
\bgroup
\usebackgroundtemplate{\includegraphics[width=\paperwidth]{background}}
\begin{frame}[t]{Table of Contents}
\tableofcontents
\end{frame}
\egroup

\section{Introduction}
\begin{frame}[t]{Who am I?}
I am a Garbage Collector.
\end{frame}

\section{At a glance}
\begin{frame}[t]{What is your hobby?}
Coding!
\end{frame}

\end{document}

Edit: Compile the code with pdflatex --shell-escape filename.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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