diff --git a/examples/build-example.xml b/examples/2008/build-example.xml similarity index 100% rename from examples/build-example.xml rename to examples/2008/build-example.xml diff --git a/examples/build.properties b/examples/2008/build.properties similarity index 66% rename from examples/build.properties rename to examples/2008/build.properties index d4ca6c5..ab2d764 100644 --- a/examples/build.properties +++ b/examples/2008/build.properties @@ -1,4 +1,4 @@ -latextaskjar=../latextask/LatexTask.jar -themedir=../theme/ +latextaskjar=../../latextask/LatexTask.jar +themedir=../../theme/ themefiles=beamercolorthemetue2008plain.sty,beamerfontthemetue2008plain.sty,beamerouterthemetue2008plain.sty,beamerthemetue2008.sty,tuestyle2008.sty,logos/tuelogo.pdf -themefiledirs=logos \ No newline at end of file +themefiledirs=logos diff --git a/examples/build.xml b/examples/2008/build.xml similarity index 97% rename from examples/build.xml rename to examples/2008/build.xml index 34a091b..7040964 100644 --- a/examples/build.xml +++ b/examples/2008/build.xml @@ -7,7 +7,7 @@ - + diff --git a/examples/custom-theme/build.xml b/examples/2008/custom-theme/build.xml similarity index 100% rename from examples/custom-theme/build.xml rename to examples/2008/custom-theme/build.xml diff --git a/examples/custom-theme/custom-theme.tex b/examples/2008/custom-theme/custom-theme.tex similarity index 100% rename from examples/custom-theme/custom-theme.tex rename to examples/2008/custom-theme/custom-theme.tex diff --git a/examples/hello-world-yellow/build.xml b/examples/2008/hello-world-yellow/build.xml similarity index 100% rename from examples/hello-world-yellow/build.xml rename to examples/2008/hello-world-yellow/build.xml diff --git a/examples/hello-world-yellow/hello-world-yellow.tex b/examples/2008/hello-world-yellow/hello-world-yellow.tex similarity index 100% rename from examples/hello-world-yellow/hello-world-yellow.tex rename to examples/2008/hello-world-yellow/hello-world-yellow.tex diff --git a/examples/hello-world/build.xml b/examples/2008/hello-world/build.xml similarity index 100% rename from examples/hello-world/build.xml rename to examples/2008/hello-world/build.xml diff --git a/examples/hello-world/hello-world.tex b/examples/2008/hello-world/hello-world.tex similarity index 100% rename from examples/hello-world/hello-world.tex rename to examples/2008/hello-world/hello-world.tex diff --git a/examples/official/build.xml b/examples/2008/official/build.xml similarity index 100% rename from examples/official/build.xml rename to examples/2008/official/build.xml diff --git a/examples/official/official.tex b/examples/2008/official/official.tex similarity index 100% rename from examples/official/official.tex rename to examples/2008/official/official.tex diff --git a/examples/quote-environment/build.xml b/examples/2008/quote-environment/build.xml similarity index 100% rename from examples/quote-environment/build.xml rename to examples/2008/quote-environment/build.xml diff --git a/examples/quote-environment/quote-environment.tex b/examples/2008/quote-environment/quote-environment.tex similarity index 100% rename from examples/quote-environment/quote-environment.tex rename to examples/2008/quote-environment/quote-environment.tex diff --git a/examples/title-frame-bg-image/build.xml b/examples/2008/title-frame-bg-image/build.xml similarity index 100% rename from examples/title-frame-bg-image/build.xml rename to examples/2008/title-frame-bg-image/build.xml diff --git a/examples/title-frame-bg-image/imgs/MetaForum.jpg b/examples/2008/title-frame-bg-image/imgs/MetaForum.jpg similarity index 100% rename from examples/title-frame-bg-image/imgs/MetaForum.jpg rename to examples/2008/title-frame-bg-image/imgs/MetaForum.jpg diff --git a/examples/title-frame-bg-image/title-frame-bg-image.tex b/examples/2008/title-frame-bg-image/title-frame-bg-image.tex similarity index 100% rename from examples/title-frame-bg-image/title-frame-bg-image.tex rename to examples/2008/title-frame-bg-image/title-frame-bg-image.tex diff --git a/examples/title-frame-ignore-number/build.xml b/examples/2008/title-frame-ignore-number/build.xml similarity index 100% rename from examples/title-frame-ignore-number/build.xml rename to examples/2008/title-frame-ignore-number/build.xml diff --git a/examples/title-frame-ignore-number/title-frame-ignore-number.tex b/examples/2008/title-frame-ignore-number/title-frame-ignore-number.tex similarity index 100% rename from examples/title-frame-ignore-number/title-frame-ignore-number.tex rename to examples/2008/title-frame-ignore-number/title-frame-ignore-number.tex diff --git a/examples/title-frame-innovation/build.xml b/examples/2008/title-frame-innovation/build.xml similarity index 100% rename from examples/title-frame-innovation/build.xml rename to examples/2008/title-frame-innovation/build.xml diff --git a/examples/title-frame-innovation/title-frame-innovation.tex b/examples/2008/title-frame-innovation/title-frame-innovation.tex similarity index 100% rename from examples/title-frame-innovation/title-frame-innovation.tex rename to examples/2008/title-frame-innovation/title-frame-innovation.tex diff --git a/examples/title-frame/build.xml b/examples/2008/title-frame/build.xml similarity index 100% rename from examples/title-frame/build.xml rename to examples/2008/title-frame/build.xml diff --git a/examples/title-frame/title-frame.tex b/examples/2008/title-frame/title-frame.tex similarity index 100% rename from examples/title-frame/title-frame.tex rename to examples/2008/title-frame/title-frame.tex diff --git a/examples/2015/build-example.xml b/examples/2015/build-example.xml new file mode 100644 index 0000000..f78d64e --- /dev/null +++ b/examples/2015/build-example.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/2015/build.properties b/examples/2015/build.properties new file mode 100644 index 0000000..ee8ea8b --- /dev/null +++ b/examples/2015/build.properties @@ -0,0 +1,4 @@ +latextaskjar=../../latextask/LatexTask.jar +themedir=../../theme/ +themefiles=beamercolorthemetue2015plain.sty,beamerfontthemetue2015plain.sty,beamerouterthemetue2015plain.sty,beamerthemetue2015.sty,tuestyle2015.sty,logos/tuelogo.pdf +themefiledirs=logos diff --git a/examples/2015/build.xml b/examples/2015/build.xml new file mode 100644 index 0000000..4b3d688 --- /dev/null +++ b/examples/2015/build.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/2015/custom-theme/build.xml b/examples/2015/custom-theme/build.xml new file mode 100644 index 0000000..c90b078 --- /dev/null +++ b/examples/2015/custom-theme/build.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/examples/2015/custom-theme/custom-theme.tex b/examples/2015/custom-theme/custom-theme.tex new file mode 100644 index 0000000..5f31928 --- /dev/null +++ b/examples/2015/custom-theme/custom-theme.tex @@ -0,0 +1,33 @@ +\documentclass[12pt, aspectratio=169]{beamer} % aspectratio = either 43 or 169 + +% here we use a different theme color, there are many to choose from +% refer to the README file for a list of options +\usetheme[department=winuk,theme=\#00892C]{tue2015} +\mode + +% title and author +\title{Custom theme} +\author{Thom Castermans} + +% document +\begin{document} + +\begin{titleframe} +\end{titleframe} + +\begin{frame}{Hello strangely coloured world!} + \begin{itemize} + \item This is a simple presentation using the TU/e Beamer theme + \item It should use the correct font automatically, or issue a warning + \item The title bar should have a custom, greenish colour + \begin{itemize} + \item Note that doing this is \emph{not} recommended! + \item The TU/e has a style guide with colours, that are predefined in this Beamer + + theme, you should really use those, \alert{seriously} + \item But if you really, really, really, want to... you can do this + \end{itemize} + \end{itemize} +\end{frame} + +\end{document} diff --git a/examples/2015/hello-world-yellow/build.xml b/examples/2015/hello-world-yellow/build.xml new file mode 100644 index 0000000..5c6fe01 --- /dev/null +++ b/examples/2015/hello-world-yellow/build.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/examples/2015/hello-world-yellow/hello-world-yellow.tex b/examples/2015/hello-world-yellow/hello-world-yellow.tex new file mode 100644 index 0000000..e1eb84c --- /dev/null +++ b/examples/2015/hello-world-yellow/hello-world-yellow.tex @@ -0,0 +1,30 @@ +\documentclass[12pt, aspectratio=169]{beamer} % aspectratio = either 43 or 169 + +% here we use a different theme color, there are many to choose from +% refer to the README file for a list of options +\usetheme[department=winuk,theme=yellow]{tue2015} +\mode + +% title and author +\title{Hello world!} +\author{Thom Castermans} + +% document +\begin{document} + +\begin{titleframe} +\end{titleframe} + +\begin{frame}{Hello world!} + \begin{itemize} + \item This is a simple presentation using the TU/e Beamer theme + \item It should use the correct font automatically, or issue a warning + \item The title bar should be yellow and have black text + \item The department (at the bottom left) should be + + ``mathematics and computer science'' + \item At the bottom right, the TU/e logo should be shown + \end{itemize} +\end{frame} + +\end{document} diff --git a/examples/2015/hello-world/build.xml b/examples/2015/hello-world/build.xml new file mode 100644 index 0000000..8787ced --- /dev/null +++ b/examples/2015/hello-world/build.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/examples/2015/hello-world/hello-world.tex b/examples/2015/hello-world/hello-world.tex new file mode 100644 index 0000000..52e74a0 --- /dev/null +++ b/examples/2015/hello-world/hello-world.tex @@ -0,0 +1,23 @@ +\documentclass[12pt, aspectratio=169]{beamer} % aspectratio = either 43 or 169 + +% colors (theme=...): red (default), blue, cyan, orange, green +\usetheme[department=winuk,theme=cyan]{tue2015} +\mode + +% title and author +\title{Hello world!} +\author{Thom Castermans} + +% document +\begin{document} + +\begin{frame}{Hello world!} + \begin{itemize} + \item This is a simple presentation using the 2015 style of the TU/e Beamer theme + \item It should use the correct font automatically, or issue a warning + \item At the top, the TU/e logo should be shown + \item At the bottom, the page number should be shown + \end{itemize} +\end{frame} + +\end{document} diff --git a/examples/2015/quote-environment/build.xml b/examples/2015/quote-environment/build.xml new file mode 100644 index 0000000..788a1c8 --- /dev/null +++ b/examples/2015/quote-environment/build.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/examples/2015/quote-environment/quote-environment.tex b/examples/2015/quote-environment/quote-environment.tex new file mode 100644 index 0000000..09f68ed --- /dev/null +++ b/examples/2015/quote-environment/quote-environment.tex @@ -0,0 +1,28 @@ +\documentclass[12pt, aspectratio=169]{beamer} % aspectratio = either 43 or 169 + +% colors (theme=...): red (default), blue, cyan, orange, green +\usetheme[department=winuk,theme=cyan]{tue2015} +\mode + +% the default is 60, make the size of the quotes slightly smaller +\renewcommand{\quotesize}{40} + +% title and author +\title{Quote environment} +\author{Thom Castermans} + +% document +\begin{document} + +\begin{frame}{Hello world! This is a quote} + \begin{itemize} + \item This is a simple presentation using the TU/e Beamer theme + \item Edsger Dijkstra was once quoted as saying + + \begin{quote}{Edsger Dijkstra (possibly)}[famous Dutch computer scientist] + Two or more? Use a for. + \end{quote} + \end{itemize} +\end{frame} + +\end{document} diff --git a/examples/2015/title-frame-bg-image/build.xml b/examples/2015/title-frame-bg-image/build.xml new file mode 100644 index 0000000..a0b7764 --- /dev/null +++ b/examples/2015/title-frame-bg-image/build.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/examples/2015/title-frame-bg-image/imgs/MetaForum.jpg b/examples/2015/title-frame-bg-image/imgs/MetaForum.jpg new file mode 100644 index 0000000..ee926f5 Binary files /dev/null and b/examples/2015/title-frame-bg-image/imgs/MetaForum.jpg differ diff --git a/examples/2015/title-frame-bg-image/title-frame-bg-image.tex b/examples/2015/title-frame-bg-image/title-frame-bg-image.tex new file mode 100644 index 0000000..9e69e17 --- /dev/null +++ b/examples/2015/title-frame-bg-image/title-frame-bg-image.tex @@ -0,0 +1,28 @@ +\documentclass[12pt, aspectratio=169]{beamer} % aspectratio = either 43 or 169 + +\graphicspath{{imgs/}} + +% colors (theme=...): red (default), blue, cyan, orange, green +\usetheme[department=winuk,theme=cyan,titlebgimage=MetaForum.jpg]{tue2015} +\mode + +% title and author +\title{Some interesting title on a background} +\author{Thom Castermans} + +% document +\begin{document} + +\begin{titleframe} +\end{titleframe} + +\begin{frame}{First slide} + \begin{itemize} + \item This is a simple presentation using the TU/e Beamer theme + \item It should look like the \textit{hello-world} example + \item The first slide should be a title frame however + \item The title slide should have a render of MetaForum on the background + \end{itemize} +\end{frame} + +\end{document} diff --git a/examples/2015/title-frame-innovation/build.xml b/examples/2015/title-frame-innovation/build.xml new file mode 100644 index 0000000..f321387 --- /dev/null +++ b/examples/2015/title-frame-innovation/build.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/examples/2015/title-frame-innovation/title-frame-innovation.tex b/examples/2015/title-frame-innovation/title-frame-innovation.tex new file mode 100644 index 0000000..b3e3b11 --- /dev/null +++ b/examples/2015/title-frame-innovation/title-frame-innovation.tex @@ -0,0 +1,26 @@ +\documentclass[12pt, aspectratio=169]{beamer} % aspectratio = either 43 or 169 + +% colors (theme=...): red (default), blue, cyan, orange, green +\usetheme[department=winuk,theme=cyan,innovation=true]{tue2015} +\mode + +% title and author +\title{Some interesting title} +\author{Thom Castermans} + +% document +\begin{document} + +\begin{titleframe} +\end{titleframe} + +\begin{frame}{First slide} + \begin{itemize} + \item This is a simple presentation using the TU/e Beamer theme + \item It should look like the \textit{hello-world} example + \item The first slide should be a title frame however + \item There should also be a slogan on the title frame + \end{itemize} +\end{frame} + +\end{document} diff --git a/examples/2015/title-frame/build.xml b/examples/2015/title-frame/build.xml new file mode 100644 index 0000000..70f4a62 --- /dev/null +++ b/examples/2015/title-frame/build.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/examples/2015/title-frame/title-frame.tex b/examples/2015/title-frame/title-frame.tex new file mode 100644 index 0000000..abd6956 --- /dev/null +++ b/examples/2015/title-frame/title-frame.tex @@ -0,0 +1,25 @@ +\documentclass[12pt, aspectratio=169]{beamer} % aspectratio = either 43 or 169 + +% colors (theme=...): red (default), blue, cyan, orange, green +\usetheme[department=winuk,theme=cyan]{tue2015} +\mode + +% title and author +\title{Some interesting title} +\author{Thom Castermans} + +% document +\begin{document} + +\begin{titleframe} +\end{titleframe} + +\begin{frame}{First slide} + \begin{itemize} + \item This is a simple presentation using the TU/e Beamer theme + \item It should look like the \textit{hello-world} example + \item The first slide should be a title frame however + \end{itemize} +\end{frame} + +\end{document} diff --git a/theme/beamercolorthemetue2015plain.sty b/theme/beamercolorthemetue2015plain.sty new file mode 100644 index 0000000..c8fdbfb --- /dev/null +++ b/theme/beamercolorthemetue2015plain.sty @@ -0,0 +1,77 @@ +\mode + +\RequirePackage{tuestyle2015} +\definecolor{themecolor}{HTML}{F73131} % default is PMS Warm Red +\definecolor{themetextcolor}{HTML}{FFFFFF} + +% -- http://tex.stackexchange.com/a/100213/23145 +% this is found in latex.ltx: +% \def\@car#1#2\@nil{#1} +\def\iffirsttoken#1#2{% + % define \@first@token to be the once expanded \@car of the first argument + % i.e. the first token or balanced group: + \expandafter\def\expandafter\@first@token\expandafter{\@car#1\@nil}% + % test if the expansion of \@first@token is the same as #2: + \expandafter\ifx\@first@token#2\relax + \expandafter\@firstoftwo + \else + \expandafter\@secondoftwo + \fi +} +% -- http://tex.stackexchange.com/a/100220/23145 +% strip starting \# from string +\newcommand\strippound[1]{\expandafter\ifx\expandafter\##1\else#1\fi} + +\DeclareOptionBeamer{theme}[red]{% +% PMS Warm Red +\ifthenelse{\equal{#1}{red}}{ \definecolor{themecolor}{HTML}{F73131}}{} +\ifthenelse{\equal{#1}{pms-warm-red}}{ \definecolor{themecolor}{HTML}{F73131}}{} +% PMS Process Cyan +\ifthenelse{\equal{#1}{cyan}}{ \definecolor{themecolor}{HTML}{00A2DE}}{} +\ifthenelse{\equal{#1}{pms-process-cyan}}{ \definecolor{themecolor}{HTML}{00A2DE}}{} +% PMS 300 +\ifthenelse{\equal{#1}{blue}}{ \definecolor{themecolor}{HTML}{0066CC}}{} +\ifthenelse{\equal{#1}{pms-300}}{ \definecolor{themecolor}{HTML}{0066CC}}{} +% PMS 375 +\ifthenelse{\equal{#1}{green}}{ \definecolor{themecolor}{HTML}{84D200}}{} +\ifthenelse{\equal{#1}{pms-375}}{ \definecolor{themecolor}{HTML}{84D200}}{} +% PMS 137 +\ifthenelse{\equal{#1}{orange}}{ \definecolor{themecolor}{HTML}{FF9A00}}{} +\ifthenelse{\equal{#1}{pms-137}}{ \definecolor{themecolor}{HTML}{FF9A00}}{} +% PMS 206 +\ifthenelse{\equal{#1}{darkred}}{ \definecolor{themecolor}{HTML}{D6004A}}{} +\ifthenelse{\equal{#1}{pms-206}}{ \definecolor{themecolor}{HTML}{D6004A}}{} +% PMS 226 +\ifthenelse{\equal{#1}{darkpink}}{ \definecolor{themecolor}{HTML}{D6007B}}{} +\ifthenelse{\equal{#1}{pms-226}}{ \definecolor{themecolor}{HTML}{D6007B}}{} +% PMS 253 +\ifthenelse{\equal{#1}{purple}}{ \definecolor{themecolor}{HTML}{AD20AD}}{} +\ifthenelse{\equal{#1}{pms-253}}{ \definecolor{themecolor}{HTML}{AD20AD}}{} +% PMS 2748 +\ifthenelse{\equal{#1}{darkblue}}{ \definecolor{themecolor}{HTML}{101073}}{} +\ifthenelse{\equal{#1}{pms-2748}}{ \definecolor{themecolor}{HTML}{101073}}{} +% PMS Yellow 012 +\ifthenelse{\equal{#1}{yellow}}{ \definecolor{themecolor}{HTML}{FFDD00} \definecolor{themetextcolor}{HTML}{000000}}{} +\ifthenelse{\equal{#1}{pms-yellow-012}}{ \definecolor{themecolor}{HTML}{FFDD00} \definecolor{themetextcolor}{HTML}{000000}}{} +% PMS 396 +\ifthenelse{\equal{#1}{lime}}{ \definecolor{themecolor}{HTML}{CEDF00}}{} +\ifthenelse{\equal{#1}{pms-396}}{ \definecolor{themecolor}{HTML}{CEDF00}}{} +% PMS Green +\ifthenelse{\equal{#1}{aqua}}{ \definecolor{themecolor}{HTML}{00AC82}}{} +\ifthenelse{\equal{#1}{pms-green}}{ \definecolor{themecolor}{HTML}{00AC82}}{} +% PMS 3135 +\ifthenelse{\equal{#1}{marine}}{ \definecolor{themecolor}{HTML}{0092B5}}{} +\ifthenelse{\equal{#1}{pms-3135}}{ \definecolor{themecolor}{HTML}{0092B5}}{} +% PMS White +\ifthenelse{\equal{#1}{white}}{ \definecolor{themecolor}{HTML}{FFFFFF} \definecolor{themetextcolor}{HTML}{000000}}{} +\ifthenelse{\equal{#1}{pms-white}}{ \definecolor{themecolor}{HTML}{FFFFFF} \definecolor{themetextcolor}{HTML}{000000}}{} +% Custom? +\iffirsttoken{#1}{\#}{ \definecolor{themecolor}{HTML}{\strippound{#1}}}{} +} +\ProcessOptionsBeamer + + +\mode + +\setbeamercolor{structure}{fg=themecolor} +\setbeamercolor{alerted text}{fg=themecolor} diff --git a/theme/beamerfontthemetue2015plain.sty b/theme/beamerfontthemetue2015plain.sty new file mode 100644 index 0000000..99b79b3 --- /dev/null +++ b/theme/beamerfontthemetue2015plain.sty @@ -0,0 +1,18 @@ +\mode + +\RequirePackage[utf8]{inputenc} +\RequirePackage[T1]{fontenc} +\RequirePackage{tuestyle2015} + +\ProcessOptionsBeamer + +% Fix font warning: \textbullet is not available in 'zmb', but is in 'cmr' +\let\oldtextbullet\textbullet +\renewcommand{\textbullet}{{\fontfamily{cmr}\selectfont\oldtextbullet}} + +% Use Computer Modern as the main math font since the TU/e fonts are not +% so suitable for math. +\def\mathfamilydefault{cmr} % [ws] As if cmr is so good for math with the TU/e fonts. Tss... +\RequirePackage[euler-digits]{eulervm} % ... so overwrite it with Euler :D + +\mode diff --git a/theme/beamerouterthemetue2015plain.sty b/theme/beamerouterthemetue2015plain.sty new file mode 100644 index 0000000..9cc3548 --- /dev/null +++ b/theme/beamerouterthemetue2015plain.sty @@ -0,0 +1,294 @@ +\RequirePackage{calc} +\RequirePackage[T1]{fontenc} +\RequirePackage{ifthen} + +\newif\ifbeamer@official +\beamer@officialfalse +\DeclareOptionBeamer{official}[false]{\csname beamer@official#1\endcsname} + +\newcommand{\dept}{none} +\DeclareOptionBeamer{department}{\renewcommand{\dept}{#1}} + +\newif\ifbeamer@innovation +\beamer@innovationfalse +\DeclareOptionBeamer{innovation}[false]{\csname beamer@innovation#1\endcsname} + +\newif\ifbeamer@realpagenumbers +\beamer@realpagenumbersfalse +\DeclareOptionBeamer{realpagenumbers}[true]{\csname beamer@realpagenumbers#1\endcsname} + +\newif\ifbeamer@tocslides +\beamer@tocslidesfalse +\DeclareOptionBeamer{tocslides}[false]{\csname beamer@tocslides#1\endcsname} + +\newcommand{\statustext}{} +\DeclareOptionBeamer{statustext}{\renewcommand{\statustext}{#1}} + +\newcommand{\titlelogos}{} +\DeclareOptionBeamer{titlelogo}{\renewcommand{\titlelogos}{#1}} + +\newcommand{\titlebgimage}{} +\DeclareOptionBeamer{titlebgimage}{\renewcommand{\titlebgimage}{#1}} + +\newcommand{\titlebgimagetransparency}{0.65} +\DeclareOptionBeamer{titlebgimagetransparency}{\renewcommand{\titlebgimagetransparency}{#1}} + +\newcommand{\tocplain}{true} +\DeclareOptionBeamer{tocplain}{\renewcommand{\tocplain}{#1}} + +\newcommand{\tocstyle}{clear} +\DeclareOptionBeamer{tocstyle}{\renewcommand{\tocstyle}{#1}} + +\ProcessOptionsBeamer + +\mode + +\newcommand{\drawbackground}[1][full]{% + \begin{pgfpicture}{0cm}{0cm}{\the\paperwidth}{\the\paperheight} + \fontsize{12}{12}\selectfont + + % blue triangle + \pgfsetcolor{tuedarkblue} + \begin{pgfscope} + \pgfpathmoveto{\pgfpoint{0cm}{0.8cm}} + \pgfpathlineto{\pgfpoint{\the\paperwidth}{0.8cm}} + \pgfpathlineto{\pgfpoint{\the\paperwidth}{0cm}} + \pgfpathlineto{\pgfpoint{0cm}{0cm}} + \pgfusepath{clip} + \pgfpathmoveto{\pgfpoint{0.75cm}{0cm}} + \pgfpathlineto{\pgfpoint{3.4cm}{\the\paperheight}} + \pgfpathlineto{\pgfpoint{0cm}{\the\paperheight}} + \pgfpathlineto{\pgfpoint{0cm}{0cm}} + \pgfusepath{fill} + \end{pgfscope} + + % red lines + \pgfsetlinewidth{0.3pt} + \pgfsetcolor{tuered} + \pgfpathmoveto{\pgfpoint{0cm}{0.8cm}} + \pgfpathlineto{\pgfpoint{\the\paperwidth}{0.8cm}} + \pgfusepath{draw} + \pgfpathmoveto{\pgfpoint{0cm}{\the\paperheight-0.7cm}} + \pgfpathlineto{\pgfpoint{\the\paperwidth}{\the\paperheight-0.7cm}} + \pgfusepath{draw} + \begin{pgfscope} + \pgfpathmoveto{\pgfpoint{0cm}{0.8cm}} + \pgfpathlineto{\pgfpoint{\the\paperwidth}{0.8cm}} + \pgfpathlineto{\pgfpoint{\the\paperwidth}{0cm}} + \pgfpathlineto{\pgfpoint{0cm}{0cm}} + \pgfusepath{clip} + \pgfpathmoveto{\pgfpoint{0.75cm}{0cm}} + \pgfpathlineto{\pgfpoint{3.4cm}{\the\paperheight}} + \pgfusepath{draw} + \end{pgfscope} + \begin{pgfscope} + \pgfpathmoveto{\pgfpoint{0cm}{\the\paperheight-0.7cm}} + \pgfpathlineto{\pgfpoint{\the\paperwidth}{\the\paperheight-0.7cm}} + \pgfpathlineto{\pgfpoint{\the\paperwidth}{\the\paperheight}} + \pgfpathlineto{\pgfpoint{0cm}{\the\paperheight}} + \pgfusepath{clip} + \pgfpathmoveto{\pgfpoint{0.75cm}{0cm}} + \pgfpathlineto{\pgfpoint{3.4cm}{\the\paperheight}} + \pgfusepath{draw} + \end{pgfscope} + + % page number and TU/e logo + \pgfsetcolor{white} + % page number + \ifthenelse{\equal{#1}{full}}{ + % draw frame number + \pgftext[at=\pgfpoint{0.252cm}{0.252cm},left,base] + {\tiny\insertframenumber/\inserttotalframenumber}% + % possibly draw page number + \ifbeamer@realpagenumbers + \pgfsetcolor{themecolor!25} + \pgftext[at=\pgfpoint{\the\paperwidth-0.189cm}{\the\paperheight-0.7cm},right,base] + {\tiny\insertpagenumber/\pageref{LastPage}}% + \fi + }{} + % TU/e logo + \pgftext[at=\pgfpoint{2.57cm}{\the\paperheight-0.7cm},left,base]{% + \TUElogo + } + + \end{pgfpicture}% +} + + + +\newcommand{\drawtitlebackground}{% + \begin{pgfpicture}{0cm}{0cm}{\the\paperwidth}{\the\paperheight} + % Do some clipping first + % Very annoying otherwise with psnup + + \normalsize\selectfont + + % background image + \pgftext[at=\pgfpoint{\the\paperwidth}{0.8cm},right,base]{\textcolor{black}{\includegraphics[height=\the\paperheight-2.2cm]{\titlebgimage}}}% + + % surface below the title + \pgfsetcolor{themecolor} + \pgfsetfillopacity{\titlebgimagetransparency} + \begin{pgfscope} + \pgfpathmoveto{\pgfpoint{0cm}{\the\paperheight-5cm}} + \pgfpathlineto{\pgfpoint{\the\paperwidth}{\the\paperheight-5cm}} + \pgfpathlineto{\pgfpoint{\the\paperwidth}{\the\paperheight-1.4cm}} + \pgfpathlineto{\pgfpoint{0cm}{\the\paperheight-1.4cm}} + \pgfusepath{clip} + \pgfpathmoveto{\pgfpoint{\the\paperwidth-5.9cm}{0cm}} + \pgfpathlineto{\pgfpoint{\the\paperwidth-3.25cm}{\the\paperheight}} + \pgfpathlineto{\pgfpoint{0cm}{\the\paperheight}} + \pgfpathlineto{\pgfpoint{0cm}{0cm}} + \pgfusepath{fill} + \end{pgfscope} + \pgfsetfillopacity{1} + + % red lines + \pgfsetlinewidth{0.3pt} + \pgfsetcolor{tuered} + \pgfpathmoveto{\pgfpoint{0cm}{0.8cm}} + \pgfpathlineto{\pgfpoint{\the\paperwidth}{0.8cm}} + \pgfusepath{draw} + \pgfpathmoveto{\pgfpoint{0cm}{\the\paperheight-1.4cm}} + \pgfpathlineto{\pgfpoint{\the\paperwidth}{\the\paperheight-1.4cm}} + \pgfusepath{draw} + \pgfpathmoveto{\pgfpoint{\the\paperwidth-5.9cm}{0cm}} + \pgfpathlineto{\pgfpoint{\the\paperwidth-3.25cm}{\the\paperheight}} + \pgfusepath{draw} + + % TU/e slogan: Where innovation starts + \ifbeamer@innovation + \pgftext[at=\pgfpoint{\the\paperwidth-5.6cm}{0.5cm},left,top]{\color{tuedarkblue}\normalfont\normalsize\tiny\selectfont\bfseries Where innovation starts}% + \fi + + % Title + \pgftext[at=\pgfpoint{0.5cm}{\the\paperheight-1.9cm},left,top]{\color{white}\normalfont\fontsize{18}{18}\selectfont\bfseries% + \newlength{\titlewidth} + \ifdim\beamer@paperheight=9.00cm% + \setlength{\titlewidth}{11.19cm} + \else + \setlength{\titlewidth}{9.19cm} + \fi + \begin{minipage}[t][2.6cm][c]{\titlewidth} % height = 5 - 1.4 - 2 * 0.5 (margins) = 2.6 + \raggedright + \inserttitle + + \mbox{}\\[0.125cm] + \fontsize{9}{9}\selectfont\mdseries + \insertauthor + \end{minipage} + }% + + % TU/e logo + \pgftext[at=\pgfpoint{\the\paperwidth-4.67cm}{\the\paperheight-1.4cm},left,base]{% + \TUElogobig + } + + \pgftext[at=\pgfpoint{0.441cm}{0.5cm},left,top]{\color{tuered}\tiny\insertdate{}}% + \pgfsetcolor{black} + \pgfpathrectangle{\pgfpoint{0cm}{0cm}}{\pgfpoint{\the\paperwidth}{\the\paperheight}} + \pgfusepath{stroke} + + \end{pgfpicture}% +} + +\usebackgroundtemplate{\drawbackground} + + +\useheadtemplate{} + +\usefoottemplate{} + +\useitemizeitemtemplate{\tiny\raise1.5pt\hbox{\color{beamerstructure}$\blacktriangleright$}} +\usesubitemizeitemtemplate{\tiny\raise1.5pt\hbox{\color{beamerstructure}\textbullet}} +\usesubsubitemizeitemtemplate{\tiny\raise1.5pt\hbox{\color{beamerstructure}\textbullet}} + +\setbeamersize{text margin left=0.5cm,text margin right=0.5cm} + +\newlength{\frametitlewidth} +\newlength{\frametitleheight} + +\setbeamercolor{frametitle}{fg=black,bg=themecolor} +\setbeamerfont{frametitle}{series=\bfseries} +\setbeamertemplate{frametitle} +{ +\setlength{\frametitleheight}{1.5cm} +\vspace*{-\frametitleheight}\begin{minipage}[t][\frametitleheight-0.2cm][b]{\the\paperwidth-1cm} % deduct 1cm because of margins +\centering\insertframetitle\par +\end{minipage} +} + +\userightsidebartemplate{0cm}{ +% \vfill +% \hskip -2cm +% \begin{beamercolorbox}[wd=2cm,leftskip=5pt,rightskip=1pt plus1fil,vmode]{} +% \vbox{}% +% \hfill\footnotesize\insertframenumber /\inserttotalframenumber\hskip1em\hfill\par% +% \vbox{}% +% \vskip-1.5ex% +% \end{beamercolorbox} +} + +\setbeamertemplate{headline} +{ + \ifbeamer@official + \vspace{2.1cm} + \else + \vspace{1.3cm} + \fi +} + +\mode + +\ifbeamer@tocslides + \newcommand{\tue@atbeginsection}{ + \bgroup + \ifthenelse{\equal{\tocplain}{true}}{\usebackgroundtemplate{\drawbackground[plain]}}{} + \hypersetup{ + hidelinks + } + \setbeamercolor{section in toc}{use=alerted text,fg=alerted text.fg} + \setbeamercolor{section in toc shaded}{fg=black} + \setbeamertemplate{section in toc shaded}[default][100] + \setbeamercolor{subsection in toc}{fg=black} + \setbeamercolor{subsection in toc shaded}{fg=black} + \setbeamertemplate{subsection in toc shaded}[default][100] + \begin{frame}{} + \vspace*{-3em} + \ifthenelse{\equal{\tocstyle}{all}}{ + \tableofcontents[currentsection,sectionstyle=show/shaded,subsectionstyle=show/shaded/shaded] + }{ + \tableofcontents[currentsection,sectionstyle=show/shaded,subsectionstyle=show/shaded/hide] + } + \end{frame} + \egroup + \ifthenelse{\equal{\tocplain}{true}}{\addtocounter{framenumber}{-1}} + } + + \newcommand{\tue@atbeginsubsection}{ + \bgroup + \ifthenelse{\equal{\tocplain}{true}}{\usebackgroundtemplate{\drawbackground[plain]}}{} + \hypersetup{ + hidelinks + } + \setbeamercolor{section in toc}{fg=black} + \setbeamercolor{section in toc shaded}{fg=black} + \setbeamertemplate{section in toc shaded}[default][100] + \setbeamercolor{subsection in toc}{use=alerted text,fg=alerted text.fg} + \setbeamercolor{subsection in toc shaded}{fg=black} + \setbeamertemplate{subsection in toc shaded}[default][100] + \begin{frame}{} + \vspace*{-3em} + \tableofcontents[currentsubsection] + \end{frame} + \egroup + \ifthenelse{\equal{\tocplain}{true}}{\addtocounter{framenumber}{-1}} + } + + \AtBeginSection[] {\tue@atbeginsection} + \AtBeginSubsection[] {\tue@atbeginsubsection} + \newcommand{\disabletocslidessection}{\AtBeginSection[]{}} + \newcommand{\enabletocslidessection}{\AtBeginSection[]{\tue@atbeginsection}} + \newcommand{\disabletocslidessubsection}{\AtBeginSubsection[]{}} + \newcommand{\enabletocslidessubsection}{\AtBeginSubsection[]{\tue@atbeginsubsection}} +\fi diff --git a/theme/beamerthemetue2015.sty b/theme/beamerthemetue2015.sty new file mode 100644 index 0000000..00008de --- /dev/null +++ b/theme/beamerthemetue2015.sty @@ -0,0 +1,299 @@ +\RequirePackage{beamerbasethemes} +\RequirePackage{ifthen} +\RequirePackage{lastpage} +\RequirePackage{pgfpages} +\RequirePackage{tikz} % for quotes, see below +\RequirePackage{xparse} + +\DeclareOptionBeamer{theme} +{\PassOptionsToPackage{theme=#1}{beamercolorthemetue2015plain}} + +\DeclareOptionBeamer{department} +{\PassOptionsToPackage{department=#1}{beamerouterthemetue2015plain}} + +\DeclareOptionBeamer{statustext} +{\PassOptionsToPackage{statustext=#1}{beamerouterthemetue2015plain}} + +\DeclareOptionBeamer{titlelogo} +{\PassOptionsToPackage{titlelogo=#1}{beamerouterthemetue2015plain}} + +\DeclareOptionBeamer{titlebgimage} +{\PassOptionsToPackage{titlebgimage=#1}{beamerouterthemetue2015plain}} + +\DeclareOptionBeamer{titlebgimagetransparency} +{\PassOptionsToPackage{titlebgimagetransparency=#1}{beamerouterthemetue2015plain}} + +\DeclareOptionBeamer{compress}{\beamer@compresstrue} + +\DeclareOptionBeamer{official} +{\PassOptionsToPackage{official=#1}{beamerouterthemetue2015plain}} + +\DeclareOptionBeamer{innovation} +{\PassOptionsToPackage{innovation=#1}{beamerouterthemetue2015plain}} + +\DeclareOptionBeamer{realpagenumbers} +{\PassOptionsToPackage{realpagenumbers=#1}{beamerouterthemetue2015plain}} + +\DeclareOptionBeamer{tocslides} +{\PassOptionsToPackage{tocslides=#1}{beamerouterthemetue2015plain}} + +\DeclareOptionBeamer{tocplain} +{\PassOptionsToPackage{tocplain=#1}{beamerouterthemetue2015plain}} + +\DeclareOptionBeamer{tocstyle} +{\PassOptionsToPackage{tocstyle=#1}{beamerouterthemetue2015plain}} + +\DeclareOptionBeamer{tuefont} +{\ifthenelse{\equal{#1}{false}}{\PassOptionsToPackage{tuefont}{tuestyle2015}}{}} +%As there are only two options we only need to pass tuefont as option when we want the non-default behavior + +\newcommand{\spp}{1} +\DeclareOptionBeamer{slidesperpage}{\renewcommand{\spp}{#1}} + +\only{ + \renewcommand{\spp}{2} +} + + +\ProcessOptionsBeamer + +\pgfpagesdeclarelayout{3 on 1} +{ + \edef\pgfpageoptionheight{\the\paperwidth} % landscaped by default + \edef\pgfpageoptionwidth{\the\paperheight} + \def\pgfpageoptionborder{0pt} + \def\pgfpageoptionfirstshipout{1} +} +{ + \pgfpagesphysicalpageoptions + {% + logical pages=3,% + physical height=\pgfpageoptionheight,% + physical width=\pgfpageoptionwidth,% + current logical shipout=\pgfpageoptionfirstshipout% + } + \ifdim\paperheight>\paperwidth\relax + % put side-by-side + \pgfpageslogicalpageoptions{1} + {% + border shrink=\pgfpageoptionborder,% + resized width=.33\pgfphysicalwidth,% + resized height=\pgfphysicalheight,% + center=\pgfpoint{.1667\pgfphysicalwidth}{.5\pgfphysicalheight}% + }% + \pgfpageslogicalpageoptions{2} + {% + border shrink=\pgfpageoptionborder,% + resized width=.33\pgfphysicalwidth,% + resized height=\pgfphysicalheight,% + center=\pgfpoint{.5\pgfphysicalwidth}{.5\pgfphysicalheight}% + }% + \pgfpageslogicalpageoptions{3} + {% + border shrink=\pgfpageoptionborder,% + resized width=.33\pgfphysicalwidth,% + resized height=\pgfphysicalheight,% + center=\pgfpoint{.8333\pgfphysicalwidth}{.5\pgfphysicalheight}% + }% + \else + % stack on top of one another + \pgfpageslogicalpageoptions{1} + {% + border shrink=\pgfpageoptionborder,% + resized width=\pgfphysicalwidth,% + resized height=.33\pgfphysicalheight,% + center=\pgfpoint{.5\pgfphysicalwidth}{.8333\pgfphysicalheight}% + }% + \pgfpageslogicalpageoptions{2} + {% + border shrink=\pgfpageoptionborder,% + resized width=\pgfphysicalwidth,% + resized height=.33\pgfphysicalheight,% + center=\pgfpoint{.5\pgfphysicalwidth}{.5\pgfphysicalheight}% + }% + \pgfpageslogicalpageoptions{3} + {% + border shrink=\pgfpageoptionborder,% + resized width=\pgfphysicalwidth,% + resized height=.33\pgfphysicalheight,% + center=\pgfpoint{.5\pgfphysicalwidth}{.1667\pgfphysicalheight}% + }% + \fi +} + +\pgfpagesdeclarelayout{6 on 1} +{ + \edef\pgfpageoptionheight{\the\paperwidth} % landscaped by default + \edef\pgfpageoptionwidth{\the\paperheight} + \def\pgfpageoptionborder{0pt} + \def\pgfpageoptionfirstshipout{1} +} +{ + \pgfpagesphysicalpageoptions + {% + logical pages=6,% + physical height=\pgfpageoptionheight,% + physical width=\pgfpageoptionwidth,% + current logical shipout=\pgfpageoptionfirstshipout% + } + \ifdim\paperheight>\paperwidth\relax + % put side-by-side + \pgfpageslogicalpageoptions{1} + {% + border shrink=\pgfpageoptionborder,% + resized width=.5\pgfphysicalwidth,% + resized height=\pgfphysicalheight,% + center=\pgfpoint{.1667\pgfphysicalwidth}{.25\pgfphysicalheight}% + }% + \pgfpageslogicalpageoptions{3} + {% + border shrink=\pgfpageoptionborder,% + resized width=.5\pgfphysicalwidth,% + resized height=\pgfphysicalheight,% + center=\pgfpoint{.5\pgfphysicalwidth}{.25\pgfphysicalheight}% + }% + \pgfpageslogicalpageoptions{5} + {% + border shrink=\pgfpageoptionborder,% + resized width=.5\pgfphysicalwidth,% + resized height=\pgfphysicalheight,% + center=\pgfpoint{.8333\pgfphysicalwidth}{.25\pgfphysicalheight}% + }% + \pgfpageslogicalpageoptions{2} + {% + border shrink=\pgfpageoptionborder,% + resized width=.5\pgfphysicalwidth,% + resized height=\pgfphysicalheight,% + center=\pgfpoint{.1667\pgfphysicalwidth}{.75\pgfphysicalheight}% + }% + \pgfpageslogicalpageoptions{4} + {% + border shrink=\pgfpageoptionborder,% + resized width=.5\pgfphysicalwidth,% + resized height=\pgfphysicalheight,% + center=\pgfpoint{.5\pgfphysicalwidth}{.75\pgfphysicalheight}% + }% + \pgfpageslogicalpageoptions{6} + {% + border shrink=\pgfpageoptionborder,% + resized width=.5\pgfphysicalwidth,% + resized height=\pgfphysicalheight,% + center=\pgfpoint{.8333\pgfphysicalwidth}{.75\pgfphysicalheight}% + }% + \else + % stack on top of one another + \pgfpageslogicalpageoptions{1} + {% + border shrink=\pgfpageoptionborder,% + resized width=0.5\pgfphysicalwidth,% + resized height=\pgfphysicalheight,% + center=\pgfpoint{.25\pgfphysicalwidth}{.8333\pgfphysicalheight}% + }% + \pgfpageslogicalpageoptions{3} + {% + border shrink=\pgfpageoptionborder,% + resized width=0.5\pgfphysicalwidth,% + resized height=\pgfphysicalheight,% + center=\pgfpoint{.25\pgfphysicalwidth}{.5\pgfphysicalheight}% + }% + \pgfpageslogicalpageoptions{5} + {% + border shrink=\pgfpageoptionborder,% + resized width=0.5\pgfphysicalwidth,% + resized height=\pgfphysicalheight,% + center=\pgfpoint{.25\pgfphysicalwidth}{.1667\pgfphysicalheight}% + }% + \pgfpageslogicalpageoptions{2} + {% + border shrink=\pgfpageoptionborder,% + resized width=0.5\pgfphysicalwidth,% + resized height=\pgfphysicalheight,% + center=\pgfpoint{.75\pgfphysicalwidth}{.8333\pgfphysicalheight}% + }% + \pgfpageslogicalpageoptions{4} + {% + border shrink=\pgfpageoptionborder,% + resized width=0.5\pgfphysicalwidth,% + resized height=\pgfphysicalheight,% + center=\pgfpoint{.75\pgfphysicalwidth}{.5\pgfphysicalheight}% + }% + \pgfpageslogicalpageoptions{6} + {% + border shrink=\pgfpageoptionborder,% + resized width=0.5\pgfphysicalwidth,% + resized height=\pgfphysicalheight,% + center=\pgfpoint{.75\pgfphysicalwidth}{.1667\pgfphysicalheight}% + }% + \fi +} + +\ifthenelse{\equal{\spp}{2}}{\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]}{} +\ifthenelse{\equal{\spp}{3}}{\pgfpagesuselayout{3 on 1}[a4paper,border shrink=5mm]}{} +\ifthenelse{\equal{\spp}{4}}{\pgfpagesuselayout{4 on 1}[a4paper,border shrink=5mm,landscape]}{} +\ifthenelse{\equal{\spp}{6}}{\pgfpagesuselayout{6 on 1}[a4paper,border shrink=5mm]}{} + +\newenvironment{slide}{\begin{frame}[fragile,environment=slide]\vfill}{\vfill\end{frame}} +\newenvironment{slidetop}{\begin{frame}[fragile,environment=slidetop]}{\end{frame}} +\newenvironment{titleframe}{\usebackgroundtemplate{\drawtitlebackground}\begin{frame}[fragile,environment=titleframe]} + {\end{frame}\usebackgroundtemplate{\drawbackground}} +\RenewDocumentEnvironment{plainframe}{G{}}% + {% + \usebackgroundtemplate{\drawbackground[plain]}% + \setlength{\frametitleheight}{1.5cm}% + \if\relax\detokenize{#1}\relax\relax\else% + \setbeamertemplate{frametitle}{% + \vspace*{-\frametitleheight}% + \begin{center}\LARGE \alert{\insertframetitle}\end{center}% + }% + \fi% + \begin{frame}[fragile,environment=plainframe]% + \frametitle{{#1}}% + \if\relax\detokenize{#1}\relax\relax\else% + \vspace*{-0.525\frametitleheight}% + \fi% + }% + {% + \end{frame}% + \usebackgroundtemplate{\drawbackground}% + } + +% improve quote environment +\let\oldquoteenv\quote +\let\endoldquoteenv\endquote +% http://tex.stackexchange.com/a/16981/23145 +\newcommand*\quotesize{60} +\newcommand*{\openquote} + {\tikz[remember picture,overlay,xshift=-4ex,yshift=-1em+1ex] + \node (OQ) {\fontsize{\quotesize}{\quotesize}\selectfont\textcolor{themecolor}{``}};\kern0pt} +\newcommand*{\closequote}[1] + {\tikz[remember picture,overlay,xshift=2ex,yshift={#1}] + \node (CQ) {\fontsize{\quotesize}{\quotesize}\selectfont\textcolor{themecolor}{''}};} +% http://tex.stackexchange.com/a/162789/23145 +\RenewDocumentEnvironment{quote}{O{0.9\textwidth}O{.4em}G{}O{}}% + {% + \vspace{#2}\begin{minipage}{#1}\oldquoteenv\openquote + }% + {% + \hfill\closequote{-0.7ex}% + \item[]\mbox{}\hfill\alert{\footnotesize\textsc{#3}} + \if\relax\detokenize{#4}\relax\relax\else% + \footnotesize -- #4 + \fi% + \endoldquote\end{minipage} + } +\NewDocumentEnvironment{oldquote}{}{\oldquoteenv}{\endoldquoteenv} + +\mode + +\useinnertheme{default} +\useoutertheme{tue2015plain} +\usecolortheme{tue2015plain} +\usefonttheme{tue2015plain} + +\hypersetup{ + colorlinks=true, + linkcolor=themecolor, + urlcolor=themecolor, +} + +\mode diff --git a/theme/tuestyle2015.sty b/theme/tuestyle2015.sty new file mode 100644 index 0000000..2d3c555 --- /dev/null +++ b/theme/tuestyle2015.sty @@ -0,0 +1,82 @@ +\ProvidesPackage{tuestyle2015}% + [2015/10/08 v1.0 TU/e 2015 style support for fonts, colors and logos] + +\RequirePackage[T1]{fontenc} +\RequirePackage{graphicx} +\RequirePackage{ifthen} +\RequirePackage{xcolor} + +\newcommand{\tuefont}{true} +\DeclareOption{tuefont}{\renewcommand{\tuefont}{false}} + +\ProcessOptions + +% Activate the default TU/e fonts. +%if option tuefont is true, then use tue fonts otherwise do not set anything (use default) +\ifthenelse{\equal{\tuefont}{true}}{\renewcommand{\rmdefault}{zmb}}{} +\ifthenelse{\equal{\tuefont}{true}}{\renewcommand{\sfdefault}{zmb}}{} +\ifthenelse{\equal{\tuefont}{true}}{\renewcommand{\ttdefault}{pcr}}{} + +% Define the TU/e colors. +% Main Colours: +\definecolor{tuepmswarmred}{rgb}{0.969,0.192,0.192} +\definecolor{tuepmsprocesscyan}{rgb}{0.000,0.635,0.871} +\definecolor{tuepms206}{rgb}{0.839,0.000,0.290} +\definecolor{tuepms300}{rgb}{0.000,0.400,0.800} +\definecolor{tuepms226}{rgb}{0.839,0.000,0.482} +\definecolor{tuepms253}{rgb}{0.678,0.125,0.678} +\definecolor{tuepms2748}{rgb}{0.063,0.063,0.451} +% Support Colours: +\definecolor{tuepms137}{rgb}{1.000,0.604,0.000} +\definecolor{tuepmsyellow012}{rgb}{1.000,0.867,0.000} +\definecolor{tuepms396}{rgb}{0.808,0.875,0.000} +\definecolor{tuepms375}{rgb}{0.518,0.824,0.000} +\definecolor{tuepmsgreen}{rgb}{0.000,0.675,0.510} +\definecolor{tuepms3135}{rgb}{0.000,0.573,0.710} +% Alternative, more common, names for some of these colours: +\definecolor{tuewarmred}{rgb}{0.969,0.192,0.192} +\definecolor{tueprocesscyan}{rgb}{0.000,0.635,0.871} +\definecolor{tuecyan}{rgb}{0.000,0.635,0.871} +\definecolor{tuered}{rgb}{0.839,0.000,0.290} +\definecolor{tueblue}{rgb}{0.000,0.400,0.800} +\definecolor{tuedarkblue}{rgb}{0.063,0.063,0.451} +\definecolor{tueorange}{rgb}{1.000,0.604,0.000} +\definecolor{tueyellow}{rgb}{1.000,0.867,0.000} +\definecolor{tuelightgreen}{rgb}{0.518,0.824,0.000} +\definecolor{tuegreen}{rgb}{0.000,0.675,0.510} + +% Use \TUElogo to insert the logo. +\newsavebox{\sbTUElogo} +\sbox{\sbTUElogo}% + {\includegraphics[height=0.5cm]{logos/tuelogo}} +\newcommand{\TUElogo}{\usebox{\sbTUElogo}} +\newsavebox{\sbTUElogobig} +\sbox{\sbTUElogobig}% + {\includegraphics[height=0.8cm]{logos/tuelogo}} +\newcommand{\TUElogobig}{\usebox{\sbTUElogobig}} + +% Commands for the department logos. +\newcommand{\deptlogo}[1]{ + \fontfamily{zlo}\selectfont/% + \ifthenelse{\equal{#1}{ele}}{e}{}% + \ifthenelse{\equal{#1}{eleuk}}{\bfseries e}{}% + \ifthenelse{\equal{#1}{win}}{k}{}% + \ifthenelse{\equal{#1}{winuk}}% + {\fontfamily{zmb}\selectfont\bfseries\,department of mathematics and + computer science}{}% + \ifthenelse{\equal{#1}{bmt}}{mh\fontsize{4.5}{5pt}\selectfont j}{}% + \ifthenelse{\equal{#1}{bmtuk}}{\bfseries mh\fontsize{4.5}{5pt}\selectfont j}{}% + \ifthenelse{\equal{#1}{bwk}}{b}{}% + \ifthenelse{\equal{#1}{bwkuk}}{\bfseries b}{}% + \ifthenelse{\equal{#1}{id}}{d}{}% + \ifthenelse{\equal{#1}{iduk}}{\bfseries d}{}% + \ifthenelse{\equal{#1}{chem}}{s}{}% + \ifthenelse{\equal{#1}{chemuk}}{\bfseries s}{}% + \ifthenelse{\equal{#1}{tm}}{t}{}% + \ifthenelse{\equal{#1}{tmuk}}{\bfseries t}{}% + \ifthenelse{\equal{#1}{phys}}{n}{}% + \ifthenelse{\equal{#1}{physuk}}{\bfseries n}{}% + \ifthenelse{\equal{#1}{wtb}}{w}{}% + \ifthenelse{\equal{#1}{wtbuk}}{\bfseries w}{}% + \ifthenelse{\equal{#1}{none}}{}{}% +}