Document Classesbeamer: get ride of left margin

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
ltxsun
Posts: 16
Joined: Thu Jun 03, 2010 7:41 pm

beamer: get ride of left margin

Post by ltxsun »

Hi,
When I use \begin{frame}[plain], I can get rid of all theme components (e.g., to fit a large picture), as described in the user guide.

However, I still have the text left margin. \hspace{-1cm} does not work. and I do not want to do
\setbeamersize{text margin left=0cm} as LaTeX tells me it can only be used in preamble, so that it will affect all other frames.

Any suggestions? Thanks!
Last edited by ltxsun on Tue Aug 03, 2010 8:20 pm, edited 1 time in total.

Recommended reading 2024:

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

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

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

beamer: get ride of left margin

Post by gmedina »

Hi,

you can use a box, as the following example suggests:

Code: Select all

\documentclass{beamer}
\usepackage{lipsum}
\usetheme{Warsaw}

\begin{document}

\begin{frame}[plain]
\makebox[\linewidth]{\rule{12cm}{3cm}}
\end{frame}

\begin{frame}[plain]
\makebox[\linewidth]{\parbox{12cm}{\lipsum[1]}}
\end{frame}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
ltxsun
Posts: 16
Joined: Thu Jun 03, 2010 7:41 pm

Re: beamer: get ride of left margin

Post by ltxsun »

Hi, gmedina, Thanks! Your code solved my problem right away!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

beamer: get ride of left margin

Post by localghost »

As it is clearly written in the Board Rules, topics with a solved problem have to be marked accordingly by the OP.


Best regards
Thorsten
ltxsun
Posts: 16
Joined: Thu Jun 03, 2010 7:41 pm

beamer: get ride of left margin

Post by ltxsun »

Thanks for the reminder. I have edited the original post.
localghost wrote:As it is clearly written in the Board Rules, topics with a solved problem have to be marked accordingly by the OP.


Best regards
Thorsten
Post Reply