Add parameters and fix language issues

This commit is contained in:
Sebastian Müller
2017-04-26 11:24:20 +02:00
parent 7709f61842
commit dd2d2c034b
2 changed files with 55 additions and 18 deletions

View File

@@ -7,8 +7,8 @@
\ProvidesClass{cel-thesis/cel-thesis}
\LoadClass[11pt, % 11pt
titlepage,
BCOR8mm, % Bindekorrektur
DIV12, % Satzspiegel
BCOR=8mm, % Bindekorrektur
DIV=12, % Satzspiegel
twoside, % Doppelseitige Ausgabe
a4paper, % DIN A4
openright, % Neue Kapitel auf rechter Seite
@@ -26,6 +26,7 @@
\newcommand{\thesisAuthor}[1]{\def \theThesisAuthor{#1}}
\newcommand{\thesisAdvisor}[1]{\def \theThesisAdvisor{#1}}
\newcommand{\thesisSupervisor}[1]{\def \theThesisSupervisor{#1}}
\newcommand{\thesisHeadOfInstitute}[1]{\def \theThesisHeadOfInstitute{#1}}
\newcommand{\thesisStartDate}[1]{\def \theThesisStartDate{#1}}
\newcommand{\thesisEndDate}[1]{\def \theThesisEndDate{#1}}
\newcommand{\thesisSignatureDate}[1]{\def \theThesisSignatureDate{#1}}
@@ -36,7 +37,8 @@
\thesisTitle{Random Thesis Title}
\thesisType{Master Thesis Type}
\thesisAuthor{John Doe}
\thesisAdvisor{Univ.-Prof. Dr.rer.nat. Friedrich K. Jondral}
\thesisAdvisor{Univ.-Prof. i.R. Dr.rer.nat. Friedrich K. Jondral}
\thesisHeadOfInstitute{Dr.-Ing. Holger Jäkel}
\thesisSupervisor{Super-Assi Deluxe M.Sc.}
\thesisStartDate{dd.mm.yyyy}
\thesisEndDate{dd.mm.yyyy}
@@ -54,9 +56,26 @@
% Gerneral %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[T1]{fontenc} % encoding for target files.
\usepackage[utf8]{inputenc} % UTF-8 encoding for source files
\usepackage[\theThesisLanguage]{babel}
\usepackage[printonlyused]{acronym} % use this package for abbreviations!
\def\setlanguage{
\usepackage[\theThesisLanguage]{babel}
\ifx\theThesisLanguage\dictThesisLanguageEnglish
\bibliographystyle{alpha} % American Style
\def\theUniversity{Karlsruhe Institute of Technology}
\sisetup{%
binary-units = true,
output-decimal-marker={.}
}
\else
\bibliographystyle{alphadin} % DIN norm
\def\theUniversity{Karlsruher Institut für Technologie}
\sisetup{%
binary-units = true,
output-decimal-marker={,}
}
\mathcode`,="013B % avoid space in comma decimal numbers
\fi
}
% Print Watermark! CAREFUL: if does not work %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % \ifx\theThesisPythonWatermark\dictThesisTRUE
@@ -71,23 +90,14 @@
\usepackage{amsmath}
\usepackage[right]{eurosym}
\usepackage{siunitx}
\ifx\theThesisLanguage\dictThesisLanguageEnglish
\sisetup{%
binary-units = true,
output-decimal-marker={.}
}
\else
\sisetup{%
binary-units = true,
output-decimal-marker={,}
}
\fi
%% Define always missing math symbols.
\DeclareMathOperator*{\argmin}{\arg\!\min}
\DeclareMathOperator*{\argmax}{\arg\!\max}
\DeclareMathOperator\sign{sign}
% Graphics %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Ueberschriften fett
\setkomafont{sectioning}{\normalcolor\bfseries}
@@ -117,9 +127,9 @@
\includegraphics[width=40mm,valign=c]{cel-thesis/logos/kitlogo_de_rgb}%
\hfill%
\begin{minipage}{8.26cm}\centering%
\textbf{Karlsruhe Institute of Technology}\\
\textbf{\theUniversity}\\
Communications Engineering Lab\\
\theThesisAdvisor%
\theThesisHeadOfInstitute%
\end{minipage}%
\hfill%
\includegraphics[width=25mm,valign=c]{cel-thesis/logos/cel_logo}%

View File

@@ -1,3 +1,28 @@
\ifx\theThesisLanguage\dictThesisLanguageEnglish
\chapter*{Declaration}
With this statement I declare that I have independently completed the above
master's thesis. The thoughts taken directly or indirectly from external
sources are properly marked as such. This thesis was not previously submitted
to another academic institution and has also not yet been published.
\vspace{2cm}
\begin{tabbing}
\hspace{3em}\= \kill
\>Karlsruhe, \theThesisSignatureDate
\end{tabbing}
\vspace{2cm}
\begin{tabbing}
\hspace{3em}\= \kill
\>\theThesisAuthor\\[1ex]
%\>Amalienstra{\ss}e 79\\
%\>76133 Karlsruhe\\[1ex]
\end{tabbing}
\else
\chapter*{Erkl{\"a}rung}
%Ich versichere hiermit, dass ich meine Masterarbeit selbständig und unter Beachtung der Satzung der Universität Karlsruhe (TH) zur Sicherung guter wissenschaftlicher Praxis in der aktuellen Fassung angefertigt habe. Ich habe keine anderen als die angegebenen Quellen und Hilfsmittel benutzt und wörtlich oder inhaltlich übernommene Stellen als solche kenntlich gemacht.
@@ -22,6 +47,8 @@ Ich habe keine anderen als die angegebenen Quellen und Hilfsmittel benutzt und w
%\>76133 Karlsruhe\\[1ex]
\end{tabbing}
\fi
\ifx\theThesisCC\dictThesisTRUE
\newpage
\begin{center}