From c89e537fabf93b5aadf9e5598ff328c84dd3d4bb Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Sun, 18 Sep 2016 21:05:03 +0200 Subject: [PATCH] - add possibility to change global theme color with a variable - customize ToC --- calculmental/calculmental.cls | 37 ++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/calculmental/calculmental.cls b/calculmental/calculmental.cls index 0c89cbc..f6be5e5 100644 --- a/calculmental/calculmental.cls +++ b/calculmental/calculmental.cls @@ -26,6 +26,24 @@ +%-- definitions +% maincolor +% option de classe +% couleur générale du beamer +\def\maincolor{lapislazuli}% +\define@key{calculmental.cls}{maincolor}[lapislazuli]{% + \def\maincolor{#1}% +} +%--% + + +%-- options +\ExecuteOptionsX{maincolor} +\ProcessOptionsX +%--% + + + % % \toggletrue{calculmental} % @@ -36,13 +54,30 @@ \graphicspath{{images/}} \usetheme{Madrid} -\usefonttheme{serif} +\useinnertheme{circles} +\useoutertheme{default} +\usefonttheme{professionalfonts} +\usecolortheme[named=\maincolor]{structure} \setbeamerfont{enumerate item}{family=\sffamily} \setbeamertemplate{navigation symbols}{% \insertframenavigationsymbol \insertsectionnavigationsymbol } + +% ToC +% change l'espace vertical entre les sections +\patchcmd{\beamer@sectionintoc} +{\vfill} +{\setlength{\itemsep}{10pt}\vskip\itemsep} +{} +{} +% change le symbole pour lister +\defbeamertemplate{section in toc}{bullets}{% + \leavevmode + \parbox[t]{1em}{\textbullet\hfill}% + \parbox[t]{\dimexpr\textwidth-1em\relax}{\inserttocsubsection}\par +} %--%