Multiple slide templates in LaTeX Beamer

I would like to create a presentation using LaTeX beamer, which has two different types of slide templates / layouts: one for slides with a background image and one layout / template for slides without a specified background image.

Is there any trick to do this with a ray?

+6
latex beamer
source share
3 answers

Basically I collapse before placing \usebackgroundtemplate before each \begin{frame}...\end{frame} .

+1
source share

If you need a specific background image for one slide, just put

{\usebackgroundtemplate{\includegraphics[width=\paperwidth]{background.jpg}}

just before your \begin{frame} .

+1
source share

If I understand correctly, the question is how to create two copies of the presentation at the same time. To do this, you use several low-level tex commands and several files.

In Presentation.tex you may have

 %&pdftex \relax \immediate\write18{pdflatex -synctex=1 PresentationWithBG.tex} \relax \immediate\write18{pdflatex -synctex=1 PresentationWithoutBG.tex} \end 

This is the only file you really need to run latex on, what do you do with pdftex --shell-escape Presentation.tex . But you will also need the following.

In PresentationWithBG.tex (note that you really don't need \usebackgroundtemplate before each frame):

 \documentclass{beamer} \setbeamercolor{background canvas}{bg=} \usebackgroundtemplate{\includegraphics[width=\paperwidth]{<your_background_fig>}} \input{PresentationContent} 

In PresentationWithoutBG.tex :

 \documentclass{beamer} \input{PresentationContent} 

In PresentationContent.tex :

 \begin{document} [All your actual presentation goes here...] \end{document} 

When you run pdftex --shell-escape Presentation.tex , you will get PresentationWithBG.pdf and PresentationWithoutBG.pdf .

Please note that %&pdftex in Presentation.tex ensures that any version of TeX works in the correct mode. You could run it using pdflatex .

0
source share

All Articles