0

Please would you find what is wrong in the \setbeamertemplate{subsubsection page} definition. The subsubsection title page is not displayed. I do not want to use the solution mentioned in answer posted; I want to find what is wrong in my code.

\documentclass{beamer}
\usepackage{verbatim}
\setbeamertemplate{navigation symbols}{}

\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}

\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}{\leavevmode\leftskip=3.2em\rlap{\hskip-2em\textcolor{violet}{\inserttocsectionnumber.\inserttocsubsectionnumber.}}\textcolor{violet}\inserttocsubsection\par}

\setbeamertemplate{section page}
{
\begingroup
\begin{beamercolorbox}[sep=10pt,center,rounded=true,shadow=true]{section title}
    \usebeamerfont{section title}\thesection-~\insertsection\par
\end{beamercolorbox}
\endgroup
}

\setbeamertemplate{subsection page}
{
\begingroup
\begin{beamercolorbox}[sep=2pt,center,rounded=true,shadow=true]{section title}
    \usebeamerfont{section title}\thesection-~\insertsection\par
\end{beamercolorbox}
\vspace*{-1.pt}
\begin{beamercolorbox}[sep=6pt,center,rounded=true,shadow=true]{subsection title}
    \usebeamerfont{subsection title}\thesection.\thesubsection.~\insertsubsection\par
\end{beamercolorbox}
\endgroup
}

\setbeamertemplate{subsubsection page}
{
\begingroup
\begin{beamercolorbox}[sep=6pt,center,rounded=true,shadow=true]{subsubsection title}
    \usebeamerfont{subsubsection title}\thesection.\thesubsection.\thesubsubsection.~\insertsubsubsection\par
\end{beamercolorbox}
\endgroup
}

\setbeamercolor{section title}{bg=blue!40}
\setbeamercolor{subsection title}{bg=blue!20}
\setbeamercolor{subsubsection title}{bg=blue!20}
\setbeamerfont{section title}{size=\Large,series=\bfseries}
\setbeamerfont{subsection title}{size=\large,series=\bfseries}
\setbeamerfont{subsubsection title}{size=\large,series=\bfseries}

\begin{document}


\begin{frame}[t,allowframebreaks]
\frametitle{Table of Contents}
\tableofcontents
\end{frame}

\section{ Openings }
\frame{\sectionpage}

\subsection{ Ruy Lopez Opening }
\frame{\subsectionpage}

\subsubsection{ Ruy Lopez: Giuoco Piano Defense }
\frame{\subsubsectionpage}
\end{document}
2

1 Answer 1

2

The error message from your code tells you that \subsubsectionpage is not defined, so you need to define it.

\documentclass{beamer}

\setbeamertemplate{subsubsection page}{%
\begingroup
\begin{beamercolorbox}[sep=6pt,center,rounded=true,shadow=true]{subsubsection title}%
    \usebeamerfont{subsubsection title}\thesection.\thesubsection.\thesubsubsection.~\insertsubsubsection\par%
\end{beamercolorbox}%
\endgroup
}

\newcommand{\subsubsectionpage}{\usebeamertemplate{subsubsection page}}
\setbeamercolor{subsubsection title}{bg=blue!20}
\setbeamerfont{subsubsection title}{size=\large,series=\bfseries}

\begin{document}

\section{Openings}
\subsection{Ruy Lopez Opening}
\subsubsection{Ruy Lopez: Giuoco Piano Defense}

\begin{frame}
    \subsubsectionpage
\end{frame}

\end{document}

enter image description here

11
  • your code did not show the subsubsection titles in TOC (I added \setcounter{tocdepth}{3}) the subsubsection title is shown in a separate page and the subsubsection title page did not show the title, just the number of the subsubsection
    – Hany
    Commented Feb 4, 2018 at 12:08
  • 2
    @Hany The correct syntax is \subsubsection{Giuoco Defense} and \clearpage does not make any sense with beamer. Commented Feb 5, 2018 at 9:24
  • 2
    @Hany Editing the question to show the answer will not help any future users. I rolled the edit back to the original question. Commented Feb 5, 2018 at 12:30
  • 1
    @ChristianHupfer Thank you very much for your kind words! Commented Feb 5, 2018 at 13:14
  • 1
    @Hany You can start editing your question, include the image there, copy the url of the image and cancel your edit. Then you can paste the url into a comment. The image will not be displayed, but one can click on it to see it. Commented Feb 6, 2018 at 13:02

You must log in to answer this question.

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