Added tightoc option

This commit is contained in:
Rob J Hyndman 2019-02-24 13:10:18 +11:00
parent ca2534907d
commit 6ed861101b
1 changed files with 8 additions and 2 deletions

View File

@ -253,10 +253,15 @@ $endif$
$if(toc)$
\AtBeginSection[]{
\frame<beamer>{
\frametitle{$if(tocheader)$$tocheader$$else$Outline$endif$}
\frametitle{$if(tocheader)$$tocheader$$else$Outline$endif$}\vspace*{0.2cm}
$if(tighttoc)$\fontsize{12}{13}\selectfont\parskip=0cm\itemsep=0cm$endif$
\tableofcontents[currentsection,hideallsubsections]
}}
$endif$
$if(tighttoc)$
\setbeamerfont{section number projected}{size=\small}
$endif$
% Redefine shaded environment if it exists (to ensure text is black)
\ifcsname Shaded\endcsname
\definecolor{shadecolor}{RGB}{225,225,225}
@ -334,7 +339,8 @@ $endfor$
$if(toc)$
\frame<beamer>{
\frametitle{$if(tocheader)$$tocheader$$else$Outline$endif$}
\frametitle{$if(tocheader)$$tocheader$$else$Outline$endif$}\vspace*{0.2cm}
$if(tighttoc)$\fontsize{12}{13}\selectfont\parskip=0cm\itemsep=0cm$endif$
\tableofcontents[hideallsubsections]
}
$endif$