TransWikia.com

Beamer-Changing textwidth

TeX - LaTeX Asked on January 30, 2021

I am creating a presenatation using beamer. I am trying to change the textwidth so as to use almost the whole page(i.e. paperwidth) for my frames. What I am trying to achieve is have the least possible margins on left and right hand side. To start, I used the layout package, to see how my geometry is set up. I tried to modify the parameters in order to achive a “bigger” paper in the horizontal dimension.

At first I modified oddsidemargin and hoffset but these actualy moved the frame left and right. Then I noticed, that according to the layout, that I have to increase the textwidth, but again it’s like having the frame moving left/right…

For instance, for a paperwidth=364pt I used a textwidth=360, but what’s happening is the frame rolling to right(notice the navigation bars at the bottom of the frame).

enter image description here

My code is

documentclass[10pt]{beamer}
setbeamerfont{headline}{size=footnotesize}
usetheme{Ilmenau}
usepackage{amsmath,amssymb}
usepackage{layout}
%oddsidemargin=-100pt
%hoffset=-10pt
textwidth=360pt

begin{document}


section{Section}
subsection{Subsection}
begin{frame}
 begin{itemize}
  item Cross section $A(x,y)B$ : Definition of cross section
  item %resizebox{textwidth}{!}{
        $dfrac{d sigma}{d Omega}(E,theta) = dfrac{Y}{N left(QOmegaright)};,        
        begin{array}{ll}
         Y : & text{Y}
         N : & text{N}
         Q : & text{Q}
         Omega : & text{Angle}
        end{array}
        $
        %}
  item How  : Like that
 end{itemize}
end{frame}

begin{frame}
 layout
end{frame}
end{document}

What I want to achieve is start the text lefter that it is now and end it righter! how can this be achieved?

One Answer

Use

setbeamersize{text margin left=0pt,text margin right=0pt}

MWE:

documentclass[10pt]{beamer}
setbeamersize{text margin left=0pt, text margin right=0pt} %new code
setbeamerfont{headline}{size=footnotesize}
usetheme{Ilmenau}

usepackage{amsmath,amssymb}

begin{document}


section{Section}
subsection{Subsection}
begin{frame}
 begin{itemize}
  item Cross section $A(x,y)B$ : Definition of cross section
  item %resizebox{textwidth}{!}{
        $dfrac{d sigma}{d Omega}(E,theta) = dfrac{Y}{N left(QOmegaright)};,
        begin{array}{ll}
         Y : & text{Y}
         N : & text{N}
         Q : & text{Q}
         Omega : & text{Angle}
        end{array}
        $
        %}
  item How  : Like that
 end{itemize}
end{frame}

begin{frame}
end{frame}
end{document}

enter image description here

To selectivley restore bigger margins for specific frames we can use Beamer columns, like this:

begin{frame}
begin{columns}
column{.1textwidth}
column{.8textwidth}
tableofcontents
column{.1textwidth}
end{columns}
end{frame}

which will result in:

enter image description here

Answered by Old Nick on January 30, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP