8

I wish to customize the appearance of both my frametitle and framesubtitle. However when I try to do so, only the frametitle is rendered. This is a sample code:

\documentclass[20pt, aspectratio=169]{beamer}
\usetheme{default}
\setbeamertemplate{navigation symbols}{}
\usefonttheme{serif}
\setbeamertemplate{frametitle}{\color{white}\textbf{\tiny\insertframetitle}}
\setbeamertemplate{framesubtitle}{\color{white}\tiny\insertframesubtitle}
\setbeamercolor{background canvas}{bg=black}
\setbeamercolor{normal text}{fg=white}
\usepackage[utf8]{inputenc}
\usepackage[norsk]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}

\begin{frame}{Hello world}{Hello world subtitle}
\begin{equation*}
h_\alpha = \left\| \partial_\alpha \vec{r} \right\|
\end{equation*}
\end{frame}

\end{document}

Notice that the only the title is rendered. Why is that?

1
6

Indeed, there's no framesubtitle template, but you have the possibility to set an independent color and font for the framesubtitle by using

\setbeamerfont{framesubtitle}{<your specification>}
\setbeamercolor{framesubtitle}{<your specification>}

A complete example:

\documentclass[20pt, aspectratio=169]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[norsk]{babel}

\setbeamertemplate{navigation symbols}{}
\usefonttheme{serif}

\setbeamerfont{frametitle}{size=\tiny,series=\bfseries}
\setbeamercolor{frametitle}{fg=white}

\setbeamerfont{framesubtitle}{size=\normalfont\tiny}
\setbeamercolor{framesubtitle}{fg=white}

\setbeamercolor{background canvas}{bg=black}
\setbeamercolor{normal text}{fg=white}

\begin{document}

\begin{frame}{Hello world}{Hello world subtitle}
\begin{equation*}
h_\alpha = \left\| \partial_\alpha \vec{r} \right\|
\end{equation*}
\end{frame}

\end{document}

enter image description here

Notice that since you are changing only color and font attributes for the frametitle, you can set those attributes also using the color and font for frametitle (as I did in my example code), instead of using the frametitle template which would make more sense for major changes.

1

It seems as though you're not telling beamer to typeset the framesubtitle. I don't think the framesubtitle is a template you can set... The following works for me:

\documentclass[20pt, aspectratio=169]{beamer}
\usetheme{default}
\setbeamertemplate{navigation symbols}{}
\usefonttheme{serif}
\setbeamercolor{frametitle}{fg=white}
\setbeamerfont{frametitle}{size=\tiny}
\setbeamertemplate{frametitle}{\textbf{\insertframetitle}\\\insertframesubtitle}
\setbeamercolor{background canvas}{bg=black}
\setbeamercolor{normal text}{fg=white}
\usepackage{amsmath}
\begin{document}

\begin{frame}{Hello world}
\begin{equation*}
h_\alpha = \left\| \partial_\alpha \vec{r} \right\|
\end{equation*}
\end{frame}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.