Hi Latex Community,
I'm designing a beamer presentation. It has a graphics as the background for the entire slide show. I wanted the last slide to have a different background graphics, but I couldn't do it. The background is not centered on the slide, and leaves about 1 inch margin to the left instead of covering the whole slide.
My latex file is as follows:
\begin{document}
%\usebackgroundtemplate{
\setbeamertemplate{background}
{\includegraphics[width=\paperwidth,height=\paperheight]{graphics-1}}
.
.
.
\begin{frame}
\begin{centering}
\includegraphics[width=\paperwidth,height=\paperheight]{graphics-2}
\end{centering}
\end{frame}
Any suggestions?
TeX Live and MacTeX ⇒ Graphics background overlays
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
Graphics background overlays
Hi biglolbird,
could you show a minimal working example?
Perhaps the margin is caused by reserved space of a sidebar.
A solution could be using the textpos package. It is mentioned in the beamer user manual 12.8 Positioning Text and Graphics Absolutely.
Stefan
could you show a minimal working example?
Perhaps the margin is caused by reserved space of a sidebar.
A solution could be using the textpos package. It is mentioned in the beamer user manual 12.8 Positioning Text and Graphics Absolutely.
Stefan
LaTeX.org admin
-
- Posts: 6
- Joined: Tue May 13, 2008 4:51 am
Re: Graphics background overlays
Hi Stefan,
Thanks for these links. I don't know if the margin is caused by reserved space of a sidebar or a navigation bar. I tried to get rid of sidebar using
\setbeamersize{sidebar width left=0cm}
and navigation bar using
\documentclass[compress]{beamer}
but neither worked. My MWE .tex file, .pdf (using pdflatex), and .png (light pink background) are below.
I also attempted \usepackage[absolute]{textpos} using
\afterpage{
\newpage
\begin{textblock*}
\includegraphics[width=\pagewidth, height=\pageheight]{background.png}
\end{textblock*}
\null
\newpage}
but \afterpage isn't in my latex packages. How do I get it? I'm using texlive on a linux machine.
Thanks!
biglolbird
Thanks for these links. I don't know if the margin is caused by reserved space of a sidebar or a navigation bar. I tried to get rid of sidebar using
\setbeamersize{sidebar width left=0cm}
and navigation bar using
\documentclass[compress]{beamer}
but neither worked. My MWE .tex file, .pdf (using pdflatex), and .png (light pink background) are below.
I also attempted \usepackage[absolute]{textpos} using
\afterpage{
\newpage
\begin{textblock*}
\includegraphics[width=\pagewidth, height=\pageheight]{background.png}
\end{textblock*}
\null
\newpage}
but \afterpage isn't in my latex packages. How do I get it? I'm using texlive on a linux machine.
Thanks!
biglolbird
- Attachments
-
- simple.tex
- (644 Bytes) Downloaded 551 times
-
- background.png (4.31 KiB) Viewed 8831 times
-
- simple.pdf
- (18.32 KiB) Downloaded 704 times