Skip to content
Snippets Groups Projects
Commit 81b0a335 authored by Christian De Schryver's avatar Christian De Schryver
Browse files

added [de] options for selecting German background and language settings

parent d90f035a
Branches
Tags
No related merge requests found
\ProvidesPackage{EIT-Title}[2017/01/29 v.01 by Matthias Jung] \ProvidesPackage{EIT-Title}[2017/01/29 v.01 by Matthias Jung]
% language settings and option declaration
% defines a global token "isGerman" that can also be used in the LaTeX files later
\RequirePackage{etoolbox}
\newtoggle{isGerman}
\toggletrue{isGerman}
\DeclareOption{en}{\togglefalse{isGerman}}
\DeclareOption{de}{\toggletrue{isGerman}}
\ProcessOptions\relax
% language support
\iftoggle{isGerman}{
\usepackage[ngerman]{babel} % German language support
}{
\usepackage[english]{babel} % English language support
}
\RequirePackage{geometry} \RequirePackage{geometry}
\geometry{ \geometry{
a4paper, a4paper,
...@@ -21,9 +39,6 @@ ...@@ -21,9 +39,6 @@
% see: http://tex.stackexchange.com/questions/664/why-should-i-use-usepackaget1fontenc % see: http://tex.stackexchange.com/questions/664/why-should-i-use-usepackaget1fontenc
\RequirePackage[T1]{fontenc} \RequirePackage[T1]{fontenc}
% Background image for title page
\RequirePackage{wallpaper}
% Breaking URLs % Breaking URLs
\RequirePackage{url} \RequirePackage{url}
...@@ -78,12 +93,17 @@ ...@@ -78,12 +93,17 @@
\RequirePackage{color} \RequirePackage{color}
\RequirePackage{lastpage} \RequirePackage{lastpage}
%%% END OF EIT PACKAGE INPUTS %%%
% Background image for title page
\RequirePackage{wallpaper}
\iftoggle{isGerman}{
\ThisCenterWallPaper{1.0}{style-eit-latex/backgrounds/bg_report_de.pdf}
}{
\ThisCenterWallPaper{1.0}{style-eit-latex/backgrounds/bg_report_en.pdf} \ThisCenterWallPaper{1.0}{style-eit-latex/backgrounds/bg_report_en.pdf}
}
% Todo Command: % TODO command:
\newcommand{\todo}[1]{{\bf \color{tuk-red}TODO: [{#1}]}} \newcommand{\todo}[1]{{\bf \color{tuk-red}TODO: [{#1}]}}
% Cooperate Design TUK including PT-Sans: % Cooperate Design TUK including PT-Sans:
...@@ -124,4 +144,5 @@ ...@@ -124,4 +144,5 @@
{\noindent\pt\color{tuk-grey}\itshape\@author\unskip\strut\par} {\noindent\pt\color{tuk-grey}\itshape\@author\unskip\strut\par}
\vspace{1cm} \vspace{1cm}
} }
\endinput \endinput
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment