TeX Live and MacTeXGraphics background overlays

Information and discussion about TeX Live distribution for all platforms (Windows, Linux, Mac OS X) and the related MacTeX: installing, updating, configuring
Post Reply
biglolbird
Posts: 6
Joined: Tue May 13, 2008 4:51 am

Graphics background overlays

Post by biglolbird »

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?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Graphics background overlays

Post by Stefan Kottwitz »

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
LaTeX.org admin
biglolbird
Posts: 6
Joined: Tue May 13, 2008 4:51 am

Re: Graphics background overlays

Post by biglolbird »

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
Attachments
simple.tex
(644 Bytes) Downloaded 551 times
background.png
background.png (4.31 KiB) Viewed 8833 times
simple.pdf
(18.32 KiB) Downloaded 705 times
Post Reply