How could I list the subsections in beamer (table of contens)?

Hello I trying to list the subsections in table of contents (beamer), but I can't get the result ? Anyone knows how to do it ?

My code (I am using the \usetheme{CambridgeUS}):

\documentclass[handout,10pt,aspectratio=169]{beamer} \usepackage[spanish]{babel} \usepackage{multirow,rotating} \usepackage{color} \usepackage{hyperref} \usepackage{tikz-cd} \usepackage{array} \usepackage{siunitx} \usepackage{mathtools,nccmath}% \usepackage{etoolbox, xparse} \usecolortheme{dolphin} \usepackage{lipsum} \usepackage{natbib} \usepackage{hyperref} \usepackage{calc} \usepackage{environ} \usepackage{courier} \usepackage{tcolorbox} \usetheme{CambridgeUS} \title[]{\textcolor{black}{\vskip 1.5cm\textbf {Title}}} \begin{document} \begin{frame} \maketitle \end{frame} \begin{frame} \frametitle{Contenido} \tableofcontents \end{frame} \section{Introducción} \begin{frame}{Introducción} \subsection{sismos lentos} \end{frame} \end{document} 
6

1 Answer

Never use sectioning commands like \section or \subsection within a frame. They must be used outside the frame.

Apart from this problem, you can use to get squares in the toc:

\documentclass[handout,10pt,aspectratio=169]{beamer} \usepackage[spanish]{babel} \usepackage{multirow,rotating} %\usepackage{color} %\usepackage{hyperref} \usepackage{tikz-cd} \usepackage{array} \usepackage{siunitx} \usepackage{mathtools,nccmath}% \usepackage{ %etoolbox, xparse} \usecolortheme{dolphin} \usepackage{lipsum} \usepackage{natbib} %\usepackage{hyperref} \usepackage{calc} \usepackage{environ} \usepackage{courier} \usepackage{tcolorbox} \usetheme{CambridgeUS} \title[]{\textcolor{black}{\vskip 1.5cm\textbf {Title}}} \setbeamertemplate{sections/subsections in toc}[square] \begin{document} \begin{frame} \maketitle \end{frame} \begin{frame} \frametitle{Contenido} \tableofcontents \end{frame} \section{Introduccion} \subsection{sismos lentos} \begin{frame}{Introduccion} \end{frame} \end{document} 

enter image description here

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like