From: Sebastian Harl Date: Tue, 31 May 2016 05:24:42 +0000 (+0200) Subject: beamertokkee: Add \titlebox{} command. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2c51b81fb0d1018d63cf0c6d6895798ca970b34a;p=tokkeebeamer.git beamertokkee: Add \titlebox{} command. --- 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}