## LaTeX forum ⇒ Document Classes ⇒ beamer: get ride of left margin

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

### beamer: get ride of left margin

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.

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

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

\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
Hi, gmedina, Thanks! Your code solved my problem right away!

localghost
Site Moderator
Posts: 9203
Joined: Fri Feb 02, 2007 12:06 pm
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
LaTeX Community Moderator

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

ltxsun
Posts: 16
Joined: Thu Jun 03, 2010 7:41 pm
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