5

I produce a beamerarticle-powered lecture notes from the same file as my presentation. I do not want to have any \frametitles in the lecture notes. Is there a way to tell Beamer that I want every \frametitle to be visible only in <presentation> mode? (Of course, I could define a macro \presframetitle#1 to be a shorthand for \frametitle<presentation>{#1}, but I'd prefer not to.)

2 Answers 2

3

Normally beamerarticle.sty defines the frametitle as

\defbeamertemplate<article>*{frametitle}{default}{\paragraph*{\insertframetitle}\ \par\noindent\emph{\insertframesubtitle}\par}

But you can provide you own definition, for example:

\documentclass{article}

\usepackage{beamerarticle}
\defbeamertemplate<article>*{frametitle}{empty}{}

\begin{document}
\section{Section}
\subsection{Subsection}
\begin{frame}
    \frametitle{test}
    abc
\end{frame}

\end{document}
1
  • While this is more or less equivalent to @JosephWright's answer, it has an additional benefit of teaching me about \defbeamertemplate. Thanks!
    – mbork
    Jan 23, 2017 at 13:57
5

You are probably best providing an alternative definition

\mode<article>{\renewcommand\frametitle[1]{}}

Worth noting here is that whilst beamer has a global default overlay spec, there is not one for each element. For something like frametitle is would be workable, but not for other elements: imagine an itemize, which might be in a block, in a column, in both, ...

2
  • 1
    You mean \mode<article>{...}? But anyway, this is a great idea that didn't cross my mind. If nothing better pops up (and I doubt it will), I'll accept your answer. Thanks!
    – mbork
    Jan 23, 2017 at 13:35
  • 1
    @mbork Yes: was forgetting to flip' the mode!
    – Joseph Wright
    Jan 23, 2017 at 13:37

You must log in to answer this question.

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