2

Let's consider this MWE

\documentclass{beamer}

\makeatletter
\setbeamertemplate{frametitle}{}
\setbeamertemplate{headline}
{
  \leavevmode
  \begin{beamercolorbox}[wd=\paperwidth,ht=4.8ex,dp=2ex,left]{section in head}
    \hspace{1ex}{\insertsection} -- {\insertframetitle}
  \end{beamercolorbox}
}
\makeatother

\begin{document}

\section{Introduction}
\begin{frame}
  \frametitle{One}
  Hello
\end{frame}

\begin{frame}
  \frametitle{Two}
  World
\end{frame}

\end{document}

Typesetting this, the error

! Undefined control sequence.
\beamer@@tmpl@headline ...} -- {\insertframetitle 
                                                  } \end {beamercolorbox} 
l.14 \begin{document}

? 

occur. Is there a solution?

closed as off-topic by user36296, Przemysław Scherwentke, Zarko, user13907, R. Schumacher Sep 14 '16 at 0:11

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Insert \def\insertframetitle{} before \begin{document} – John Kormylo Apr 1 '15 at 14:08
  • @JohnKormylo: Yes! It works. – user69231 Apr 1 '15 at 20:30
  • @JohnKormylo Would you like to answer? Or close as "solved in comments"? – user36296 Sep 13 '16 at 20:04
  • @samcarter - Solved in comments is fine. – John Kormylo Sep 13 '16 at 22:34
  • 4
    I'm voting to close this question as off-topic because solved in comments – user36296 Sep 13 '16 at 22:48