# setting subsubsection title page

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}

\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
\usebeamerfont{section title}\thesection-~\insertsection\par
\end{beamercolorbox}
\endgroup
}

\setbeamertemplate{subsection page}
{
\begingroup
\usebeamerfont{section title}\thesection-~\insertsection\par
\end{beamercolorbox}
\vspace*{-1.pt}
\usebeamerfont{subsection title}\thesection.\thesubsection.~\insertsubsection\par
\end{beamercolorbox}
\endgroup
}

\setbeamertemplate{subsubsection page}
{
\begingroup
\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]
\tableofcontents
\end{frame}

\section{ Openings }
\frame{\sectionpage}

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

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

• – samcarter Feb 2 at 9:40
• The mentioned solution is too complicated. I just want to modify my code to display subsubsection title page. – Hany Feb 2 at 14:13

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
\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}


• 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 Feb 4 at 12:08
• @Hany The correct syntax is \subsubsection{Giuoco Defense} and \clearpage does not make any sense with beamer. – samcarter Feb 5 at 9:24
• @Hany Editing the question to show the answer will not help any future users. I rolled the edit back to the original question. – samcarter Feb 5 at 12:30
• @ChristianHupfer Thank you very much for your kind words! – samcarter Feb 5 at 13:14
• @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. – samcarter Feb 6 at 13:02