Skip to content

Commit

Permalink
Beta version.
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradHoeffner committed Nov 22, 2018
1 parent e6a589c commit f6a3010
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 56 deletions.
118 changes: 66 additions & 52 deletions beamerthemeimise2.sty
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% New version of the IMISE beamer theme, does not require Futura anymore.
% Replaced the old one theme in November 2018.
\usetheme{CambridgeUS}
%\usetheme{CambridgeUS}
\usecolortheme{dolphin}
\setbeamertemplate{headline}{}
\usepackage[export]{adjustbox}
Expand All @@ -10,12 +10,19 @@
\usepackage{amssymb}
\usepackage{tikz}

\newlength\leftsidebar
\newlength\rightsidebar
\makeatletter
\setlength\leftsidebar{\beamer@leftsidebar}
\setlength\rightsidebar{\beamer@rightsidebar}
\makeatother

\setbeamertemplate{navigation symbols}{}

%\definecolor{imiseblue}{HTML}{005FB9}
\definecolor{mediblue}{RGB}{0,138,201}
\definecolor{mixblue}{RGB}{0,167,214}
\definecolor{aquamarin}{RGB}{138,194,209}
\definecolor{aquamarine}{RGB}{138,194,209}
\definecolor{lowertriangle}{RGB}{9,65,81}
%\setbeamercolor{footer}{fg=white, bg=imiseblue}
\setbeamercolor{title}{fg=black, bg=white}
Expand All @@ -37,15 +44,37 @@
}
}

\renewcommand\footnoterule{} % we have our own line in all the slides

\newcommand{\triangles}{
% upper triangle
\begin{tikzpicture}[overlay, remember picture]
\tikzset{shift={(current page.south east)}}
\coordinate (s0) at (0,0);
\coordinate (s1) at (0,\paperheight);% for unknown reasons, paperheight isn't enough
\coordinate (s2) at (-0.1\paperwidth,0);
\fill[mediblue] (s0) -- (s1) -- (s2) -- cycle;
\end{tikzpicture}
% lower triangle
\begin{tikzpicture}[overlay, remember picture]
\tikzset{shift={(current page.south east),yshift=0.1cm}}
\coordinate (s0) at (0,0);
\coordinate (s1) at (0,0.35\textheight);
\coordinate (s2) at (-0.35\paperwidth,0);
\fill[fill=lowertriangle,opacity=0.5] (s0) -- (s1) -- (s2) -- (s0);
\end{tikzpicture}
}

\newcommand{\medfak}{
\begin{tikzpicture}[overlay, remember picture]
\node [anchor=north west, inner sep=0pt] at (current page.north west)
{\includegraphics[width=0.45\textwidth]{img/medfak.pdf}};
\end{tikzpicture}
}

\defbeamertemplate*{title page}{customized}[1][]
{
\setbeamertemplate{footline}{}

\begin{tikzpicture}[remember picture,overlay]
\node [anchor=north west, inner sep=0pt] at (current page.north west) % for unknown reasons, the x and y shift is necessary for perfect alignment
{\includegraphics[width=0.4\textwidth]{img/medfak.pdf}};
\end{tikzpicture}
~\\
\vspace{0.25\textheight}
{\usebeamerfont{subtitle}\insertsubtitle\par}
\vspace{0.05\textheight}
Expand All @@ -57,42 +86,36 @@
\vspace{0.05\textheight}
\resizebox{0.2\textwidth}{!}% huger than huge
{\Huge\bfseries \color{mixblue} imise \hspace{-0.3em}\tiny\color{orange}~{$\blacksquare$}}\\
% upper triangle
\begin{tikzpicture}[overlay]
\coordinate (s0) at (\paperwidth,0);
\coordinate (s1) at (\paperwidth,1.315\paperheight);% for unknown reasons, paperheight isn't enough
\coordinate (s2) at (0.9\paperwidth,0);
\filldraw[draw=mediblue, fill=mediblue] (s0) -- (s1) -- (s2) -- (s0);
\end{tikzpicture}
% lower triangle
\begin{tikzpicture}[overlay]
\coordinate (s0) at (\paperwidth,0);
\coordinate (s1) at (\paperwidth,0.35\textheight);
\coordinate (s2) at (0.65\paperwidth,0);
\filldraw[draw=lowertriangle, fill=lowertriangle,opacity=0.5] (s0) -- (s1) -- (s2) -- (s0);
\end{tikzpicture}
\medfak{}
\triangles{}
}

