3

I know I can top-align all frames by writing

\documentclass[t]{beamer}

However, I am creating a theme for my department. Is there a way I can pass this option from the .sty-file?

2
  • 1
    You are creating a .sty rather than a .cls? You might consider making it a class because you can then say \LoadClass[t]{beamer}. Just make sure that you pass options to the beamer class if people are allowed to use them!
    – cfr
    Jun 21, 2015 at 20:06
  • @cfr I started making the theme by looking at the source for the university's theme, which was created as a '.sty'. I will definitely consider '.cls' now.
    – user44413
    Jun 21, 2015 at 20:19

2 Answers 2

5

Adding \beamer@centeredfalse to your .sty file might do the trick

\documentclass{beamer}

\makeatletter
\beamer@centeredfalse
\makeatother

\begin{document}
    \begin{frame}
        we
    \end{frame}
\end{document}
3

If you set it up as a class, dept-beamer, say, then you can simply pass the options you need to beamer along with any the user declares:

% dept-beamer.cls
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{dept-beamer}% if class is dept-beamer.cls
...
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}}% pass options we don't know about off to beamer for processing so e.g. handout etc. will still work
\ProcessOptions*
\LoadClass[t]{beamer}% load class with departmental options
...
\endinput

% end of dept-beamer.cls

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .