From 3c726ffb84201ffe84c00298e832a1a926f3fb9e Mon Sep 17 00:00:00 2001 From: "Julian M. Kunkel" Date: Sat, 2 Jun 2018 11:03:29 +0100 Subject: [PATCH] Template adjusted for compact mode. --- badges/create-badges.py | 2 +- talk/beamerthemeReading.sty | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/badges/create-badges.py b/badges/create-badges.py index 264feda..14a38e6 100755 --- a/badges/create-badges.py +++ b/badges/create-badges.py @@ -33,7 +33,7 @@ for p in data: offset_y += 6 img = doc.subImage(offset_x, offset_y , 9, 6) - img.addImg("../assets/background", 0, 0, 0.5) + img.addImg("../assets/background", 0, 0, 0.7) img.addImg("../assets/reading-logo", 0.1, 0.8, 0.1) img.addKeyVal("Computer Science", 0.37, 0.86, size=0.05, color=(0,0.2,0), font="Helvetica") diff --git a/talk/beamerthemeReading.sty b/talk/beamerthemeReading.sty index e883966..3ecff34 100644 --- a/talk/beamerthemeReading.sty +++ b/talk/beamerthemeReading.sty @@ -5,7 +5,6 @@ %\def\UrlBreaks{\do\/\do-\do.} \usepackage{tikz} \usepackage{textpos} - \usepackage{caption} \usepackage{subfig} \DeclareGraphicsExtensions{.png,.pdf,.jpg,.jpeg} @@ -60,10 +59,19 @@ \begin{textblock*}{100mm}(.88\textwidth,-0.5cm) \includegraphics[width=2cm]{reading-logo} \end{textblock*} + \vspace*{-1.5em} } + \makeatletter +\newcommand{\setlistspacing}[2]{\def\@ld{#1}\expandafter\def\csname +@list\romannumeral\@ld \endcsname{\leftmargin\csname +leftmargin\romannumeral\@ld \endcsname + \topsep #2 + \parsep 0\p@ \@plus\p@ + \itemsep #2}} + % USEFUL definitions for the author onto the title page \newcommand\authorFooter[1]{\renewcommand\insertAuthorFooter{#1}} @@ -86,6 +94,7 @@ \makeatother + \defbeamertemplate*{title page}{customized}[1][] { \hspace*{-2cm} @@ -255,4 +264,12 @@ \newcommand{\HREFColor}[3]{\href{#2}{\color{#1}{#3}}}% \newcommand{\URLColor}[2]{\HREFColor{#1}{#2}{#2}}% +%% Make the slide very compact, typically use with [t] slides +\newcommand{\compact}[0]{ + \setlength{\medskipamount}{0.0pt} + \setlistspacing{1}{0.1ex} + \setlistspacing{2}{0.1ex} + \setlistspacing{3}{0.1ex} +} + \mode