I started to create a custom theme for beamer slides, and I want to change the default aspect ratio for this theme. Of course I can use \documentclass[aspectratio=169]{beamer}
in every document, but I'd like to keep everything in *.sty files. In beamer.cls
I found definitions of \beamer@paperwidth
and \beamer@paperheight
, but setting these lengths in bemerthemeMYTHEME.sty
as follows has no effect on the result.
\mode<presentation>
\setlength\beamer@paperwidth{16.00cm}
\setlength\beamer@paperheight{10.00cm}
What would be a proper way to change the default aspect ratio in *.sty? Shell I use beamerouterthemeMYTHEME.sty
or bemerthemeMYTHEME.sty
for this?
beamer
more than a theme.\documentclass{...}
.\documentclass
. Could you please elaborate a bit more on the "concepts"? For me it is just changing the defaults, you can do it with margins, why not with paper size?aspectratio=169
). You could probably adjust those settings after\documentclass{...}
but you would probably have to rerun a lot of lines from the class file in order to get the desired result. I had a similar problem a while back: I wanted the output to look just as if I had loaded thesmaller
beamer class option while keeping all my tweaks in my .sty file. It turned out to be unwieldy and I ended up simply passingsmaller
as an option to the class:\documentclass[smaller]{beamer}
.\documentclass{...}
command; 2) as Joseph Wright suggested, modify thebeamer
class file to create your own, which would set the aspect ratio to a different value by default.