2

I want to use roman number for section and bullet for subsection in TOC for Beamer as shown in this figure: enter image description here

8
  • Which theme are you using? Mar 3, 2014 at 17:46
  • the default theme.
    – SAKLY
    Mar 3, 2014 at 18:13
  • Did you see the answer below? Is it that what you want? Mar 3, 2014 at 18:17
  • Thank you for your answer. But, the align is not the same for section and subsections. I want to use the same align as given in the figure above. Also, there is a long horizontal space between bullet and subsection name. Is there anyway to reduce spacing between bullet and subsection name?
    – SAKLY
    Mar 3, 2014 at 18:35
  • Sure. Please see my udated answer. Mar 3, 2014 at 18:46

1 Answer 1

6

You can achieve this with a definition of the section in toc and subsection in toc templates:

\documentclass{beamer}
\usepackage[utf8]{inputenc}

\defbeamertemplate{subsection in toc}{bullets}{%
  \leavevmode
  \parbox[t]{1em}{\textbullet\hfill}%
  \parbox[t]{\dimexpr\textwidth-1em\relax}{\inserttocsubsection}\par}
\defbeamertemplate{section in toc}{sections numbered roman}{%
  \leavevmode%
  \MakeUppercase{\romannumeral\inserttocsectionnumber}.\ %
  \inserttocsection\par}

\setbeamertemplate{section in toc}[sections numbered roman]
\setbeamertemplate{subsection in toc}[bullets]

\begin{document}

\begin{frame}
\tableofcontents
\end{frame}

\section{Préliminaires}
\begin{frame}
test
\end{frame}
\subsection{Operateurs}
\begin{frame}
test
\end{frame}
\subsection{Quelques notions}
\begin{frame}
test
\end{frame}

\section{Echauffement: la derivée}
\begin{frame}
test
\end{frame}

\end{document}

enter image description here

0

You must log in to answer this question.

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