matze / mtheme

A modern LaTeX Beamer theme
6.42k stars 847 forks source link

Is there a support for the \framesubtitle-command? #135

Closed reliak closed 8 years ago

reliak commented 9 years ago

Hi there,

I'm trying to use `\framesubtitle', but it is not working with the metropolis template (i.e. the frame sub title is not displayed). Am I doing something wrong or is there no support for this command? If so, do you have any alternative solutions?

matze commented 9 years ago

As of now, there is no frame subtitle support. There are two reasons:

  1. It's actually hard to come up with a nice visual representation that does not clutter the frame or cause excessive whitespace.
  2. It's a deliberate choice. IMHO, I don't see any good reason to give a single slide yet another title. There's always the (let's say) macro structure of sections and frames and the micro structure of lists, paragraphs, blocks etc. What problem would a subtitle?
benjamin-weiss commented 9 years ago

I agree with @matze. We should not support the \framesubtitle command. The metropolis theme is and should remain a clutter free theme. But if you really need \framesubtitle support, it is not that hard to add it on your own. You just have to add some code to the frametitle beamer template. Here is an MWE to get you going.

\documentclass{beamer}
\usetheme{metropolis}
\usepackage{blindtext}

\setbeamercolor{framesubtitle}{fg=mDarkTeal}
\addtobeamertemplate{frametitle}{}{%
  \ifx\insertframesubtitle\@empty\else%
  \usebeamerfont{framesubtitle}%
  \usebeamercolor[fg]{framesubtitle}%
  \insertframesubtitle%
  \fi%
}

\begin{document}
\begin{frame}
  \frametitle{Frametitle}
  \framesubtitle{Framesubtitle}
  \blindtext
\end{frame}
\end{document}
benjamin-weiss commented 8 years ago

@matze I think we are on the same page here, that we should not implement this. If someone really wants to use it my MWE should be sufficient. Close?

matze commented 8 years ago

Fully agree!