Skip to content

Commit

Permalink
finish version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbossek committed Aug 19, 2022
1 parent f224317 commit a849701
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 67 deletions.
11 changes: 9 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,12 @@ Version history
===

v1.0.0 [2022/05/04] Finished first version
v1.1.0 [xxxx/xx/xx]

v1.1.0 [2022/08/19] Minor update:
* Slightly adapted padding of slide headers.
* Introduced RWTH-color palettes (primary and secodary): rwth-<color-name>-<intensity>
with color-name in {blue, black, magenta, yellow, petrol, turquoise, green, maygreen, orange,
red, maroon, violet, purple} and intensity in <10, 25, 50, 75, 100>.
* Changed background color of footer to rwth-blue-100 and adapted colors of text in slide footer for better readability
(prior version was barely readable).
* Changed color of titles and frame-titles to rwth-blue-100.
* Got rid of non-RWTH colors.
154 changes: 108 additions & 46 deletions beamercolorthemeAIM.sty
Original file line number Diff line number Diff line change
Expand Up @@ -9,79 +9,141 @@
% DEFINE COLORS
% ===

% TODO: check if there is a document with all the RWTH-color palette definitions
\definecolor{rwthlightblue}{RGB}{143, 185, 223}
\definecolor{rwthdarkblue}{RGB}{0, 84, 159}

% Some colors
% Taken from https://github.com/matze/mtheme/blob/master/source/beamercolorthememetropolis.dtx
\definecolor{mDarkBrown}{HTML}{604c38}
\definecolor{mDarkTeal}{HTML}{23373b}
\definecolor{mLightBrown}{HTML}{EB811B}
\definecolor{mLightGreen}{HTML}{14B03D}
\colorlet{highlight}{blue!50!black!60}
\definecolor{rwth-blue-100}{RGB}{0,84,159}
\definecolor{rwth-blue-75}{RGB}{64,127,183}
\definecolor{rwth-blue-50}{RGB}{142,186,229}
\definecolor{rwth-blue-25}{RGB}{199,221,242}
\definecolor{rwth-blue-10}{RGB}{232,241,250}

% RWTH secondary colors
\definecolor{rwth-black-100}{RGB}{0, 0, 0}
\definecolor{rwth-black-75}{RGB}{100, 101, 103}
\definecolor{rwth-black-50}{RGB}{156, 158, 159}
\definecolor{rwth-black-25}{RGB}{207, 209, 210}
\definecolor{rwth-black-10}{RGB}{236, 237, 237}

\definecolor{rwth-magenta-100}{RGB}{227, 0, 102}
\definecolor{rwth-magenta-75}{RGB}{233, 96, 136}
\definecolor{rwth-magenta-50}{RGB}{241, 158, 177}
\definecolor{rwth-magenta-25}{RGB}{249, 210, 218}
\definecolor{rwth-magenta-10}{RGB}{253, 238, 240}

\definecolor{rwth-yellow-100}{RGB}{255, 237, 0}
\definecolor{rwth-yellow-75}{RGB}{255, 240, 85}
\definecolor{rwth-yellow-50}{RGB}{255, 245, 155}
\definecolor{rwth-yellow-25}{RGB}{255, 250, 209}
\definecolor{rwth-yellow-10}{RGB}{255, 253, 238}

% RWTH additional colors
\definecolor{rwth-petrol-100}{RGB}{0, 97, 101}
\definecolor{rwth-petrol-75}{RGB}{45, 127, 131}
\definecolor{rwth-petrol-50}{RGB}{125, 164, 167}
\definecolor{rwth-petrol-25}{RGB}{191, 208, 209}
\definecolor{rwth-petrol-10}{RGB}{230, 236, 236}

\definecolor{rwth-turquoise-100}{RGB}{0, 152, 161}
\definecolor{rwth-turquoise-75}{RGB}{0, 177, 183}
\definecolor{rwth-turquoise-50}{RGB}{137, 204, 207}
\definecolor{rwth-turquoise-25}{RGB}{202, 231, 231}
\definecolor{rwth-turquoise-10}{RGB}{235, 246, 246}

\definecolor{rwth-green-100}{RGB}{87, 171, 39}
\definecolor{rwth-green-75}{RGB}{141, 192, 96}
\definecolor{rwth-green-50}{RGB}{184, 214, 152}
\definecolor{rwth-green-25}{RGB}{221, 235, 206}
\definecolor{rwth-green-10}{RGB}{242, 247, 236}

\definecolor{rwth-maygreen-100}{RGB}{189, 205, 0}
\definecolor{rwth-maygreen-75}{RGB}{208, 217, 92}
\definecolor{rwth-maygreen-50}{RGB}{224, 230, 154}
\definecolor{rwth-maygreen-25}{RGB}{240, 243, 208}
\definecolor{rwth-maygreen-10}{RGB}{249, 250, 237}

\definecolor{rwth-orange-100}{RGB}{246, 168, 0}
\definecolor{rwth-orange-75}{RGB}{250, 190, 80}
\definecolor{rwth-orange-50}{RGB}{253, 212, 143}
\definecolor{rwth-orange-25}{RGB}{254, 234, 201}
\definecolor{rwth-orange-10}{RGB}{255, 247, 234}

