Setting the frame title in beamer is quite complex. I found sources that proposed solutions that didn't work well. Basically, I want to override
\defbeamertemplate*{frametitle}{default}[1][left]
(located in beamerouterthemedefault.sty
)
within my corporate sty file. I want to copy the default over and add a small minipage with my corporate logo, 2em of space, and then the frame title. I see exactly where to add the minipage but what I can't figure out is how to override the beamer template.
Apparently, there isn't a \redef
function. I don't want to use \setbeamertemplate
because I think #1
is actually a calculated text height for the color box. I want to override or redefine the default function with my own. One less than ideal solution is to simply import the image into my frame title but I would really like to avoid doing that for every frame.
How can I override a \defbeamertemplate*
function?
#1
has nothing to do text height, this is just an option to switch between left and right aligned frame titles.[left]
is used as default value. If you don't need right aligned frames, you can savly overwrite the template with\setbeamertemplate{frametitle}{....}
and replace the#1
in the definition withleft
.\defbeamertemplate*{frametitle}{mycompany}[1][left]
and use\setbeamertemplate{frametitle}[mycompany]
. This way you could even switch between left and right aligned frametitles.