LaTeX forum ⇒ Document Classesbeamer: 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

Postby ltxsun » Sat Jul 31, 2010 11:23 pm

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.

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

Postby gmedina » Sun Aug 01, 2010 4:12 am

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

Postby ltxsun » Sun Aug 01, 2010 1:10 pm

Hi, gmedina, Thanks! Your code solved my problem right away!

User avatar
localghost
Site Moderator
Posts: 9203
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Sun Aug 01, 2010 2:23 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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ 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

Postby ltxsun » Tue Aug 03, 2010 8:24 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


Return to “Document Classes”

Who is online

Users browsing this forum: No registered users and 2 guests