Document ClassesBeamer - change theme and background

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
waschbaer
Posts: 7
Joined: Wed Aug 04, 2010 4:09 am

Beamer - change theme and background

Post by waschbaer »

Hi

I was just wondering if anybody knows whether there is a way to change the beamer theme within a document, say after half of the presentation?

Also, does anybody know the difference between the following two codes?

1. \beamertemplateshadingbackground{brown!70}{yellow!10}
2. \setbeamertemplate{background canvas}[vertical shading][bottom=brown!70,top=yellow!10]

I want to change the background of some of my slides. I realised when I use code 1 it will also change the background for blocks in beamber but when I use code 2 the background of the blocks won't change.
Cheers
Martin

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

venik
Posts: 12
Joined: Thu Feb 01, 2007 2:11 am

Re: Beamer - change theme and background

Post by venik »

I don't know if it is possible to change a theme in mid-flight (Beamer is rather inflexible about smaller things..), but since the output file is pdf, you can use two themes, and merge the two pdf files using any number of pdf-handling programs, such as Adobe Acrobat or pdfhelper.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Beamer - change theme and background

Post by frabjous »

Rather than using one of those tools, it would be better just to use pdfpages package to insert the pages from the other beamer document, or else you'll lose the functionality of the navigation bar buttons, etc.

I think you can switch themes and so on mid-way, however. I'll try it out when I get a chance. A bit busy at the moment.
waschbaer
Posts: 7
Joined: Wed Aug 04, 2010 4:09 am

Re: Beamer - change theme and background

Post by waschbaer »

Thanks a lot for your replies.

I was thinking about just merging two different pdf documents but I thought Beamer would be a more flexible in that way. But the pdfpages option sounds interesting. Will have a look in it but please let me know if you found any other way directly in Beamer.
cprisacariu
Posts: 3
Joined: Sat Nov 13, 2010 8:48 pm

Re: Beamer - change theme and background

Post by cprisacariu »

Hello,

can you please show how you use pdfpages to insert pages in beamer? I read the pdfpages manual and tried but I get errors.

thank you,
cristian
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Beamer - change theme and background

Post by frabjous »

cprisacariu wrote:Hello,

can you please show how you use pdfpages to insert pages in beamer? I read the pdfpages manual and tried but I get errors.

thank you,
cristian
Here's an example. First I created a beamer presentation in the Warsaw theme. Just a minimal one for the sake of the example.

Code: Select all

\documentclass{beamer}

\usetheme{Warsaw}
\begin{document}

\begin{frame}{Warsaw Theme}
This has Warsaw theme.
\end{frame}

\end{document}

Then compiled it to warsaw.pdf.

Then I created another beamer presentation using the AnnArbor theme, but inserted this in the middle:

Code: Select all

\documentclass{beamer}
\usepackage{pdfpages}

\usetheme{AnnArbor}
\begin{document}

\begin{frame}{AnnArbor}
This has AnnArbor theme.
\end{frame}

{
\setbeamercolor{background canvas}{bg=}
\includepdf[pages=1]{warsaw.pdf}
}

\begin{frame}{Another AnnArbor}
Another frame in AnnArbor.
\end{frame}

\end{document}
The code is taken almost verbatim from the beamer user's guide, page 19, where it discusses how to use pdfpages with Beamer.

Obviously you can use whatever themes you want.

The result looks like this:
beamerpdfpages.png
beamerpdfpages.png (15.9 KiB) Viewed 22563 times
cprisacariu
Posts: 3
Joined: Sat Nov 13, 2010 8:48 pm

Re: Beamer - change theme and background

Post by cprisacariu »

Uau. Thank you very much. I am too stupid that I did not find this in the beamer guide. I did not even look since I thought such a hack is too out of the standard beamer.

Thank you so very much.
Good that are patient people like you with so stupid like me :)

all the best,
cristian
poi_bg
Posts: 1
Joined: Wed Dec 15, 2010 3:11 pm

Re: Beamer - change theme and background

Post by poi_bg »

Hi :) I'm making my first LateX presentation and I need some help.. I want to insert a picture for background. Is there such an opption? (sorry if i'm offtopic) :roll:
Post Reply