# HG changeset patch # User Markus Kaiser # Date 1414275190 -7200 # Node ID 63506cf143bcab388255532d595ce54d4ac15d60 # Parent 593646061140d496673d93b2bd17f567b17be505 add kth theme diff -r 593646061140 -r 63506cf143bc theme/kth_beamer/beamerthemeKTH.sty --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/theme/kth_beamer/beamerthemeKTH.sty Sun Oct 26 00:13:10 2014 +0200 @@ -0,0 +1,56 @@ +\ProvidesPackage{beamerthemeKTH} + +\xdefinecolor{kthblue} {RGB}{ 0,108,184} +\xdefinecolor{tumblue} {RGB}{ 0,101,189} +\xdefinecolor{tumgreen} {RGB}{162,173, 0} +\xdefinecolor{tumred} {RGB}{229, 52, 24} +\xdefinecolor{tumivory} {RGB}{218,215,203} +\xdefinecolor{tumorange} {RGB}{227,114, 34} +\xdefinecolor{tumlightblue}{RGB}{152,198,234} + +%% shadow, font, color, outer, inner +%% normal text, alerted text, example text, structure + +\useoutertheme{split} + +\setbeamercolor{normal text}{fg=black,bg=white} +\setbeamercolor{alerted text}{fg=tumred,bg=white} +\setbeamercolor{example text}{fg=tumgreen,bg=white} +\setbeamercolor{structure}{fg=kthblue,bg=white} +\setbeamercolor{titlelike}{fg=kthblue} +\setbeamercolor{subtitle}{fg=black} +\setbeamerfont{title}{series=\bfseries} + +\setbeamertemplate{sections/subsections in toc}[square] +\setbeamertemplate{items}[square] +\setbeamertemplate{navigation symbols}[only frame symbol] + +\setbeamertemplate{blocks}[default] + +\setbeamercolor{block title} {use=normal text, fg=black,bg=tumlightblue} +\setbeamercolor{block title alerted}{use=alerted text,fg=white,bg=alerted text.fg} +\setbeamercolor{block title example}{use=example text,fg=white,bg=example text.fg} + +\setbeamercolor{block body} {parent=normal text,use=block title, bg=block title.bg!25!bg} +\setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title.bg!25!bg} +\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg!15!bg} + +\pgfdeclareimage[height=5mm]{uni}{kth_cmyk} +\logo{\pgfuseimage{uni}} + +\defbeamertemplate*{footline}{infolines theme}{% + \hspace*{2ex}\raisebox{1.5ex}[-1.5ex]{% + \tiny\insertframenumber{}/\inserttotalframenumber \hspace{5mm} \insertnavigation{0.8\paperwidth}}% +} + +\setbeamertemplate{frametitle}{ + \begin{beamercolorbox}[wd=\textwidth,leftskip=0mm]{frametitle} + \usebeamerfont*{frametitle} + \insertframetitle\hfill\parbox{10mm}{\vspace{-1.5mm}\insertlogo} + \end{beamercolorbox} + \vspace{-2.5mm}\textcolor{kthblue}{\noindent\rule{\textwidth}{0.4px}} +} + +\setbeamertemplate{sidebar right}{}%{\vfill\vskip2pt\llap{\usebeamertemplate***{navigation symbols}\hskip1mm}\vskip2pt} +\setbeamertemplate{headline}{} +\setbeamercovered{transparent} diff -r 593646061140 -r 63506cf143bc theme/kth_beamer/example.tex --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/theme/kth_beamer/example.tex Sun Oct 26 00:13:10 2014 +0200 @@ -0,0 +1,103 @@ +\input{preamble.tex} + +\title{Minimal Presentation} +\subtitle{Fancy Latex} +\author{\href{mailto:markus.kaiser@in.tum.de}{Markus Kaiser}} + +\begin{document} + +\begin{frame} + \titlepage +\end{frame} + +\begin{frame} + \frametitle{Listings} + + \begin{itemize} + \item Stuff can be itemized + \item Even recursively + \begin{itemize} + \item All the way + \item down + \begin{itemize} + \item down + \end{itemize} + \end{itemize} + \end{itemize} + + \vfill + + \begin{enumerate}[(a)] + \item Or enumerated + \item With different numerals + \item Which can be changed in the argument + \end{enumerate} + + \vfill + + \begin{description}[For proper spacing] + \item[Words] Can be explained + \item[For proper spacing] beamer provides an optional argument to description + \end{description} +\end{frame} + +\begin{frame} + \frametitle{Blocks} + + \begin{definition}[Blockification] + \structure{Blockification} describes the process of putting words in pretty boxes. For \alert{Blockification} to work nicely, one has to observe the following relation between $\tau$, the complete area of the slide and $\mathfrak{B}$, the blockificated content. + \begin{align} + \tau^\mathfrak{B} = \frac{\pi}{\sqrt{3}} &\neq 5\\ + \intertext{and} + 1 &\defeq 1 + \end{align} + \end{definition} + + \vfill + + \begin{example}[Block of different colors] + This is a block of different color and semantic. + \end{example} +\end{frame} + +\begin{frame}[c] + \frametitle{Columns} + + \begin{block}{Statement} + Graphs are cool. + \end{block} + + \vfill + + \begin{columns}[c] + \begin{column}{.4\textwidth} + \begin{itemize} + \item One can organize things next to each other. + \item Using columns + \item There are some tricky details concearning alignment + \item You might want to \alert{read the manual}! + \item Which you should use anyway. + \end{itemize} + \end{column} + \begin{column}{.6\textwidth} + \centering + \begin{tikzpicture} + \tikzstyle{vertex} = [circle,thick,draw,fill=tumblue!10] + \tikzstyle{edge} = [draw, thick, -] + + \draw + (0, 0) + +(0, 0) node[vertex] (va) {} + +(1, 0) node[vertex] (vb) {} + +(0, 1) node[vertex] (vc) {} + +(1, 1) node[vertex] (vd) {} + +(0.5, -0.5) node {$K_4$}; + + \draw[edge] + (va) -- (vb) -- (vc) -- (vd) -- (va) -- (vc) (vb) -- (vd); + \end{tikzpicture} + \end{column} + \end{columns} +\end{frame} + +\end{document} diff -r 593646061140 -r 63506cf143bc theme/kth_beamer/kth_cmyk.pdf Binary file theme/kth_beamer/kth_cmyk.pdf has changed diff -r 593646061140 -r 63506cf143bc theme/kth_beamer/preamble.tex --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/theme/kth_beamer/preamble.tex Sun Oct 26 00:13:10 2014 +0200 @@ -0,0 +1,77 @@ +\documentclass[compress, 9pt, german, t]{beamer} + +%%%%%%%%%%%%%% +% Language % +%%%%%%%%%%%%%% +\usepackage[english]{babel} +\uselanguage{English} +\languagepath{English} + +%%%%%%%%%%% +% Fonts % +%%%%%%%%%%% +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} + +% You might want to change this +% See http://www.tug.dk/FontCatalogue +\usepackage{arev} +\usepackage{mathpazo} +\usepackage{microtype} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Used by beamer or theme % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage{url} +\usepackage{listings} +\usepackage{xcolor} + +%%%%%%%%%% +% Tikz % +%%%%%%%%%% +\usepackage{tikz} +\usepackage{pgfplots} +\pgfplotsset{compat=1.8} + +%%%%%%%%%%%%%% +% Mathmode % +%%%%%%%%%%%%%% +\usepackage{amsmath} +\usepackage{mathdots} +\usepackage{mathtools} +\mathtoolsset{showonlyrefs,showmanualtags} +\usepackage{mathrsfs} +\usepackage{csquotes} + +%%%%%%%%%%%%%%%%%% +% Beamer Theme % +%%%%%%%%%%%%%%%%%% +\usepackage{beamerthemeKTH} +\setbeamercovered{transparent} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Some useful(?) commands % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\newcommand{\N}{\mathbb{N}} +\newcommand{\Z}{\mathbb{Z}} +\newcommand{\Q}{\mathbb{Q}} +\newcommand{\R}{\mathbb{R}} +\newcommand{\C}{\mathbb{C}} +\newcommand{\Prob}{\mathrm{P}} +\newcommand{\Oh}{\mathcal{O}} + +\newcommand{\true}{\mathrm{true}} +\newcommand{\false}{\mathrm{false}} + +\newcommand{\abs}[1]{\left\vert #1 \right\vert} +\newcommand{\powerset}[1]{\mathcal{P}\left( #1 \right)} +\newcommand{\setnot}[1]{\overline{#1}} +\newcommand{\setsymdiff}{\,\triangle\,} +\newcommand{\alg}[1]{\left\langle #1 \right\rangle} +\DeclareMathOperator{\ind}{ind} +\DeclareMathOperator{\ord}{ord} +\DeclareMathOperator{\ggt}{ggT} + +\newcommand{\rel}[1]{\,\mathrm{#1}\,} + +\newcommand{\defeq}{\coloneqq} %Mathtools already defines this