Page LayoutIncrease spaces between sections in ToC (Beamer)

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
caheo1294
Posts: 10
Joined: Wed Aug 18, 2021 2:10 am

Increase spaces between sections in ToC (Beamer)

Post by caheo1294 »

Hi everyone,

I am using Beamer to prepare my slides for my presentation. I would like to increase the space between sections in the ToC only. Does any one know how to do it? I have been looking for the answers so far but they are all ask to reduce the space, not increase the space. Here are my example codes:

Code: Select all

\documentclass[compress,12pt]{beamer}
\usepackage{amsmath,amssymb}
\usecolortheme[RGB={0,0,205}]{structure}
\usepackage{color, colortbl, graphics, graphicx}
\usepackage{pgfarrows,pgfnodes}
\usepackage{url}
\usepackage{textcomp}
\usepackage[vcentermath]{youngtab}
\usepackage{pgf}
\usepackage{bbm}
\usepackage[flushleft]{threeparttable}
\usepackage{xcolor}
\usepackage{color}
\usepackage{amsthm}
\usepackage{mathrsfs}
\usepackage{rotating}
\usepackage{geometry}
\usepackage{lscape}
\usepackage{subfig}
\usepackage{tikz}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{array}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{ragged2e} \usepackage[authoryear]{natbib}
\hypersetup{
	colorlinks,%
	citecolor=blue,%
	filecolor=red,%
	linkcolor=black,%
	urlcolor=black
} 
\renewcommand<>{\hl}[1]{\only#2{\beameroriginal{\hl}}{#1}}
\newcommand{\hilight}[1]{\colorbox{yellow}{#1}}
\newtheorem{conjecture}{Conjecture}[section]
\newtheorem{remark}{Remark}[section]
\newtheorem{findings}{Findings}[section]
\newtheorem{methodology}{Methodology}[section]
\newtheorem{simulation}{Simulation design}[section]
\newtheorem{puzzles}{Puzzles}[section]



\def\onepc{$^{\ast\ast}$}
\def\fivepc{$^{\ast}$}
\definecolor{LRed}{rgb}{1,.8,.8}
\definecolor{MRed}{rgb}{1,.6,.6}
\definecolor{HRed}{rgb}{1,.2,.2}

\newtheorem{Assumption}{Assumption}
\newtheorem{assumption}{Assumption}
\newtheorem{Condition}{Condition}
\newtheorem{condition}{condition}
\newtheorem{Proposition}{Proposition}
\newtheorem{proposition}{Proposition}
\usetheme{CambridgeUS}

\newcounter{saveenumi}
\newcommand{\seti}{\setcounter{saveenumi}{\value{enumi}}}
\newcommand{\conti}{\setcounter{enumi}{\value{saveenumi}}}
\resetcounteronoverlays{saveenumi}

%\setbeamercovered{transparent=25}
\setbeamercolor{author in head/foot}{fg=blue!50!black,bg=white}
\setbeamercolor{date in head/foot}{fg=blue!50!black,bg=white}
\setbeamercolor{section in head/foot}{fg=blue!50!black, bg=white}
\setbeamercolor{item}{fg=blue!50!black}
\setbeamercolor{title}{fg=blue!50!black}
\setbeamercolor{frametitle}{fg=blue!50!black}
\setbeamercolor{author}{fg=blue!50!black}
\setbeamercolor{institute}{fg=blue!50!black}
\setbeamercolor{date}{fg=blue!50!black}
\setbeamercolor{block title example}{fg=blue!50!black}
\setbeamercolor{block title}{fg=blue!50!black}
\setbeamertemplate{itemize items}[ball]
\setbeamertemplate{itemize subitems}[ball]
\setbeamertemplate{itemize subsubitems}[ball]
\setbeamertemplate{section in head/foot shaded}[default][30]
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{bibliography item}[triangle]
\setbeamertemplate{headline}{
	\vskip1pt
	\begin{beamercolorbox}[ht=2.25ex,dp=1ex]{author in head/foot}
		\usebeamerfont{titlelike}\insertsectionnavigationhorizontal{1\paperwidth}{}{}
	\end{beamercolorbox}
}
\setbeamertemplate{footline}
{
	\hbox{  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex]{date in head/foot}    \usebeamerfont{titlelike}\hspace*{2ex}\hspace{1ex}
		\end{beamercolorbox}  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}    \usebeamerfont{date in head/foot}
			\insertshorttitle\hspace*{2ex}
	\end{beamercolorbox}}
	\vskip0pt
}
\newcommand{\bitb}[1]{\begin{exampleblock}{#1}\begin{itemize}}
		\newcommand{\eitb}{\end{itemize}\end{exampleblock}}
% \yen : yen mark (taken from ascmac.sty for jlatex)
\def\yen{{\setbox0=\hbox{Y}Y\kern-.97\wd0\vbox{\hrule height.1ex
			width.98\wd0\kern.33ex\hrule height.1ex width.98\wd0\kern.45ex}}}

\begin{document}
	\begin{frame}{Outline}
		\justifying 
		\tableofcontents
		\vfill
	\end{frame}
	\begin{frame}	
	\section{Section One}
	\subsection{Sub sec 1}
	\subsubsection{sub sub sec 1}
	this is an example
\end{frame}

\end{document}
Thank you for your help. Stay safe.
Last edited by caheo1294 on Sun Aug 22, 2021 7:56 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Increase spaces between sections in ToC (Beamer)

Post by Ijon Tichy »

The entries in the ToC are paragraphs. So you could, e.g., add \setlength{\parskip}{2ex} before \tableofcontents to increase all vertical spaces in the ToC frame.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
caheo1294
Posts: 10
Joined: Wed Aug 18, 2021 2:10 am

Increase spaces between sections in ToC (Beamer)

Post by caheo1294 »

it worksss! Thank you!!
Post Reply