Presentations and PostersAdd subtitles to section slide in metropolis beamer theme

Beamer, Powerdot and KOMA-Script presentations, Conference posters (a0poster, baposter, tikzposter)
Post Reply
Butanium
Posts: 2
Joined: Sat May 21, 2022 8:12 pm

Add subtitles to section slide in metropolis beamer theme

Post by Butanium »

Hi, I'm using the metropolis beamer theme.

I want to add a subtitle to my section frame like this :
first image
first image
latex.png (13.45 KiB) Viewed 55593 times
I found a workaround with this code :
\section{Recherche arborescente de Monte Carlo\newline
\footnotesize{Monte Carlo Tree Search ou MCTS}}


However the subtitle appears in the table of contents :
latex2.png
latex2.png (19.15 KiB) Viewed 55592 times
Is there a way to get the visual from the first image but to not have Monte Carlo Tree Search ou MCTS written in the table of content ?

Minimum working example :
\documentclass[10pt]{beamer}
\usetheme[progressbar=frametitle]{metropolis}
\begin{frame}{Table of content}
\setbeamertemplate{section in toc}[sections numbered]
\tableofcontents
\end{frame}
\section{Recherche arborescente de Monte Carlo\newline
\footnotesize{Monte Carlo Tree Search ou MCTS}}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Add subtitles to section slide in metropolis beamer theme

Post by rais »

If the beamer author follows the standard approach, \section supports an optional argument that would be used in the TOC, i.e.,
\section[title as shown in TOC]{title as shown in text}

BTW: a `minimum working example' would be an example that demonstrates the problem you were describing, your code snippet doesn't quite fit...it doesn't even contain a {document} environment.

KR
Rainer
Butanium
Posts: 2
Joined: Sat May 21, 2022 8:12 pm

Add subtitles to section slide in metropolis beamer theme

Post by Butanium »

Yes that was it, thanks for your answer !
Post Reply