]> git.conrad-schecker.de Git - GU-beamer.git/commitdiff
initial commit
authorConrad Schecker <redacted>
Mon, 16 May 2022 20:22:49 +0000 (22:22 +0200)
committerConrad Schecker <redacted>
Mon, 16 May 2022 20:22:49 +0000 (22:22 +0200)
.gitignore [new file with mode: 0644]
GU-beamer-demo.tex [new file with mode: 0644]
README [new file with mode: 0644]
beamercolorthemeGoethe.sty [new file with mode: 0644]
beamercolorthemePalmengarten.sty [new file with mode: 0644]
beamerthemeBockenheim.sty [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..bf1f619
--- /dev/null
@@ -0,0 +1,10 @@
+*.pdf
+*.aux
+*.bbl
+*.blg
+*.log
+*.out
+*.toc
+*.dvi
+*.nav
+*.snm
diff --git a/GU-beamer-demo.tex b/GU-beamer-demo.tex
new file mode 100644 (file)
index 0000000..85de90c
--- /dev/null
@@ -0,0 +1,110 @@
+\documentclass[aspectratio=43]{beamer}
+
+%%% Packages and Themes %%%
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{amsmath,amsfonts,amssymb,amsthm}
+\usepackage{lmodern}
+
+\usetheme[secheader]{Bockenheim}
+
+%%% Metadata %%%
+\title{Presentation Title}
+\author{Author}
+\date{\today}
+\institute{Goethe University Frankfurt}
+
+%%% Table of Contents at the beginning of every section %%%
+\AtBeginSection[]
+{
+       \begin{frame}
+               \frametitle{Table of Contents}
+               \tableofcontents[currentsection]
+       \end{frame}
+}
+
+
+
+\begin{document}
+
+       %%% Display auto-generated titlepage %%%
+       \frame{\titlepage}
+
+
+       %%% Main Content %%% 
+       \section{Lists}
+
+               \begin{frame}{Lists}
+                       \begin{itemize}
+                               \item First Item
+                               \begin{itemize}
+                                       \item First Nested Item
+                                       \begin{itemize}
+                                               \item Another Nested Item
+                                       \end{itemize}
+                               \end{itemize}
+                               \item Second Item, with an inline \alert{alert}!
+                       \end{itemize}
+                       
+                       \begin{enumerate}
+                               \item First Item
+                               \begin{enumerate}
+                                       \item First Nested Item
+                                       \begin{enumerate}
+                                               \item Another Nested Item
+                                       \end{enumerate}
+                               \end{enumerate}
+                               \item Second Item, with an inline \structure{structure}!
+                       \end{enumerate}
+               \end{frame}
+
+
+
+       \section{Blocks}
+
+       \subsection{Basic Blocks}
+
+               \begin{frame}{Basic Blocks}
+                       \begin{block}{Standard Block}
+                               This is a standard block, with a \structure{structure} element that is highlighted.
+                               Of course, it may also contain an inline \alert{alert}.
+                       \end{block}
+
+                       \begin{alertblock}{Alert Block}
+                               This block presents alert message, even with another \alert{alert} inside, but also a \structure{structure} element.
+                       \end{alertblock}
+
+                       \begin{exampleblock}{Example Block}
+                               This is an example with an inline \alert{alert} and a \structure{structure} element.
+                       \end{exampleblock}
+               \end{frame}
+
+
+       \subsection{Mathematical Blocks}
+
+               \begin{frame}{Mathematical Blocks I}
+                       \begin{definition} 
+                               This is a definition, with an \emph{emphasized} element and a \structure{structure}.
+                       \end{definition}
+                       
+                       \begin{theorem}[Fermat]
+                               This is a theorem, with some math: $a^p \equiv a \mod p$
+                       \end{theorem}
+                       
+                       \begin{proof} 
+                               This is a proof, containing another \alert{alert}.
+                       \end{proof}
+               \end{frame}     
+
+               \begin{frame}{Mathematical Blocks II}
+                       \begin{corollary}
+                               This is a corollary, with a \structure{structure} element.
+                       \end{corollary}
+                       
+                       \begin{example}
+                               This is an example with an inline \alert{alert} and a \structure{structure} element.
+                               It should look exactly like an exampleblock.
+                       \end{example}
+               \end{frame}     
+
+\end{document} 
diff --git a/README b/README
new file mode 100644 (file)
index 0000000..12e5596
--- /dev/null
+++ b/README
@@ -0,0 +1,58 @@
+### GU-Beamer ###
+
+A theme for LaTeX beamer presentations using the official colors from Goethe University Frankfurt.
+
+
+## Quick usage ##
+
+For a quick impression of the looks, just compile the GU-beamer-demo.tex file.
+
+For an existing presentation, just copy all three .sty files into the directory of your presentation.
+Then include \usetheme{Bockenheim} in the preamble (i.e. before \begin{document}).
+
+
+## Advanced information ##
+
+The theme consists of three files:
+- beamercolorthemeGoethe.sty
+- beamercolorthemePalmengarten.sty
+- beamertheme Bockenheim.sty
+
+The first file defines certain Goethe-specific colors, retrieved from our internal website:
+https://www.puk.uni-frankfurt.de/52945514/Farben
+Those color definitions just make those colors easily accessible by some name.
+They may be helpful for completely unrelated things where you want to use the official Goethe colors in LaTeX.
+Additionally, "Goethe" is a standalone beamer color theme that can be used with \usecolortheme{Goethe}.
+It is possible to combine it with other themes like "Boadilla" or "Frankfurt" or many others.
+However, not every other theme is depending on the values defined in "Goethe".
+
+The second file is a so-called "inner color theme".
+They are usually named after flowers, but I could not think of any Frankfurt-specific flower,
+so I opted for "Palmengarten" as name, which at least is somewhat flower-related.
+"Palmengarten" changes the appearance of blocks (e.g. mathematical definitions),
+making use of some secondary colors from the university's color palette.
+
+The theme "Bockenheim" is the Goethe-colored version of the "Boadilla" theme that is pretty common.
+If you do not want to fiddle around too much with the optical aspects of your presentation,
+but want it to appear in Goethe-blue, using this theme might be an easy way.
+If you want to customize your presentation a lot, you might find the "Goethe" color theme file somewhat helpful,
+and the the other two files could be a nice template for your attemps.
+
+I never tested the theme in a real presentation so far, so be aware that there might be practical issues.
+For example, I'm wondering if the contrast of Goethe-blue text on the white background is high enough.
+Maybe some additional tweaks will be necessary.
+
+More information about beamer, themes and stuff can be found in the beamer user guide,
+the very extensive documentation of the beamer package:
+https://ctan.math.washington.edu/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf
+
+
+## Proper installation of the theme ##
+
+Instead of copying the .sty files every time you want to use them,
+you can copy them once into a certain directory (depending on your operating system and LaTeX distribution),
+making them globally accessible for LaTeX.
+More information can be found here:
+https://tex.stackexchange.com/questions/1137/where-do-i-place-my-own-sty-or-cls-files-to-make-them-available-to-all-my-te
+For Linux, placing the .sty files in ~/texmf/tex/latex/local/ should work.
diff --git a/beamercolorthemeGoethe.sty b/beamercolorthemeGoethe.sty
new file mode 100644 (file)
index 0000000..7fd8470
--- /dev/null
@@ -0,0 +1,44 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%                                                                  %%%
+%%% This file contains the RGB codes for the color system used by    %%%
+%%% Goethe University Frankfurt, as they are described in            %%%
+%%% https://www.puk.uni-frankfurt.de/52945514/Farben                 %%%
+%%%                                                                  %%%
+%%% It defines some of those colors for structures and texts in      %%%
+%%% beamer presentations.                                            %%%
+%%%                                                                  %%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+% Primary Color
+\definecolor{Goethe-blue}{RGB}{0,97,143}
+
+% Warm Gray colors
+\definecolor{Goethe-lightgray}{RGB}{248,246,245}
+\definecolor{Goethe-sandgray}{RGB}{228,227,221}
+\definecolor{Goethe-darkgray}{RGB}{77,75,70}
+
+% Secondary Colors
+\definecolor{Goethe-purple}{RGB}{134,0,71}
+\definecolor{Goethe-magenta}{RGB}{173,59,118}
+
+\definecolor{Goethe-emo-red}{RGB}{179,6,44}
+\definecolor{Goethe-orange}{RGB}{201,98,21}
+
+\definecolor{Goethe-mustard-yellow}{RGB}{227,186,15}
+\definecolor{Goethe-sun-yellow}{RGB}{247,217,38}
+
+\definecolor{Goethe-green}{RGB}{115,124,69}
+\definecolor{Goethe-lightgreen}{RGB}{165,171,82}
+
+\definecolor{Goethe-lightblue}{RGB}{72,169,218}
+
+
+% Definition for Beamer
+\mode<presentation>
+
+\setbeamercolor{structure}{fg=Goethe-blue}
+\setbeamercolor{alerted text}{fg=Goethe-emo-red}
+\setbeamercolor{example text}{fg=Goethe-green}
+
+\mode
+<all>
diff --git a/beamercolorthemePalmengarten.sty b/beamercolorthemePalmengarten.sty
new file mode 100644 (file)
index 0000000..34f8cad
--- /dev/null
@@ -0,0 +1,23 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%                                                                  %%%
+%%% This file contains defines an inner color theme with the Goethe  %%%
+%%% colors. It is mainly used by the Bockenheim theme.               %%%
+%%%                                                                  %%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\mode<presentation>
+
+\usecolortheme{Goethe}
+
+\setbeamertemplate{sections/subsections in toc}[circle]
+
+\setbeamercolor{block title}{use=structure, fg=structure.fg, bg=Goethe-sandgray}
+\setbeamercolor{block title alerted}{use=alerted text, fg=alerted text.fg!75!black, bg=Goethe-sandgray!80!alerted text.fg}
+\setbeamercolor{block title example}{use=example text, fg=example text.fg!75!black, bg=Goethe-sandgray!80!example text.fg}
+
+\setbeamercolor{block body}{parent=normal text, bg=Goethe-lightgray}
+\setbeamercolor{block body alerted}{parent=normal text, use=alerted text, bg=Goethe-lightgray!90!alerted text.fg}
+\setbeamercolor{block body example}{parent=normal text, use=example text, bg=Goethe-lightgray!90!example text.fg}
+
+\mode
+<all>
diff --git a/beamerthemeBockenheim.sty b/beamerthemeBockenheim.sty
new file mode 100644 (file)
index 0000000..96736ad
--- /dev/null
@@ -0,0 +1,26 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%                                                                  %%%
+%%% This is a fully-featured beamer theme based on "Boadilla", but   %%%
+%%% with the offical Goethe colors.                                  %%%
+%%%                                                                  %%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\mode<presentation>
+
+\newif\ifbeamer@secheader
+\beamer@secheaderfalse
+
+\DeclareOptionBeamer{secheader}{\beamer@secheadertrue}
+\ProcessOptionsBeamer
+
+\useinnertheme{default}
+\useoutertheme{infolines}
+
+\usecolortheme{Goethe}
+\usecolortheme{Palmengarten}
+\usecolortheme{whale}
+
+\ifbeamer@secheader\else\setbeamertemplate{headline}[default]\fi
+
+\mode
+<all>