I decided to use a mindmap to show the ToC of my presentation and the section outline.
I'd like to have the nodes clickable like the standard ToC, but I couldn't find any command like \insertsection{number_of_section}
: \insertsection
insert a linked text but only for the current section.
\label
/\ref
is not a feasible way since:
- this will go in the code of a theme for (semi)automatic generation
beamer
is already generating the anchors, so why don't use it?
beamer
anchors are named Navigation\c@page
, and so I put them manually in the MWE to show roughly what I want to achieve. However, I'd like a sort of automation (by reading \jobname.toc
?) since the pages can change.
In addition, is it possible to make the entire circle clickable, and not only the text?
MWE:
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}\normalfont
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{calc,mindmap,trees}
\usepackage{totcount}
\title{There Is No Largest Prime Number\\\small aaa}%
\date[ISPN ?80]{27th International Symposium of Prime Numbers}
\author[Euclid]{Euclid of Alexandria \texttt{euclid@alexandria.edu}}
\tikzset{every mindmap/.style={
every node/.style={concept},
grow cyclic,
concept color=blue!50!green!50!white,
text=white,
root concept/.style={concept,
fill=white,
line width=1ex,
text=black,
text width=6em,
font=\sffamily\bfseries},
level 1 concept/.append style={sibling angle=130/\the\tikznumberofchildren,
level distance=8cm,
text width=4em,
font=\scriptsize\sffamily\bfseries},
level 2 concept/.append style={sibling angle=60,
level distance=5cm,
font=\scriptsize\sffamily\bfseries},
level 3 concept/.append style={sibling angle=50,
% level distance=2cm,
font=\scriptsize\sffamily\bfseries}}}
\begin{document}
\begin{frame}{Table of contents}
\centering
\begin{tikzpicture}[small mindmap, scale=0.4, remember picture, overlay]
\path
node[root concept] at ($(current page.center) - (3,3)$) {\hyperlink{Navigation1}{There Is No Largest Prime Number}}
[clockwise from=80]
child[concept color=blue!70!white] {
node {\hyperlink{Navigation2}{aaaaa}}
}
child[concept color=blue!70!white] {
node {\hyperlink{Navigation3}{bbbbb}}
[clockwise from=50]
child[concept color=orange] {
node {\hyperlink{Navigation4}{ccccc}}
}
child[concept color=orange] {
node {\hyperlink{Navigation5}{ddddd}}
}
}
child[concept color=blue!70!white] {
node {\hyperlink{Navigation6}{eeeee}}
} ;
\end{tikzpicture}
\end{frame}
\section{aaaaa}
\begin{frame}
\frametitle{There Is No Largest Prime Number}
\framesubtitle{The proof uses \textit{reductio ad absurdum}.}
\begin{theorem}
There is no largest prime number.\end{theorem}
\begin{enumerate}
\item Suppose $p$ were the largest prime number.
\item Let $q$ be the product of the first $p$ numbers.
\item Then $q+1$ is not divisible by any of them.
\item But $q + 1$ is greater than $1$, thus divisible by some prime
number not in the first $p$ numbers.
\end{enumerate}
\end{frame}
\section{bbbbb}
\begin{frame}{A longer title}
\begin{itemize}
\item one
\item two
\end{itemize}
\end{frame}
\subsection{ccccc}
\begin{frame}{Void}
\end{frame}
\subsection{ddddd}
\begin{frame}{Void}
\end{frame}
\section{eeee}
\begin{frame}{Void}
\end{frame}
\end{document}
\label
and\ref
technique?beamer
is already generating the links for own usage, so why not use things which already exists?