- I have a
beamerpresentation with more than 9 sections. - I want to use the
squaresymbol for the TOC. - When I have numbers larger than 9 the square is too small.
- How can I increase the size of all
square?
*I use a bigger font in my actual document and the effect is more severe than shown in the MWE below.
\documentclass{beamer}
\usepackage{tikz} % for \foreach
\setbeamertemplate{sections/subsections in toc}[square]
\begin{document}
\section{Overview}
\begin{frame}[plain]
\frametitle{\contentsname}
%https://tex.stackexchange.com/questions/109748/
\begin{columns}[t]
\begin{column}{.5\textwidth}
\tableofcontents[sections={1-6}]
\end{column}
\begin{column}{.5\textwidth}
\tableofcontents[sections={7-12}]
\end{column}
\end{columns}
\end{frame}
\foreach \x in {1,...,11}{
\section{Section \x}
\begin{frame}
\frametitle{\insertsection}
Test
\end{frame}
}
\end{document}
Update after the answer
- This is for others with a similar problem.
- The
squaresize is hardcoded as explained in the answer. - The code can be found in the file
beamerbaseauxtemplates.styon your system (as explained in a comment of the answer). - I added the original code to better understand the code in the answer.
% (sub-)section in toc: square
\defbeamertemplate{section in toc}{square}
{\leavevmode\leftskip=1.75ex%
\llap{%
\usebeamerfont*{section number projected}%
\usebeamercolor[bg]{section number projected}%
\vrule width2.25ex height1.85ex depth.4ex%
\hskip-2.25ex%
\hbox to2.25ex{\hfil\color{fg}\inserttocsectionnumber\hfil}}%
\kern1.25ex\inserttocsection\par}