\makeatother
\setbeamertemplate{footline}
{
\vspace{1.5em} % put footnotes higher, unfortunately also

% \vspace{1.5em} % put footnotes higher, unfortunately also
\ifnum\insertframenumber>1%
\vspace{-5em} %ifnum somehow moves it too far below, workaround
\leavevmode%
\begin{center}
\color{aquamarine}\rule{0.9\textwidth}{0.2pt}\\[0.9pt]
\color{lightgray}\rule{0.9\textwidth}{0.2pt}
\end{center}
\hbox{%
\begin{beamercolorbox}[wd=.1\paperwidth,ht=2.9ex,dp=1ex,colsep=0pt,left]{footer}%colsep and extra width to hopefully prevent white vertical lines in between color boxes
{\normalsize imise \hspace{-0.3em}\huge\color{orange}.}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.8\paperwidth,ht=2.9ex,dp=1ex,colsep=0pt,center]{footer}%
\usebeamerfont{title in head/foot}\insertshorttitle---\insertshortauthor---\insertshortdate
\begin{beamercolorbox}[wd=.8\paperwidth,ht=1.9ex,dp=2ex,colsep=0pt,center]{footer}%
Institut für Medizinische Informatik, Statistik und Epidemiologie (IMISE)
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.1\paperwidth,ht=2.9ex,dp=1ex,colsep=0pt,right]{footer}%
\usebeamerfont{title in head/foot}\insertframenumber{} %/ \inserttotalframenumber
\begin{beamercolorbox}[wd=.1\paperwidth,ht=1.9ex,dp=2ex,colsep=0pt,right]{footer}%
\usebeamerfont{title in head/foot}\color{red}\insertframenumber{} %/ \inserttotalframenumber
\hspace*{1ex}
\end{beamercolorbox}
}%
}
\begin{tikzpicture}[overlay, remember picture]
\node [anchor=south west, inner sep=0pt,xshift=0.05\textwidth,yshift=0.01\textheight] at (current page.south west)
{\includegraphics[width=0.08\textwidth]{img/unileipzig-text.pdf}};
\end{tikzpicture}
%
\fi%
}
\makeatletter
Expand All @@ -101,32 +124,23 @@

\AtEndDocument{
\setbeamertemplate{footline}{}
\begin{frame}[plain]{}{}
\large
{\Huge\bfseries VIELEN DANK!\\}
\vspace{0.1\textheight}

\begin{frame}[plain]
\medfak{}
\triangles{}
~\\~\\~\\~\\~\\~\\%vspace destroys the tikz drawing positions
{\Large\bfseries VIELEN DANK!\\~\\}
\textbf{\insertauthor{}}\\
Institut für Medizinische Informatik, Statistik und Epidemiologie (IMISE)\\
~\\
TODO: Address\\
TODO: Telephone number\\
\address{}\\
~\\
T \telephone{}\\
~\\
TODO: EMail Adress\\
\url{\email}\\
\url{www.imise.uni-leipzig.de}

% upper triangle
\begin{tikzpicture}[overlay, remember picture]
\coordinate (s0) at (\paperwidth,0);
\coordinate (s1) at (\paperwidth,1.315\paperheight);% for unknown reasons, paperheight isn't enough
\coordinate (s2) at (0.9\paperwidth,0);
\filldraw[draw=mediblue, fill=mediblue] (s0) -- (s1) -- (s2) -- (s0);
\end{tikzpicture}
% lower triangle
\begin{tikzpicture}[overlay, remember picture]
\coordinate (s0) at (\paperwidth,0);
\coordinate (s1) at (\paperwidth,0.35\textheight);
\coordinate (s2) at (0.65\paperwidth,0);
\filldraw[draw=lowertriangle, fill=lowertriangle,opacity=0.5] (s0) -- (s1) -- (s2) -- (s0);
\end{tikzpicture}

\end{frame}
}

Binary file added img/unileipzig-text.pdf
Binary file not shown.
76 changes: 76 additions & 0 deletions imisetest.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
%\documentclass[aspectratio=43]{beamer}
%\documentclass[aspectratio=169]{beamer}
\documentclass[aspectratio=1610]{beamer}

\usepackage[english]{babel}
%\usepackage[ngerman]{babel} %use this for German presentations
\usepackage{booktabs} % fancy tables
\usepackage{tabulary} % tables with auto column length
\usepackage{hyperref}

