LaTeX forum ⇒ Presentations and PostersAdd subtitles to section slide in metropolis beamer theme Topic is solved

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

Add subtitles to section slide in metropolis beamer theme

Postby Butanium » Sat May 21, 2022 8:27 pm

Hi, I'm using the metropolis beamer theme.

I want to add a subtitle to my section frame like this :
latex.png
first image
latex.png (13.45 KiB) Viewed 409 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 408 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 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
rais
Posts: 320
Joined: Sun Nov 16, 2014 8:51 pm

Add subtitles to section slide in metropolis beamer theme  Topic is solved

Postby rais » Sat May 21, 2022 9:17 pm

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

Postby Butanium » Sun May 22, 2022 10:54 am

Yes that was it, thanks for your answer !


Return to “Presentations and Posters”

Who is online

Users browsing this forum: No registered users and 3 guests