From 2c51b81fb0d1018d63cf0c6d6895798ca970b34a Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Tue, 31 May 2016 07:24:42 +0200 Subject: [PATCH] beamertokkee: Add \titlebox{} command. --- beamertokkee.sty | 19 ++++++++++++++++++- example.tex | 12 +++++++++++- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/beamertokkee.sty b/beamertokkee.sty index 93235e9..ca7072e 100644 --- a/beamertokkee.sty +++ b/beamertokkee.sty @@ -7,7 +7,24 @@ \def\insertcopyrightinfo{#2}% \def\beamer@shortcopyrightinfo{#1}% } -\copyrightinfo{\copyright{} \the\year{} Sebastian tokkee Harl, All rights reserved.} +% Default: +\copyrightinfo{\copyright{} \the\year{} Sebastian `tokkee' Harl, All rights reserved.} + +\RequirePackage{tikz} + +\usetikzlibrary{shadows} + +\newcommand\titlebox[1]{% + \begin{tikzpicture}% + \usebeamercolor[bg]{title}% + \usebeamerfont{title}% + \usebeamercolor[fg]{title}% + \draw[thick,draw=gray] (0,0)% + node [fill=tokkeelightgray,draw,drop shadow,% + rounded corners,inner sep=10pt,align=center]% + {#1};% + \end{tikzpicture}% +} \endinput diff --git a/example.tex b/example.tex index fda75ea..fef796d 100644 --- a/example.tex +++ b/example.tex @@ -8,7 +8,17 @@ \date{\today} \institute{tokkee.net} \author{Sebastian Harl\\ $<$sh@tokkee.org$>$} -\copyrightinfo{\copyright{} 2013 Sebastian 'tokkee' Harl, All rights reserved.} +\copyrightinfo{\copyright{} 2013 Sebastian `tokkee' Harl, All rights reserved.} + +\AtBeginSection[] +{ + \begin{frame} + \begin{center} + \Large + \titlebox{\secname} + \end{center} + \end{frame} +} \begin{document} \frame[plain]{\titlepage} -- 2.30.2