Code

beamertokkee: Add \titlebox{} command.
authorSebastian Harl <sh@tokkee.org>
Tue, 31 May 2016 05:24:42 +0000 (07:24 +0200)
committerSebastian Harl <sh@tokkee.org>
Sat, 4 Jun 2016 10:19:59 +0000 (12:19 +0200)
beamertokkee.sty
example.tex

index 93235e9fae83551e6c29a3b2eab160f2251591b9..ca7072e44f31071b9cdc56366214ffde20488e5a 100644 (file)
@@ -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
 
index fda75ea1d8ad71e674c26d1988d119ce6b00082d..fef796d4f9b8848bba2bea4d3377c4c285c319d1 100644 (file)
@@ -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}