\definecolor{rwth-red-100}{RGB}{204, 7, 30}
\definecolor{rwth-red-75}{RGB}{216, 92, 65}
\definecolor{rwth-red-50}{RGB}{230, 150, 121}
\definecolor{rwth-red-25}{RGB}{243, 205, 187}
\definecolor{rwth-red-10}{RGB}{250, 235, 227}

\definecolor{rwth-maroon-100}{RGB}{161, 16, 53}
\definecolor{rwth-maroon-75}{RGB}{182, 82, 86}
\definecolor{rwth-maroon-50}{RGB}{205, 139, 135}
\definecolor{rwth-maroon-25}{RGB}{229, 197, 192}
\definecolor{rwth-maroon-10}{RGB}{245, 232, 229}

\definecolor{rwth-violet-100}{RGB}{97, 33, 88}
\definecolor{rwth-violet-75}{RGB}{131, 78, 117}
\definecolor{rwth-violet-50}{RGB}{168, 133, 158}
\definecolor{rwth-violet-25}{RGB}{210, 192, 205}
\definecolor{rwth-violet-10}{RGB}{237, 229, 234}

\definecolor{rwth-purple-100}{RGB}{122, 111, 172}
\definecolor{rwth-purple-75}{RGB}{155, 145, 193}
\definecolor{rwth-purple-50}{RGB}{188, 181, 215}
\definecolor{rwth-purple-25}{RGB}{222, 218, 235}
\definecolor{rwth-purple-10}{RGB}{242, 240, 247}

\colorlet{highlight}{rwth-blue-75}

% General color settings
\setbeamercolor{normal text}{fg=mDarkTeal}
\setbeamercolor{title like}{fg=mDarkTeal!80}
\setbeamercolor{normal text}{fg=black!90}
\setbeamercolor{title like}{fg=black!90}

% Color of title page elements
\setbeamercolor{title page}{fg=rwthdarkblue}
\setbeamercolor{title page header}{fg=rwthdarkblue}
\setbeamercolor{title}{fg=rwthdarkblue}
\setbeamercolor{subtitle}{fg=rwthdarkblue}
\setbeamercolor{author}{fg=mDarkTeal}
\setbeamercolor{date}{fg=gray!80}
\setbeamercolor{institute}{fg=mDarkTeal!80}
\setbeamercolor{title page}{fg=rwth-blue-100}
\setbeamercolor{title page header}{fg=rwth-blue-100}
\setbeamercolor{title}{fg=rwth-blue-100}
\setbeamercolor{subtitle}{fg=rwth-blue-100}
\setbeamercolor{author}{fg=rwth-black-75}
\setbeamercolor{date}{fg=rwth-black-50}
\setbeamercolor{institute}{fg=rwth-black-75}

% Highlight
\setbeamercolor{alerted text}{fg=red}

% Boxes
\setbeamercolor{block title}{fg=rwthdarkblue}
\setbeamercolor{block title}{fg=rwth-blue-100}
\setbeamercolor{block body}{bg=}
\setbeamerfont*{block title}{series=\bfseries}
\setbeamercolor{block title alerted}{fg=rwth-red-100}
\setbeamercolor{block title example}{fg=rwth-green-100}

% Table of Contents
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]

\setbeamercolor{section in toc}{fg=mDarkTeal}
\setbeamercolor{subsection in toc}{fg=mDarkTeal!90}
\setbeamercolor{subsubsection in toc}{fg=fg=mDarkTeal!80}
\setbeamercolor{section in toc shaded}{fg=mDarkTeal!70}
\setbeamercolor{subsection in toc shaded}{fg=mDarkTeal!60}
\setbeamercolor{subsubsection in toc shaded}{fg=mDarkTeal!50}

% Lists
\setbeamertemplate{itemize item}[triangle]
\setbeamertemplate{itemize subitem}[triangle]
\setbeamertemplate{itemize subsubitem}[triangle]
\setbeamercolor{itemize item}{fg=rwthdarkblue}
\setbeamercolor{itemize subitem}{fg=rwthdarkblue}
\setbeamercolor{itemize subsubitem}{fg=rwthdarkblue}
\setbeamercolor{itemize item}{fg=rwth-blue-75}
\setbeamercolor{itemize subitem}{fg=rwth-blue-75}
\setbeamercolor{itemize subsubitem}{fg=rwth-blue-75}

% Frames
\setbeamercolor{frametitle}{fg=rwthdarkblue}
\setbeamercolor{framesubtitle}{fg=rwthdarkblue}
\setbeamercolor{frametitle}{fg=rwth-blue-100}
\setbeamercolor{framesubtitle}{fg=rwth-blue-100}

% Footer
\setbeamercolor{footlinecolor}{fg=white,bg=rwth-blue-100}