\usetheme{imise2}
\author{Konrad Höffner}
\date{Leipzig, November 2018}
\title{IMISE Student \LaTeX{} Beamer Theme Version 2.\\Der Titel kann auch dreizeilig sein,\\muss aber nicht.}
\subtitle{Subtitle. Report issues and suggestions at \url{https://github.com/IMISE/imise-beamertheme/issues}.}

\begin{document}
\begin{frame}
\titlepage
\end{frame}

\begin{frame}
\frametitle{How to use this Template}
\begin{enumerate}
\item Clone or download the complete directory from \url{https://github.com/IMISE/imise-beamertheme}
\item Rename imisetest.tex, modify title, author and date.
\item If you know that your target display has an aspect ratio other than 16:10, uncomment a different line at the top of imisetest.tex.
\item Fill with your presentation.
\item Compile with pdflatex.
\end{enumerate}
\end{frame}

\begin{frame}{Example Slide}
\begin{itemize}
\item this is a bullet point
\item this is a footnote\footnote{footnote text}
\item this is a clickable link: \url{http://www.imise.de}
\end{itemize}
\end{frame}

\begin{frame}{Tables}
\begin{tabulary}{\textwidth}{lL}
\toprule
advice number &advice\\
\midrule
1 &Use the booktabs package to get nice horizontal lines.\\
2 &Never use vertical lines in tables.\\
3 &Use tabulary if your content is so long that it fills the whole width and maybe even needs line breaks.\\
\bottomrule
\end{tabulary}
\end{frame}

\begin{frame}{IMISE Presentation Rules}
\begin{itemize}
\item you can usually choose between English and German
\item don't go over the allotted time
\begin{itemize}
\item practise beforehand to estimate your presentation duration
\item advice: use a stopwatch or have someone signal you when you have 10, 5, 1 minutes left
\end{itemize}
\end{itemize}
\end{frame}


\begin{frame}{IMISE Presentation Rules}
\begin{itemize}
\item you can usually choose between English and German
\item don't go over the allotted time
\begin{itemize}
\item practise beforehand to estimate your presentation duration
\item advice: use a stopwatch or have someone signal you when you have 10, 5, 1 minutes left
\end{itemize}
\end{itemize}
\end{frame}

\end{document}
31 changes: 27 additions & 4 deletions template.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%\documentclass[aspectratio=43]{beamer}
%\documentclass[aspectratio=169]{beamer}
\documentclass[aspectratio=1610]{beamer}
\documentclass[aspectratio=1610,12pt]{beamer}

\usepackage[english]{babel}
%\usepackage[ngerman]{babel} %use this for German presentations
Expand All @@ -11,8 +11,11 @@
\usetheme{imise2}
\author{Konrad Höffner}
\date{Leipzig, November 2018}
\title{IMISE Student \LaTeX{} Beamer Theme Version 2.\\Der Titel kann auch dreizeilig sein,\\muss aber nicht.}
\title{IMISE Student \LaTeX{} Beamer Theme Version 2. The title can use three lines but doesn't have to.}
\subtitle{Subtitle. Report issues and suggestions at \url{https://github.com/IMISE/imise-beamertheme/issues}.}
\def\address{Härtelstraße 16-18, 04107 Leipzig, Raum 227}
\def\email{konrad.hoeffner@imise.uni-leipzig.de}
\def\telephone{+49 341 97 16322}

\begin{document}
\begin{frame}
Expand All @@ -23,7 +26,7 @@
\frametitle{How to use this Template}
\begin{enumerate}
\item Clone or download the complete directory from \url{https://github.com/IMISE/imise-beamertheme}
\item Rename imisetest.tex, modify title, author and date.
\item Rename template.tex, replace title, subtitle, author, date, address, email address and telephone number.
\item If you know that your target display has an aspect ratio other than 16:10, uncomment a different line at the top of imisetest.tex.
\item Fill with your presentation.
\item Compile with pdflatex.
Expand All @@ -33,7 +36,6 @@
\begin{frame}{Example Slide}
\begin{itemize}
\item this is a bullet point
\item this is a footnote\footnote{footnote text}
\item this is a clickable link: \url{http://www.imise.de}
\end{itemize}
\end{frame}
Expand All @@ -50,6 +52,27 @@
\end{tabulary}
\end{frame}

\begin{frame}{Colors}
The following colors can be used for diagrams, tables and emphasis.
You may use shades of the colors in $20 \%$ steps for purposes like diagrams.\\
~\\
\centering
\scalebox{1.5}
{
\begin{tabulary}{\textwidth}{llll}
\toprule
Identifier &Color &Shades &RGB\\
\midrule
mediblue &\Huge\color{mediblue}$\blacksquare$ &\Huge\color{mediblue!80}$\blacksquare$\color{mediblue!60}$\blacksquare$\color{mediblue!40}$\blacksquare$\color{mediblue!20}$\blacksquare$ &$(0,138,201)$\\
mixblue &\Huge\color{mixblue}$\blacksquare$ &\Huge\color{mixblue!80}$\blacksquare$\color{mixblue!60}$\blacksquare$\color{mixblue!40}$\blacksquare$\color{mixblue!20}$\blacksquare$ &$(0,167,214)$\\
aquamarine &\Huge\color{aquamarine}$\blacksquare$ &\Huge\color{aquamarine!80}$\blacksquare$\color{aquamarine!60}$\blacksquare$\color{aquamarine!40}$\blacksquare$\color{aquamarine!20}$\blacksquare$ &$(0,194,209)$\\
black &\Huge\color{black}$\blacksquare$ &\Huge\color{black!80}$\blacksquare$\color{black!60}$\blacksquare$\color{black!40}$\blacksquare$\color{black!20}$\blacksquare$ &$(0,0,0)$\\
\bottomrule
\end{tabulary}
}
\end{frame}


\begin{frame}{IMISE Presentation Rules}
\begin{itemize}
\item you can usually choose between English and German
Expand Down

0 comments on commit f6a3010

Please sign in to comment.