% Blocks
\setbeamercolor{block title}{fg=rwthdarkblue}
%\setbeamercolor{block body}{fg=}
%\setbeamercolor{block title alerted}{fg=}
%\setbeamercolor{block body alerted}{fg=}
%\setbeamercolor{example text}{fg=}
%\setbeamercolor{block title example}{fg=rwthdarkblue}
%\setbeamercolor{block body example}{fg=}
\setbeamercolor{block title}{fg=rwth-blue-100}

% Colors in bib-entries
% omit those nasty icons!
\setbeamertemplate{bibliography item}{\insertbiblabel}
\setbeamercolor{bibliography item}{fg=mDarkBrown,bg=}
\setbeamercolor{bibliography entry author}{fg=mDarkTeal!80,bg=}
\setbeamercolor{bibliography entry title}{fg=mDarkBrown,bg=}
\setbeamercolor{bibliography entry booktitle}{fg=black,bg=}
\setbeamercolor{bibliography entry location}{fg=black,bg=}
\setbeamercolor{bibliography entry note}{fg=black,bg=}
\setbeamercolor{bibliography item}{fg=rwth-blue-100,bg=}
\setbeamercolor{bibliography entry author}{fg=rwth-black-75,bg=}
\setbeamercolor{bibliography entry title}{fg=rwth-blue-75,bg=}
\setbeamercolor{bibliography entry booktitle}{fg=rwth-black-75,bg=}
\setbeamercolor{bibliography entry location}{fg=rwth-black-75,bg=}
\setbeamercolor{bibliography entry note}{fg=rwth-black-75,bg=}

\mode<all>
21 changes: 8 additions & 13 deletions beamerinnerthemeAIM.sty
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,20 @@
\newcount\progressbar@currentprogress

\setbeamertemplate{footline}{%
% \ifnum \theframenumber=1
% \else
\raisebox{11pt}{
\makebox[\paperwidth]{
\begin{beamercolorbox}[sep=0.8em,wd=\paperwidth,leftskip=0.5cm,rightskip=0.5cm]{footlinecolor}
\ifnum\beamer@AIM@authorinfo=1\relax%
\hskip5mm\color{gray}\scriptsize{\insertshortauthor: \insertshorttitle}
\tiny{\insertshortauthor: \insertshorttitle}
\fi
\ifnum\beamer@AIM@progress=1\relax%
\hfill\makebox[9pt]{
\color{gray}\scriptsize\insertframenumber/\inserttotalframenumber}\hskip7mm
\hfill
\tiny\insertframenumber/\inserttotalframenumber
\fi
\ifnum\beamer@AIM@progress=0\relax%
\hfill\makebox[9pt]{
\color{gray}\scriptsize\insertframenumber}\hskip7mm
\hfill
\tiny\insertframenumber
\fi
}
}
\hspace*{5pt}
% \fi
\end{beamercolorbox}%
}

\makeatother

6 changes: 3 additions & 3 deletions beamerouterthemeAIM.sty
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
%\fill[blue!50!black!60] (0,0) rectangle(\the\paperwidth,1.4cm); %blue!50!black!60
\ifx\insertframesubtitle\@empty
\useasboundingbox (0,0) rectangle(\the\paperwidth,1cm);
\node[anchor=west, rwthdarkblue, font=\large] at (0.55, 0.65){\bfseries{\insertframetitle}};
\node[anchor=west, rwth-blue-100, font=\large] at (0.51, 0.63){\bfseries{\insertframetitle}};
\else
\useasboundingbox (0,0) rectangle(\the\paperwidth,1.4cm);
\node[anchor=west, rwthdarkblue, font=\large] at (0.55, 0.65){\bfseries{\insertframetitle}};
\node[anchor=west, rwthdarkblue, font=\footnotesize] at (0.55, 0.3){\insertframesubtitle};
\node[anchor=west, rwth-blue-100, font=\large] at (0.51, 0.63){\bfseries{\insertframetitle}};
\node[anchor=west, rwth-blue-100, font=\footnotesize] at (0.51, 0.24){\insertframesubtitle};
\fi
\end{tikzpicture}
\end{beamercolorbox}
Expand Down
2 changes: 1 addition & 1 deletion demo.tex
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ \section{Predefined macros}
\end{frame}

% no header, just some centred text
\plainframe{\textcolor{rwthdarkblue}{Plain slide (focus on certain element)}}
\plainframe{\textcolor{rwth-blue-100}{Plain slide (focus on certain element)}}

% set specific background color with an optional argument
\plainframe[black]{\includegraphics[width=0.5\textwidth]{example-image-a}}
Expand Down
4 changes: 2 additions & 2 deletions includes/preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@

% Hyperlinks
\RequirePackage{hyperref}
\hypersetup{colorlinks,linkcolor={rwthlightblue},citecolor={darkgrey},urlcolor={rwthdarkblue}}
\hypersetup{colorlinks,linkcolor={rwth-blue-50},citecolor={rwth-black-75},urlcolor={rwth-blue-100}}
\let\oldciteauthor=\citeauthor
\def\citeauthor#1{\hypersetup{citecolor=darkgrey}\oldciteauthor{#1}}
\def\citeauthor#1{\hypersetup{citecolor=rwth-black-50}\oldciteauthor{#1}}

0 comments on commit a849701

Please sign in to comment.