added document class files
This commit is contained in:
378
cel-klausur.cls
Normal file
378
cel-klausur.cls
Normal file
@@ -0,0 +1,378 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{templates/cel-klausur}
|
||||
\LoadClass[11pt,a4paper,oneside]{article}
|
||||
|
||||
% Gerneral %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage[utf8]{inputenc} % UTF-8
|
||||
\usepackage[ngerman]{babel}
|
||||
\usepackage{pythontex}
|
||||
|
||||
% Math and Symbols %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\usepackage{amssymb, amsfonts, latexsym}
|
||||
\usepackage[fleqn]{amsmath}
|
||||
\usepackage[right]{eurosym}
|
||||
\usepackage{MnSymbol}
|
||||
\usepackage{siunitx}
|
||||
\sisetup{%
|
||||
binary-units = true,
|
||||
% load-configurations=binary,
|
||||
% load-configurations=abbreviations,
|
||||
% per-mode=fraction,
|
||||
% fraction-function=\sfrac, % braucht Paket »xfrac«
|
||||
output-decimal-marker={,}
|
||||
}
|
||||
% fft symbol
|
||||
\usepackage{trfsigns}
|
||||
\def\korrts{\quad \laplace \quad }
|
||||
% (Matrixnotation aus NT1-/WT-Buch)
|
||||
\def\matrixnue#1{%
|
||||
\setbox200=\hbox{#1}%
|
||||
\setbox201=\vbox{#1}%
|
||||
\setbox202=\vsplit201 to .5\ht201
|
||||
\vbox{\normalbaselines%
|
||||
{\hrule width 1.2\wd200
|
||||
\hbox{\vrule height.6\ht202 \kern1.15\wd200 \vrule height.6\ht202}}%
|
||||
\kern-1.7\ht202%
|
||||
\hbox{\kern.1\wd200 #1}}%
|
||||
}
|
||||
\def\matrixnue#1{%
|
||||
\ifmeasuring@#1\else
|
||||
\sbox0{$\displaystyle#1$}\rlap{%
|
||||
\rule[\dimexpr\ht0+0.5pt\relax]{0.5pt}{.4ex}%
|
||||
\rule[\dimexpr\ht0+.4ex\relax]{1.1\wd0}{0.5pt}%
|
||||
\rule[\dimexpr\ht0+0.5pt\relax]{0.5pt}{.4ex}%
|
||||
}\box0
|
||||
\fi
|
||||
}
|
||||
\newcommand{\mybinom}[2]{%
|
||||
\Big(\hspace*{-1ex}\begin{array}{c}%
|
||||
#1\\[-1ex]#2%
|
||||
\end{array}\hspace*{-1ex}\Big)\,%
|
||||
}
|
||||
% Graphics %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\usepackage{graphics}
|
||||
\usepackage{color}
|
||||
\usepackage{pgf, tikz, pgfplots}
|
||||
\pgfplotsset{compat=1.9}
|
||||
|
||||
% Layout %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\RequirePackage{marginnote}
|
||||
\RequirePackage[compact,explicit]{titlesec}% http://ctan.org/pkg/titlesec
|
||||
\RequirePackage{fancyhdr, lastpage}
|
||||
\RequirePackage{ifthen}
|
||||
\RequirePackage[hidelinks, final=true]{hyperref}
|
||||
\RequirePackage[ddmmyyyy]{datetime}
|
||||
\renewcommand{\dateseparator}{.}
|
||||
\RequirePackage[export]{adjustbox}
|
||||
|
||||
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Page format
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\topmargin -15mm
|
||||
\oddsidemargin 0mm
|
||||
\evensidemargin 0mm
|
||||
\textheight 250.5mm
|
||||
\textwidth 160.0mm
|
||||
\columnsep 8.1mm
|
||||
\parindent 0.0em
|
||||
\headsep 6.3mm
|
||||
\headheight 12pt
|
||||
\lineskip 1pt
|
||||
\normallineskip 1pt
|
||||
\marginparsep 6mm
|
||||
|
||||
% Seitenzahlen
|
||||
\renewcommand{\headrulewidth}{0pt}
|
||||
\pagestyle{fancy}
|
||||
\fancyhf{}
|
||||
\cfoot{\tiny \thepage\ / \pageref{LastPage}}
|
||||
\IfFileExists{.gitversion}{%
|
||||
\lfoot{\color{red} \tiny \today{ }\currenttime}%
|
||||
\rfoot{\color{red} \tiny \input{.gitversion}}%
|
||||
}{%
|
||||
%
|
||||
}
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Variablen
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Befehle
|
||||
\newcommand{\examType}[1]{\def \theExamType{#1}}
|
||||
\newcommand{\examName}[1]{\def\theExamName{#1}}
|
||||
\newcommand{\examDate}[1]{\def \theExamDate{#1}}
|
||||
\newcommand{\examAuthors}[1]{\def \theExamAuthors {#1}}
|
||||
\newcommand{\examDuration}[1]{\def \theExamDuration {#1}}
|
||||
\newcommand{\exerciseCount}[1]{\def \theExerciseCount {#1}}
|
||||
\newcommand{\pointsPerExercise}[1]{\def \thePointsPerExercise {#1}}
|
||||
|
||||
\newcommand{\gradeDate}[1]{\def \theGradeDate {#1}}
|
||||
\newcommand{\reviewDate}[1]{\def \theReviewDate {#1}}
|
||||
\newcommand{\reviewMode}[1]{\def \theReviewMode {#1}}
|
||||
|
||||
\newcommand{\pointsToPass}[1]{\def\thePointsToPass{#1}}
|
||||
\newcommand{\gradeStep}[1]{\def\theGradeStep{#1}}
|
||||
|
||||
% Defaults
|
||||
\examType{Schriftliche Prüfung im Fach}
|
||||
\examName{CEL Klausur}
|
||||
\examDate{DD.MM.YYYY}
|
||||
\examAuthors{Max Mustermann; Friedrich K. Jondral}
|
||||
\examDuration{xxx Stunden}
|
||||
\exerciseCount{xxx}
|
||||
\pointsPerExercise{10}
|
||||
|
||||
\gradeDate{DD.MM.YYYY}
|
||||
\reviewDate{DD.MM.YYYY}
|
||||
\reviewMode{}
|
||||
|
||||
\pointsToPass{0}
|
||||
\gradeStep{0}
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Schalter
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Seitentrennung
|
||||
\newboolean{onePerSheet}
|
||||
\setboolean{onePerSheet}{false}
|
||||
\ifdefined\argOnePerSheet\setboolean{onePerSheet}{true}\fi
|
||||
\newcommand{\onePerSheet}{\ifdefined\argForce\else\setboolean{onePerSheet}{true}\fi}
|
||||
|
||||
|
||||
% Anzeige der Korrektoren
|
||||
\newboolean{showNames}
|
||||
\setboolean{showNames}{false}
|
||||
\ifdefined\argShowNames\setboolean{showNames}{true}\fi
|
||||
\newcommand{\showNames}{\ifdefined\argForce\else\setboolean{showNames}{true}\fi}
|
||||
|
||||
% Anzeige der Lösung
|
||||
\newboolean{showSolution}
|
||||
\setboolean{showSolution}{false}
|
||||
\ifdefined\argShowSolution\setboolean{showSolution}{true}\fi
|
||||
\newcommand{\showSolution}{\ifdefined\argForce\else\setboolean{showSolution}{true}\fi}
|
||||
|
||||
% Anzeige der Punkte
|
||||
\newboolean{showPoints}
|
||||
\setboolean{showPoints}{false}
|
||||
\ifdefined\argShowPoints\setboolean{showPoints}{true}\fi
|
||||
\newcommand{\showPoints}{\ifdefined\argForce\else\setboolean{showPoints}{true}\fi}
|
||||
|
||||
% Anzeige des Einsicht Titelblatts
|
||||
\newboolean{showReview}
|
||||
\setboolean{showReview}{false}
|
||||
\ifdefined\argShowReview
|
||||
\setboolean{showReview}{true}
|
||||
\setboolean{showSolution}{true}
|
||||
\setboolean{showPoints}{true}
|
||||
\fi
|
||||
\newcommand{\showReview}{\ifdefined\argForce\else
|
||||
\setboolean{showReview}{true}
|
||||
\setboolean{showSolution}{true}
|
||||
\setboolean{showPoints}{true}
|
||||
\fi}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Titel
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\newcommand{\header}{%
|
||||
\includegraphics[width=40mm,valign=c]{templates/logos/kitlogo_de_rgb}%
|
||||
\hfill%
|
||||
\begin{minipage}{9cm}\centering%
|
||||
\textbf{Karlsruhe Institute of Technology}\\
|
||||
Communications Engineering Lab\\
|
||||
Univ.-Prof. Dr. rer.nat. Friedrich Jondral%
|
||||
\end{minipage}%
|
||||
\hfill%
|
||||
\includegraphics[width=25mm,valign=c]{templates/logos/cel_logo}%
|
||||
}
|
||||
\newcommand{\ssection}[1]{\vspace*{0.8em}{\textbf{#1}}\\}
|
||||
|
||||
\def\maketitle{
|
||||
\hypersetup{
|
||||
pdfauthor = \theExamAuthors,
|
||||
pdftitle = {\theExamType{ }\theExamName{ }\theExamDate},
|
||||
pdfsubject = {Institut für Nachrichtentechnik (CEL)},
|
||||
pdfcreator = {PDFLaTeX with hyperref package},
|
||||
pdfproducer = {PDFLaTeX}
|
||||
}
|
||||
\vspace*{-0.8cm} % align the top of the kit logo with the text
|
||||
\header\vspace{2.5cm}%
|
||||
% Überschrift:
|
||||
\begin{center}
|
||||
\Large \bf \theExamType \\[.1em]
|
||||
\Huge \bf \theExamName \\[.3em]
|
||||
\Large \bf \theExamDate
|
||||
\ifshowSolution \\[2cm] \Huge \bf Musterlösung \fi
|
||||
\ifshowReview \\[.3em]\Large für die Klausureinsicht \fi%
|
||||
\end{center}
|
||||
\vfill
|
||||
\ifshowReview%
|
||||
\input{templates/title.review.tex}%
|
||||
\else%
|
||||
\input{templates/title.exam.tex}%
|
||||
\fi
|
||||
\newpage
|
||||
}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Aufgaben
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\newcommand{\points}[1]{\def \thePointsMax {#1}}
|
||||
\titleformat{\section}[runin]{\Large\bfseries\vspace{1em}}{}{0pt}{#1}
|
||||
\newcommand{\aufgabe}[1][]%
|
||||
{%
|
||||
\ifthenelse{\boolean{onePerSheet}}{%
|
||||
\clearpage%
|
||||
\ifthenelse{\isodd{\thepage}}{}{\null\newpage}%
|
||||
}{%
|
||||
\ifthenelse{\boolean{showSolution}}{\clearpage}{}%
|
||||
}%
|
||||
\section{Aufgabe \thesection}%
|
||||
\ifshowNames%
|
||||
\hspace{1em}\textmd{\normalsize\color{red} (#1)}%
|
||||
\else%
|
||||
\mbox{}%
|
||||
\fi%
|
||||
\\[1.2ex]%
|
||||
\setcounter{teilaufgabenInAufgabe}{0}%
|
||||
\points{\thePointsPerExercise}
|
||||
}
|
||||
%
|
||||
%
|
||||
%
|
||||
\makeatletter
|
||||
% The command writes onto the aux file
|
||||
\def\setTeilaufgabenCount#1#2{\@bsphack
|
||||
\protected@write\@mainaux{}%
|
||||
{\string\updateTeilaufgabenCount{#1}{#2}}%
|
||||
\@esphack}
|
||||
\def\updateTeilaufgabenCount#1#2{%
|
||||
\expandafter\xdef\csname tafc@#1\endcsname{#2}}
|
||||
\def\totalTeilaufgabenCount#1{%
|
||||
\expandafter\ifx\csname tafc@#1\endcsname\relax0\else
|
||||
\csname tafc@#1\endcsname\fi}
|
||||
%\AtEndDocument{\def\newreference#1#2{%
|
||||
% \edef\reserved@a{#2}%
|
||||
% \expandafter\ifnum\csname tafc@#1\endcsname>\reserved@a\else
|
||||
% \@tempswatrue\fi}}
|
||||
\makeatother
|
||||
%
|
||||
%
|
||||
%
|
||||
\newcounter{punkteinAufgabe}
|
||||
\newcounter{teilaufgabenInAufgabe}
|
||||
%
|
||||
\newenvironment{teilaufgaben}{
|
||||
\begin{enumerate}
|
||||
%\addtocounter{Aufgabe\thesection}{\letzterwert}
|
||||
\setcounter{enumi}{\value{teilaufgabenInAufgabe}}
|
||||
\setlength{\itemsep}{0pt}
|
||||
%\setlength{\parskip}{0pt}
|
||||
%\setlength{\parsep}{0pt}
|
||||
}{
|
||||
\setcounter{teilaufgabenInAufgabe}{\value{enumi}}
|
||||
\setTeilaufgabenCount{Aufgabe\thesection}{\the\value{enumi}}
|
||||
\ifnum \the\value{enumi}=0\totalTeilaufgabenCount{Aufgabe\thesection}
|
||||
\checkPunkte
|
||||
\fi
|
||||
\end{enumerate}
|
||||
}
|
||||
%
|
||||
% Item command mit Punktezählen und bei Bedarf Randnotiz
|
||||
\newcommand{\labelpunkte}{%
|
||||
\ifnum\thePunkte>0%
|
||||
\foreach \n in {1,...,\thePunkte}{\textbullet}%
|
||||
\fi%
|
||||
}
|
||||
\newcommand{\teil}[1][0]{%
|
||||
\item%
|
||||
\def\thePunkte{#1}%
|
||||
\ifshowPoints\marginnote{\color{red}\labelpunkte}\fi%
|
||||
\addtocounter{punkteinAufgabe}{#1}%
|
||||
}
|
||||
%
|
||||
% Zähler für enumerate environment neu definieren.
|
||||
\renewcommand{\labelenumi}{\alph{enumi})}
|
||||
\renewcommand{\labelenumii}{\alph{enumii})}
|
||||
%
|
||||
\newcommand{\checkPunkte}{%
|
||||
\ifnum 0<0\thesection
|
||||
\ifnum \value{punkteinAufgabe}=0%
|
||||
\ClassWarning{cel-klausur}{%
|
||||
Aufgabe \thesection\space hat (noch) keine Punkteverteilung%
|
||||
}
|
||||
\else
|
||||
\ifnum \value{punkteinAufgabe}=1%
|
||||
\ClassWarning{cel-klausur}{%
|
||||
Aufgabe \thesection\space hat nur 1 Punkt%
|
||||
}
|
||||
\else
|
||||
\ifnum \value{punkteinAufgabe}<\thePointsMax%
|
||||
\ClassWarning{cel-klausur}{%
|
||||
Aufgabe \thesection\space hat nur \thepunkteinAufgabe\space anstatt \thePointsMax\space Punkte
|
||||
}
|
||||
\fi\fi\fi
|
||||
\ifnum \value{punkteinAufgabe}>\thePointsMax%
|
||||
\ClassWarning{cel-klausur}{%
|
||||
Aufgabe \thesection\space hat \thepunkteinAufgabe\space anstatt \thePointsMax\space Punkte%
|
||||
}
|
||||
\fi
|
||||
\fi
|
||||
\setcounter{punkteinAufgabe}{0}%
|
||||
}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Loesung
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\newenvironment{loesung}%
|
||||
{%
|
||||
\ifthenelse{\boolean{showSolution}}{%
|
||||
\begingroup%
|
||||
\vspace*{1em}
|
||||
\subsection*{Lösung}
|
||||
\bgroup%
|
||||
}{%
|
||||
\setbox0\vbox\bgroup%
|
||||
}%
|
||||
}{%
|
||||
\ifthenelse{\boolean{showSolution}}{%
|
||||
\egroup%
|
||||
\endgroup%
|
||||
}{%
|
||||
\egroup%
|
||||
}%
|
||||
}%
|
||||
|
||||
\newenvironment{loesungen}%
|
||||
{%
|
||||
\begingroup%
|
||||
\begin{loesung}%
|
||||
\begin{enumerate}%
|
||||
}{%
|
||||
\end{enumerate}%
|
||||
\end{loesung}%
|
||||
\endgroup%
|
||||
}%
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Anhang
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\makeatletter
|
||||
\newcommand{\anhang}[1][]{
|
||||
\setcounter{punkteinAufgabe}{0}
|
||||
\clearpage
|
||||
\ifonePerSheet%
|
||||
\ifthenelse{\isodd{\thepage}}{}{\null\newpage}%
|
||||
\fi%
|
||||
\appendix
|
||||
\def\thesubsection{\@Alph\c@subsection}
|
||||
\section{\ifx&{Formelsammlung und Tabellen}\else{#1}\fi}
|
||||
}
|
||||
\makeatother
|
||||
\titlespacing*{\subsection}{0ex}{2ex}{1ex}
|
||||
% \subsection{...} can be used for structuring
|
||||
365
cel-thesis.cls
Normal file
365
cel-thesis.cls
Normal file
@@ -0,0 +1,365 @@
|
||||
% This file requires quite a few texlive packages.
|
||||
% texlive-lang-german / texlive-lang-european
|
||||
% texlive-science
|
||||
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{cel-thesis/cel-thesis}
|
||||
\LoadClass[11pt, % 11pt
|
||||
BCOR8mm, % Bindekorrektur
|
||||
DIV12, % Satzspiegel
|
||||
twoside, % Doppelseitige Ausgabe
|
||||
a4paper, % DIN A4
|
||||
openright, % Neue Kapitel auf rechter Seite
|
||||
% dvips, % Source Specials ins DVI/PS
|
||||
% draft, % Overfull H-Boxen markieren
|
||||
final, % Engueltige Version mit Bildern
|
||||
]{scrreprt}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% variables
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% new commands
|
||||
\newcommand{\thesisTitle}[1]{\def \theThesisTitle{#1}}
|
||||
\newcommand{\thesisType}[1]{\def \theThesisType{#1}}
|
||||
\newcommand{\thesisAuthor}[1]{\def \theThesisAuthor{#1}}
|
||||
\newcommand{\thesisAdvisor}[1]{\def \theThesisAdvisor{#1}}
|
||||
\newcommand{\thesisSupervisor}[1]{\def \theThesisSupervisor{#1}}
|
||||
\newcommand{\thesisStartDate}[1]{\def \theThesisStartDate{#1}}
|
||||
\newcommand{\thesisEndDate}[1]{\def \theThesisEndDate{#1}}
|
||||
\newcommand{\thesisSignatureDate}[1]{\def \theThesisSignatureDate{#1}}
|
||||
\newcommand{\thesisLanguage}[1]{\def \theThesisLanguage{#1}}
|
||||
|
||||
% Defaults
|
||||
\thesisTitle{Random Thesis Title}
|
||||
\thesisType{Master Thesis Type}
|
||||
\thesisAuthor{John Doe}
|
||||
\thesisAdvisor{Univ.-Prof. Dr.rer.nat. Friedrich K. Jondral}
|
||||
\thesisSupervisor{Super-Assi Deluxe M.Sc.}
|
||||
\thesisStartDate{dd.mm.yyyy}
|
||||
\thesisEndDate{dd.mm.yyyy}
|
||||
\thesisSignatureDate{dd.mm.yyyy}
|
||||
\thesisLanguage{english}
|
||||
|
||||
\def\dictThesisLanguageGerman{ngerman}
|
||||
\def\dictThesisLanguageEnglish{english}
|
||||
|
||||
% Gerneral %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\usepackage[T1]{fontenc} % encoding for target files.
|
||||
\usepackage[utf8]{inputenc} % UTF-8 encoding for source files
|
||||
\usepackage[\theThesisLanguage]{babel}
|
||||
\usepackage{pythontex}
|
||||
|
||||
% Math and Symbols %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\usepackage{amssymb, amsfonts, latexsym}
|
||||
\usepackage[fleqn]{amsmath}
|
||||
\usepackage[right]{eurosym}
|
||||
\usepackage{siunitx}
|
||||
\sisetup{%
|
||||
binary-units = true,
|
||||
% load-configurations=binary,
|
||||
% load-configurations=abbreviations,
|
||||
% per-mode=fraction,
|
||||
% fraction-function=\sfrac, % braucht Paket »xfrac«
|
||||
output-decimal-marker={,}
|
||||
}
|
||||
% fft symbol
|
||||
\usepackage{trfsigns}
|
||||
\def\korrts{\quad \laplace \quad }
|
||||
% (Matrixnotation aus NT1-/WT-Buch)
|
||||
\def\matrixnue#1{%
|
||||
\setbox200=\hbox{#1}%
|
||||
\setbox201=\vbox{#1}%
|
||||
\setbox202=\vsplit201 to .5\ht201
|
||||
\vbox{\normalbaselines%
|
||||
{\hrule width 1.2\wd200
|
||||
\hbox{\vrule height.6\ht202 \kern1.15\wd200 \vrule height.6\ht202}}%
|
||||
\kern-1.7\ht202%
|
||||
\hbox{\kern.1\wd200 #1}}%
|
||||
}
|
||||
\def\matrixnue#1{%
|
||||
\ifmeasuring@#1\else
|
||||
\sbox0{$\displaystyle#1$}\rlap{%
|
||||
\rule[\dimexpr\ht0+0.5pt\relax]{0.5pt}{.4ex}%
|
||||
\rule[\dimexpr\ht0+.4ex\relax]{1.1\wd0}{0.5pt}%
|
||||
\rule[\dimexpr\ht0+0.5pt\relax]{0.5pt}{.4ex}%
|
||||
}\box0
|
||||
\fi
|
||||
}
|
||||
\newcommand{\mybinom}[2]{%
|
||||
\Big(\hspace*{-1ex}\begin{array}{c}%
|
||||
#1\\[-1ex]#2%
|
||||
\end{array}\hspace*{-1ex}\Big)\,%
|
||||
}
|
||||
% Graphics %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Ueberschriften fett
|
||||
\setkomafont{sectioning}{\normalcolor\bfseries}
|
||||
% Bild- und Tabellen-Unterschriften formatieren
|
||||
\renewcommand{\caplabelfont}{\bfseries}
|
||||
\renewcommand{\capfont}{\small}
|
||||
|
||||
\usepackage{graphicx}
|
||||
\usepackage{color}
|
||||
\usepackage{pgf, tikz, pgfplots}
|
||||
\pgfplotsset{compat=1.9}
|
||||
|
||||
% Layout %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\RequirePackage{marginnote}
|
||||
\RequirePackage{ifthen}
|
||||
\RequirePackage[hidelinks, final=true]{hyperref}
|
||||
\RequirePackage[ddmmyyyy]{datetime}
|
||||
\renewcommand{\dateseparator}{.}
|
||||
\RequirePackage[export]{adjustbox}
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Schalter
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Seitentrennung
|
||||
\newboolean{onePerSheet}
|
||||
\setboolean{onePerSheet}{false}
|
||||
\ifdefined\argOnePerSheet\setboolean{onePerSheet}{true}\fi
|
||||
\newcommand{\onePerSheet}{\ifdefined\argForce\else\setboolean{onePerSheet}{true}\fi}
|
||||
|
||||
|
||||
% Anzeige der Korrektoren
|
||||
\newboolean{showNames}
|
||||
\setboolean{showNames}{false}
|
||||
\ifdefined\argShowNames\setboolean{showNames}{true}\fi
|
||||
\newcommand{\showNames}{\ifdefined\argForce\else\setboolean{showNames}{true}\fi}
|
||||
|
||||
% Anzeige der Lösung
|
||||
\newboolean{showSolution}
|
||||
\setboolean{showSolution}{false}
|
||||
\ifdefined\argShowSolution\setboolean{showSolution}{true}\fi
|
||||
\newcommand{\showSolution}{\ifdefined\argForce\else\setboolean{showSolution}{true}\fi}
|
||||
|
||||
% Anzeige der Punkte
|
||||
\newboolean{showPoints}
|
||||
\setboolean{showPoints}{false}
|
||||
\ifdefined\argShowPoints\setboolean{showPoints}{true}\fi
|
||||
\newcommand{\showPoints}{\ifdefined\argForce\else\setboolean{showPoints}{true}\fi}
|
||||
|
||||
% Anzeige des Einsicht Titelblatts
|
||||
\newboolean{showReview}
|
||||
\setboolean{showReview}{false}
|
||||
\ifdefined\argShowReview
|
||||
\setboolean{showReview}{true}
|
||||
\setboolean{showSolution}{true}
|
||||
\setboolean{showPoints}{true}
|
||||
\fi
|
||||
\newcommand{\showReview}{\ifdefined\argForce\else
|
||||
\setboolean{showReview}{true}
|
||||
\setboolean{showSolution}{true}
|
||||
\setboolean{showPoints}{true}
|
||||
\fi}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Titel
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\newcommand{\header}{%
|
||||
\includegraphics[width=40mm,valign=c]{cel-thesis/logos/kitlogo_de_rgb}%
|
||||
\hfill%
|
||||
\begin{minipage}{8.26cm}\centering%
|
||||
\textbf{Karlsruhe Institute of Technology}\\
|
||||
Communications Engineering Lab\\
|
||||
\theThesisAdvisor%
|
||||
\end{minipage}%
|
||||
\hfill%
|
||||
\includegraphics[width=25mm,valign=c]{cel-thesis/logos/cel_logo}%
|
||||
}
|
||||
\newcommand{\ssection}[1]{\vspace*{0.8em}{\textbf{#1}}\\}
|
||||
|
||||
|
||||
\def\maketitle{
|
||||
\hypersetup{
|
||||
pdfauthor = \theThesisAuthor,
|
||||
pdftitle = {\theThesisType{ }\theThesisTitle{ } \theThesisAuthor},
|
||||
pdfsubject = {Institut für Nachrichtentechnik (CEL)},
|
||||
pdfcreator = {PDFLaTeX with hyperref package},
|
||||
pdfproducer = {PDFLaTeX}
|
||||
}
|
||||
\thispagestyle{empty}
|
||||
\header % institute banner, etc.
|
||||
\vspace*{3.0cm}%
|
||||
% Title
|
||||
\begin{center}
|
||||
{\Large \textbf{\theThesisTitle}} \\[1cm]
|
||||
{\large \theThesisType} \\[2.5cm]
|
||||
{\textbf{\theThesisAuthor}}\\[2.5cm]
|
||||
\begin{tabular}{lll}
|
||||
\ifx\theThesisLanguage\dictThesisLanguageEnglish % default is german. But one may use english.
|
||||
Advisor & : & \theThesisAdvisor \\
|
||||
Supervisor & : & \theThesisSupervisor\\[2cm]
|
||||
Start date & : & \theThesisStartDate \\
|
||||
End date & : & \theThesisEndDate \\
|
||||
\else
|
||||
Hauptreferent & : & \theThesisAdvisor \\
|
||||
Betreuer & : & \theThesisSupervisor\\[2cm]
|
||||
Beginn & : & \theThesisStartDate \\
|
||||
Abgabe & : & \theThesisEndDate \\
|
||||
\fi
|
||||
\end{tabular}
|
||||
|
||||
\end{center}
|
||||
\hspace*{\fill}
|
||||
\newpage
|
||||
\include{cel-thesis/eidesstattliche_erklaerung}
|
||||
}
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Aufgaben
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% % \newcommand{\points}[1]{\def \thePointsMax {#1}}
|
||||
% % \titleformat{\section}[runin]{\Large\bfseries\vspace{1em}}{}{0pt}{#1}
|
||||
% % \newcommand{\aufgabe}[1][]%
|
||||
% % {%
|
||||
% % \ifthenelse{\boolean{onePerSheet}}{%
|
||||
% % \clearpage%
|
||||
% % \ifthenelse{\isodd{\thepage}}{}{\null\newpage}%
|
||||
% % }{%
|
||||
% % \ifthenelse{\boolean{showSolution}}{\clearpage}{}%
|
||||
% % }%
|
||||
% % \section{Aufgabe \thesection}%
|
||||
% % \ifshowNames%
|
||||
% % \hspace{1em}\textmd{\normalsize\color{red} (#1)}%
|
||||
% % \else%
|
||||
% % \mbox{}%
|
||||
% % \fi%
|
||||
% % \\[1.2ex]%
|
||||
% % \setcounter{teilaufgabenInAufgabe}{0}%
|
||||
% % \points{\thePointsPerExercise}
|
||||
% % }
|
||||
%
|
||||
%
|
||||
%
|
||||
\makeatletter
|
||||
% The command writes onto the aux file
|
||||
\def\setTeilaufgabenCount#1#2{\@bsphack
|
||||
\protected@write\@mainaux{}%
|
||||
{\string\updateTeilaufgabenCount{#1}{#2}}%
|
||||
\@esphack}
|
||||
\def\updateTeilaufgabenCount#1#2{%
|
||||
\expandafter\xdef\csname tafc@#1\endcsname{#2}}
|
||||
\def\totalTeilaufgabenCount#1{%
|
||||
\expandafter\ifx\csname tafc@#1\endcsname\relax0\else
|
||||
\csname tafc@#1\endcsname\fi}
|
||||
%\AtEndDocument{\def\newreference#1#2{%
|
||||
% \edef\reserved@a{#2}%
|
||||
% \expandafter\ifnum\csname tafc@#1\endcsname>\reserved@a\else
|
||||
% \@tempswatrue\fi}}
|
||||
\makeatother
|
||||
%
|
||||
%
|
||||
%
|
||||
\newcounter{punkteinAufgabe}
|
||||
\newcounter{teilaufgabenInAufgabe}
|
||||
%
|
||||
\newenvironment{teilaufgaben}{
|
||||
\begin{enumerate}
|
||||
%\addtocounter{Aufgabe\thesection}{\letzterwert}
|
||||
\setcounter{enumi}{\value{teilaufgabenInAufgabe}}
|
||||
\setlength{\itemsep}{0pt}
|
||||
%\setlength{\parskip}{0pt}
|
||||
%\setlength{\parsep}{0pt}
|
||||
}{
|
||||
\setcounter{teilaufgabenInAufgabe}{\value{enumi}}
|
||||
\setTeilaufgabenCount{Aufgabe\thesection}{\the\value{enumi}}
|
||||
\ifnum \the\value{enumi}=0\totalTeilaufgabenCount{Aufgabe\thesection}
|
||||
\checkPunkte
|
||||
\fi
|
||||
\end{enumerate}
|
||||
}
|
||||
%
|
||||
% Item command mit Punktezählen und bei Bedarf Randnotiz
|
||||
\newcommand{\labelpunkte}{%
|
||||
\ifnum\thePunkte>0%
|
||||
\foreach \n in {1,...,\thePunkte}{\textbullet}%
|
||||
\fi%
|
||||
}
|
||||
\newcommand{\teil}[1][0]{%
|
||||
\item%
|
||||
\def\thePunkte{#1}%
|
||||
\ifshowPoints\marginnote{\color{red}\labelpunkte}\fi%
|
||||
\addtocounter{punkteinAufgabe}{#1}%
|
||||
}
|
||||
%
|
||||
% Zähler für enumerate environment neu definieren.
|
||||
\renewcommand{\labelenumi}{\alph{enumi})}
|
||||
\renewcommand{\labelenumii}{\alph{enumii})}
|
||||
%
|
||||
\newcommand{\checkPunkte}{%
|
||||
\ifnum 0<0\thesection
|
||||
\ifnum \value{punkteinAufgabe}=0%
|
||||
\ClassWarning{cel-klausur}{%
|
||||
Aufgabe \thesection\space hat (noch) keine Punkteverteilung%
|
||||
}
|
||||
\else
|
||||
\ifnum \value{punkteinAufgabe}=1%
|
||||
\ClassWarning{cel-klausur}{%
|
||||
Aufgabe \thesection\space hat nur 1 Punkt%
|
||||
}
|
||||
\else
|
||||
\ifnum \value{punkteinAufgabe}<\thePointsMax%
|
||||
\ClassWarning{cel-klausur}{%
|
||||
Aufgabe \thesection\space hat nur \thepunkteinAufgabe\space anstatt \thePointsMax\space Punkte
|
||||
}
|
||||
\fi\fi\fi
|
||||
\ifnum \value{punkteinAufgabe}>\thePointsMax%
|
||||
\ClassWarning{cel-klausur}{%
|
||||
Aufgabe \thesection\space hat \thepunkteinAufgabe\space anstatt \thePointsMax\space Punkte%
|
||||
}
|
||||
\fi
|
||||
\fi
|
||||
\setcounter{punkteinAufgabe}{0}%
|
||||
}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Loesung
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\newenvironment{loesung}%
|
||||
{%
|
||||
\ifthenelse{\boolean{showSolution}}{%
|
||||
\begingroup%
|
||||
\vspace*{1em}
|
||||
\subsection*{Lösung}
|
||||
\bgroup%
|
||||
}{%
|
||||
\setbox0\vbox\bgroup%
|
||||
}%
|
||||
}{%
|
||||
\ifthenelse{\boolean{showSolution}}{%
|
||||
\egroup%
|
||||
\endgroup%
|
||||
}{%
|
||||
\egroup%
|
||||
}%
|
||||
}%
|
||||
|
||||
\newenvironment{loesungen}%
|
||||
{%
|
||||
\begingroup%
|
||||
\begin{loesung}%
|
||||
\begin{enumerate}%
|
||||
}{%
|
||||
\end{enumerate}%
|
||||
\end{loesung}%
|
||||
\endgroup%
|
||||
}%
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Anhang
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\makeatletter
|
||||
\newcommand{\anhang}[1][]{
|
||||
\setcounter{punkteinAufgabe}{0}
|
||||
\clearpage
|
||||
\ifonePerSheet%
|
||||
\ifthenelse{\isodd{\thepage}}{}{\null\newpage}%
|
||||
\fi%
|
||||
\appendix
|
||||
\def\thesubsection{\@Alph\c@subsection}
|
||||
\section{\ifx&{Formelsammlung und Tabellen}\else{#1}\fi}
|
||||
}
|
||||
\makeatother
|
||||
|
||||
355
cel-thesis.cls.backup
Normal file
355
cel-thesis.cls.backup
Normal file
@@ -0,0 +1,355 @@
|
||||
% This file requires quite a few texlive packages.
|
||||
% texlive-lang-german / texlive-lang-european
|
||||
% texlive-science
|
||||
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{templates/cel-thesis}
|
||||
\LoadClass[11pt, % 11pt
|
||||
BCOR8mm, % Bindekorrektur
|
||||
DIV12, % Satzspiegel
|
||||
twoside, % Doppelseitige Ausgabe
|
||||
a4paper, % DIN A4
|
||||
openright, % Neue Kapitel auf rechter Seite
|
||||
% dvips, % Source Specials ins DVI/PS
|
||||
% draft, % Overfull H-Boxen markieren
|
||||
final, % Engueltige Version mit Bildern
|
||||
]{scrreprt}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% variables
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% new commands
|
||||
\newcommand{\thesisTitle}[1]{\def \theThesisTitle{#1}}
|
||||
\newcommand{\thesisType}[1]{\def \theThesisType{#1}}
|
||||
\newcommand{\thesisAuthor}[1]{\def \theThesisAuthor{#1}}
|
||||
\newcommand{\thesisAdvisor}[1]{\def \theThesisAdvisor{#1}}
|
||||
\newcommand{\thesisSupervisor}[1]{\def \theThesisSupervisor{#1}}
|
||||
\newcommand{\thesisStartDate}[1]{\def \theThesisStartDate{#1}}
|
||||
\newcommand{\thesisEndDate}[1]{\def \theThesisEndDate{#1}}
|
||||
\newcommand{\thesisSignatureDate}[1]{\def \theThesisSignatureDate{#1}}
|
||||
\newcommand{\thesisLanguage}[1]{\def \theThesisLanguage{#1}}
|
||||
|
||||
% Defaults
|
||||
\thesisTitle{Random Thesis Title}
|
||||
\thesisType{Master Thesis Type}
|
||||
\thesisAuthor{John Doe}
|
||||
\thesisAdvisor{Univ.-Prof. Dr.rer.nat. Friedrich K. Jondral}
|
||||
\thesisSupervisor{Super-Assi Deluxe M.Sc.}
|
||||
\thesisStartDate{dd.mm.yyyy}
|
||||
\thesisEndDate{dd.mm.yyyy}
|
||||
\thesisSignatureDate{dd.mm.yyyy}
|
||||
\thesisLanguage{english}
|
||||
|
||||
% Gerneral %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\usepackage[T1]{fontenc} % encoding for target files.
|
||||
\usepackage[utf8]{inputenc} % UTF-8 encoding for source files
|
||||
\usepackage[\theThesisLanguage]{babel}
|
||||
\usepackage{pythontex}
|
||||
|
||||
% Math and Symbols %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\usepackage{amssymb, amsfonts, latexsym}
|
||||
\usepackage[fleqn]{amsmath}
|
||||
\usepackage[right]{eurosym}
|
||||
\usepackage{siunitx}
|
||||
\sisetup{%
|
||||
binary-units = true,
|
||||
% load-configurations=binary,
|
||||
% load-configurations=abbreviations,
|
||||
% per-mode=fraction,
|
||||
% fraction-function=\sfrac, % braucht Paket »xfrac«
|
||||
output-decimal-marker={,}
|
||||
}
|
||||
% fft symbol
|
||||
\usepackage{trfsigns}
|
||||
\def\korrts{\quad \laplace \quad }
|
||||
% (Matrixnotation aus NT1-/WT-Buch)
|
||||
\def\matrixnue#1{%
|
||||
\setbox200=\hbox{#1}%
|
||||
\setbox201=\vbox{#1}%
|
||||
\setbox202=\vsplit201 to .5\ht201
|
||||
\vbox{\normalbaselines%
|
||||
{\hrule width 1.2\wd200
|
||||
\hbox{\vrule height.6\ht202 \kern1.15\wd200 \vrule height.6\ht202}}%
|
||||
\kern-1.7\ht202%
|
||||
\hbox{\kern.1\wd200 #1}}%
|
||||
}
|
||||
\def\matrixnue#1{%
|
||||
\ifmeasuring@#1\else
|
||||
\sbox0{$\displaystyle#1$}\rlap{%
|
||||
\rule[\dimexpr\ht0+0.5pt\relax]{0.5pt}{.4ex}%
|
||||
\rule[\dimexpr\ht0+.4ex\relax]{1.1\wd0}{0.5pt}%
|
||||
\rule[\dimexpr\ht0+0.5pt\relax]{0.5pt}{.4ex}%
|
||||
}\box0
|
||||
\fi
|
||||
}
|
||||
\newcommand{\mybinom}[2]{%
|
||||
\Big(\hspace*{-1ex}\begin{array}{c}%
|
||||
#1\\[-1ex]#2%
|
||||
\end{array}\hspace*{-1ex}\Big)\,%
|
||||
}
|
||||
% Graphics %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Ueberschriften fett
|
||||
\setkomafont{sectioning}{\normalcolor\bfseries}
|
||||
% Bild- und Tabellen-Unterschriften formatieren
|
||||
\renewcommand{\caplabelfont}{\bfseries}
|
||||
\renewcommand{\capfont}{\small}
|
||||
|
||||
\usepackage{graphicx}
|
||||
\usepackage{color}
|
||||
\usepackage{pgf, tikz, pgfplots}
|
||||
\pgfplotsset{compat=1.9}
|
||||
|
||||
% Layout %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\RequirePackage{marginnote}
|
||||
\RequirePackage{ifthen}
|
||||
\RequirePackage[hidelinks, final=true]{hyperref}
|
||||
\RequirePackage[ddmmyyyy]{datetime}
|
||||
\renewcommand{\dateseparator}{.}
|
||||
\RequirePackage[export]{adjustbox}
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Schalter
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Seitentrennung
|
||||
\newboolean{onePerSheet}
|
||||
\setboolean{onePerSheet}{false}
|
||||
\ifdefined\argOnePerSheet\setboolean{onePerSheet}{true}\fi
|
||||
\newcommand{\onePerSheet}{\ifdefined\argForce\else\setboolean{onePerSheet}{true}\fi}
|
||||
|
||||
|
||||
% Anzeige der Korrektoren
|
||||
\newboolean{showNames}
|
||||
\setboolean{showNames}{false}
|
||||
\ifdefined\argShowNames\setboolean{showNames}{true}\fi
|
||||
\newcommand{\showNames}{\ifdefined\argForce\else\setboolean{showNames}{true}\fi}
|
||||
|
||||
% Anzeige der Lösung
|
||||
\newboolean{showSolution}
|
||||
\setboolean{showSolution}{false}
|
||||
\ifdefined\argShowSolution\setboolean{showSolution}{true}\fi
|
||||
\newcommand{\showSolution}{\ifdefined\argForce\else\setboolean{showSolution}{true}\fi}
|
||||
|
||||
% Anzeige der Punkte
|
||||
\newboolean{showPoints}
|
||||
\setboolean{showPoints}{false}
|
||||
\ifdefined\argShowPoints\setboolean{showPoints}{true}\fi
|
||||
\newcommand{\showPoints}{\ifdefined\argForce\else\setboolean{showPoints}{true}\fi}
|
||||
|
||||
% Anzeige des Einsicht Titelblatts
|
||||
\newboolean{showReview}
|
||||
\setboolean{showReview}{false}
|
||||
\ifdefined\argShowReview
|
||||
\setboolean{showReview}{true}
|
||||
\setboolean{showSolution}{true}
|
||||
\setboolean{showPoints}{true}
|
||||
\fi
|
||||
\newcommand{\showReview}{\ifdefined\argForce\else
|
||||
\setboolean{showReview}{true}
|
||||
\setboolean{showSolution}{true}
|
||||
\setboolean{showPoints}{true}
|
||||
\fi}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Titel
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\newcommand{\header}{%
|
||||
\includegraphics[width=40mm,valign=c]{templates/logos/kitlogo_de_rgb}%
|
||||
\hfill%
|
||||
\begin{minipage}{8.26cm}\centering%
|
||||
\textbf{Karlsruhe Institute of Technology}\\
|
||||
Communications Engineering Lab\\
|
||||
\theThesisAdvisor%
|
||||
\end{minipage}%
|
||||
\hfill%
|
||||
\includegraphics[width=25mm,valign=c]{templates/logos/cel_logo}%
|
||||
}
|
||||
\newcommand{\ssection}[1]{\vspace*{0.8em}{\textbf{#1}}\\}
|
||||
|
||||
|
||||
\def\maketitle{
|
||||
\hypersetup{
|
||||
pdfauthor = \theThesisAuthor,
|
||||
pdftitle = {\theThesisType{ }\theThesisTitle{ }\theThesisEndDate},
|
||||
pdfsubject = {Institut für Nachrichtentechnik (CEL)},
|
||||
pdfcreator = {PDFLaTeX with hyperref package},
|
||||
pdfproducer = {PDFLaTeX}
|
||||
}
|
||||
\thispagestyle{empty}
|
||||
\header % institute banner, etc.
|
||||
\vspace*{3.0cm}%
|
||||
% Title
|
||||
\begin{center}
|
||||
{\Large \textbf{\theThesisTitle}} \\[1cm]
|
||||
{\large \theThesisType} \\[2.5cm]
|
||||
{\textbf{\theThesisAuthor}}\\[2.5cm]
|
||||
\begin{tabular}{lll}
|
||||
Hauptreferent & : & \theThesisAdvisor \\
|
||||
Betreuer & : & \theThesisSupervisor\\[2cm]
|
||||
Beginn & : & \theThesisStartDate \\
|
||||
Abgabe & : & \theThesisEndDate \\
|
||||
\end{tabular}
|
||||
|
||||
\end{center}
|
||||
\hspace*{\fill}
|
||||
\newpage
|
||||
\include{templates/eidesstattliche_erklaerung}
|
||||
}
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Aufgaben
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% % \newcommand{\points}[1]{\def \thePointsMax {#1}}
|
||||
% % \titleformat{\section}[runin]{\Large\bfseries\vspace{1em}}{}{0pt}{#1}
|
||||
% % \newcommand{\aufgabe}[1][]%
|
||||
% % {%
|
||||
% % \ifthenelse{\boolean{onePerSheet}}{%
|
||||
% % \clearpage%
|
||||
% % \ifthenelse{\isodd{\thepage}}{}{\null\newpage}%
|
||||
% % }{%
|
||||
% % \ifthenelse{\boolean{showSolution}}{\clearpage}{}%
|
||||
% % }%
|
||||
% % \section{Aufgabe \thesection}%
|
||||
% % \ifshowNames%
|
||||
% % \hspace{1em}\textmd{\normalsize\color{red} (#1)}%
|
||||
% % \else%
|
||||
% % \mbox{}%
|
||||
% % \fi%
|
||||
% % \\[1.2ex]%
|
||||
% % \setcounter{teilaufgabenInAufgabe}{0}%
|
||||
% % \points{\thePointsPerExercise}
|
||||
% % }
|
||||
%
|
||||
%
|
||||
%
|
||||
\makeatletter
|
||||
% The command writes onto the aux file
|
||||
\def\setTeilaufgabenCount#1#2{\@bsphack
|
||||
\protected@write\@mainaux{}%
|
||||
{\string\updateTeilaufgabenCount{#1}{#2}}%
|
||||
\@esphack}
|
||||
\def\updateTeilaufgabenCount#1#2{%
|
||||
\expandafter\xdef\csname tafc@#1\endcsname{#2}}
|
||||
\def\totalTeilaufgabenCount#1{%
|
||||
\expandafter\ifx\csname tafc@#1\endcsname\relax0\else
|
||||
\csname tafc@#1\endcsname\fi}
|
||||
%\AtEndDocument{\def\newreference#1#2{%
|
||||
% \edef\reserved@a{#2}%
|
||||
% \expandafter\ifnum\csname tafc@#1\endcsname>\reserved@a\else
|
||||
% \@tempswatrue\fi}}
|
||||
\makeatother
|
||||
%
|
||||
%
|
||||
%
|
||||
\newcounter{punkteinAufgabe}
|
||||
\newcounter{teilaufgabenInAufgabe}
|
||||
%
|
||||
\newenvironment{teilaufgaben}{
|
||||
\begin{enumerate}
|
||||
%\addtocounter{Aufgabe\thesection}{\letzterwert}
|
||||
\setcounter{enumi}{\value{teilaufgabenInAufgabe}}
|
||||
\setlength{\itemsep}{0pt}
|
||||
%\setlength{\parskip}{0pt}
|
||||
%\setlength{\parsep}{0pt}
|
||||
}{
|
||||
\setcounter{teilaufgabenInAufgabe}{\value{enumi}}
|
||||
\setTeilaufgabenCount{Aufgabe\thesection}{\the\value{enumi}}
|
||||
\ifnum \the\value{enumi}=0\totalTeilaufgabenCount{Aufgabe\thesection}
|
||||
\checkPunkte
|
||||
\fi
|
||||
\end{enumerate}
|
||||
}
|
||||
%
|
||||
% Item command mit Punktezählen und bei Bedarf Randnotiz
|
||||
\newcommand{\labelpunkte}{%
|
||||
\ifnum\thePunkte>0%
|
||||
\foreach \n in {1,...,\thePunkte}{\textbullet}%
|
||||
\fi%
|
||||
}
|
||||
\newcommand{\teil}[1][0]{%
|
||||
\item%
|
||||
\def\thePunkte{#1}%
|
||||
\ifshowPoints\marginnote{\color{red}\labelpunkte}\fi%
|
||||
\addtocounter{punkteinAufgabe}{#1}%
|
||||
}
|
||||
%
|
||||
% Zähler für enumerate environment neu definieren.
|
||||
\renewcommand{\labelenumi}{\alph{enumi})}
|
||||
\renewcommand{\labelenumii}{\alph{enumii})}
|
||||
%
|
||||
\newcommand{\checkPunkte}{%
|
||||
\ifnum 0<0\thesection
|
||||
\ifnum \value{punkteinAufgabe}=0%
|
||||
\ClassWarning{cel-klausur}{%
|
||||
Aufgabe \thesection\space hat (noch) keine Punkteverteilung%
|
||||
}
|
||||
\else
|
||||
\ifnum \value{punkteinAufgabe}=1%
|
||||
\ClassWarning{cel-klausur}{%
|
||||
Aufgabe \thesection\space hat nur 1 Punkt%
|
||||
}
|
||||
\else
|
||||
\ifnum \value{punkteinAufgabe}<\thePointsMax%
|
||||
\ClassWarning{cel-klausur}{%
|
||||
Aufgabe \thesection\space hat nur \thepunkteinAufgabe\space anstatt \thePointsMax\space Punkte
|
||||
}
|
||||
\fi\fi\fi
|
||||
\ifnum \value{punkteinAufgabe}>\thePointsMax%
|
||||
\ClassWarning{cel-klausur}{%
|
||||
Aufgabe \thesection\space hat \thepunkteinAufgabe\space anstatt \thePointsMax\space Punkte%
|
||||
}
|
||||
\fi
|
||||
\fi
|
||||
\setcounter{punkteinAufgabe}{0}%
|
||||
}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Loesung
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\newenvironment{loesung}%
|
||||
{%
|
||||
\ifthenelse{\boolean{showSolution}}{%
|
||||
\begingroup%
|
||||
\vspace*{1em}
|
||||
\subsection*{Lösung}
|
||||
\bgroup%
|
||||
}{%
|
||||
\setbox0\vbox\bgroup%
|
||||
}%
|
||||
}{%
|
||||
\ifthenelse{\boolean{showSolution}}{%
|
||||
\egroup%
|
||||
\endgroup%
|
||||
}{%
|
||||
\egroup%
|
||||
}%
|
||||
}%
|
||||
|
||||
\newenvironment{loesungen}%
|
||||
{%
|
||||
\begingroup%
|
||||
\begin{loesung}%
|
||||
\begin{enumerate}%
|
||||
}{%
|
||||
\end{enumerate}%
|
||||
\end{loesung}%
|
||||
\endgroup%
|
||||
}%
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Anhang
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\makeatletter
|
||||
\newcommand{\anhang}[1][]{
|
||||
\setcounter{punkteinAufgabe}{0}
|
||||
\clearpage
|
||||
\ifonePerSheet%
|
||||
\ifthenelse{\isodd{\thepage}}{}{\null\newpage}%
|
||||
\fi%
|
||||
\appendix
|
||||
\def\thesubsection{\@Alph\c@subsection}
|
||||
\section{\ifx&{Formelsammlung und Tabellen}\else{#1}\fi}
|
||||
}
|
||||
\makeatother
|
||||
|
||||
39
eidesstattliche_erklaerung.aux
Normal file
39
eidesstattliche_erklaerung.aux
Normal file
@@ -0,0 +1,39 @@
|
||||
\relax
|
||||
\providecommand\hyper@newdestlabel[2]{}
|
||||
\@setckpt{cel-thesis/eidesstattliche_erklaerung}{
|
||||
\setcounter{page}{4}
|
||||
\setcounter{equation}{0}
|
||||
\setcounter{enumi}{0}
|
||||
\setcounter{enumii}{0}
|
||||
\setcounter{enumiii}{0}
|
||||
\setcounter{enumiv}{0}
|
||||
\setcounter{footnote}{0}
|
||||
\setcounter{mpfootnote}{0}
|
||||
\setcounter{part}{0}
|
||||
\setcounter{chapter}{0}
|
||||
\setcounter{section}{0}
|
||||
\setcounter{subsection}{0}
|
||||
\setcounter{subsubsection}{0}
|
||||
\setcounter{paragraph}{0}
|
||||
\setcounter{subparagraph}{0}
|
||||
\setcounter{figure}{0}
|
||||
\setcounter{table}{0}
|
||||
\setcounter{FancyVerbLine}{0}
|
||||
\setcounter{currfiledepth}{0}
|
||||
\setcounter{pytx@FancyVerbLineTemp}{0}
|
||||
\setcounter{parentequation}{0}
|
||||
\setcounter{mn@abspage}{4}
|
||||
\setcounter{Item}{0}
|
||||
\setcounter{Hfootnote}{0}
|
||||
\setcounter{bookmark@seq@number}{0}
|
||||
\setcounter{punkteinAufgabe}{0}
|
||||
\setcounter{teilaufgabenInAufgabe}{0}
|
||||
\setcounter{btxromaniannumeral}{0}
|
||||
\setcounter{subfigure}{0}
|
||||
\setcounter{lofdepth}{1}
|
||||
\setcounter{subtable}{0}
|
||||
\setcounter{lotdepth}{1}
|
||||
\setcounter{listing}{0}
|
||||
\setcounter{lopytxdepth}{1}
|
||||
\setcounter{section@level}{0}
|
||||
}
|
||||
19
eidesstattliche_erklaerung.tex
Normal file
19
eidesstattliche_erklaerung.tex
Normal file
@@ -0,0 +1,19 @@
|
||||
\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.
|
||||
|
||||
Ich versichere hiermit, dass ich die vorliegende Arbeit selbst{\"a}ndig und unter Beachtung der Satzung der Universit{\"a}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{\"o}rtlich oder inhaltlich {\"u}bernommene Stellen als solche kenntlich gemacht.
|
||||
|
||||
\vspace{2cm}
|
||||
\begin{tabbing}
|
||||
\hspace{3em}\= \kill
|
||||
\>Karlsruhe, den \theThesisSignatureDate
|
||||
\end{tabbing}
|
||||
|
||||
\vspace{2cm}
|
||||
\begin{tabbing}
|
||||
\hspace{3em}\= \kill
|
||||
\>\theThesisAuthor\\[1ex]
|
||||
%\>Amalienstra{\ss}e 79\\
|
||||
%\>76133 Karlsruhe\\[1ex]
|
||||
\end{tabbing}
|
||||
BIN
logos/cel_logo.pdf
Normal file
BIN
logos/cel_logo.pdf
Normal file
Binary file not shown.
BIN
logos/kitlogo_de_rgb.pdf
Normal file
BIN
logos/kitlogo_de_rgb.pdf
Normal file
Binary file not shown.
26
nt1-klausur.cls
Normal file
26
nt1-klausur.cls
Normal file
@@ -0,0 +1,26 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{templates/nt1-klausur}
|
||||
\LoadClass{templates/cel-klausur}
|
||||
|
||||
%\usepackage[final=true]{hyperref}
|
||||
\usepackage{booktabs}
|
||||
|
||||
\pdfoptionpdfminorversion=5
|
||||
|
||||
\examType{Schriftliche Prüfung im Kernfach}
|
||||
\examName{Nachrichtentechnik I}
|
||||
\examAuthors{Johannes Fink; Friedrich K. Jondral}
|
||||
\examDuration{drei}
|
||||
\exerciseCount{zehn}
|
||||
\gradeStep{4}
|
||||
|
||||
\def\matrixnue#1{%
|
||||
\setbox200=\hbox{#1}%
|
||||
\setbox201=\vbox{#1}%
|
||||
\setbox202=\vsplit201 to .5\ht201
|
||||
\vbox{\normalbaselines%
|
||||
{\hrule width 1.2\wd200
|
||||
\hbox{\vrule height.6\ht202 \kern1.15\wd200 \vrule height.6\ht202}}%
|
||||
\kern-1.7\ht202%
|
||||
\hbox{\kern.1\wd200 #1}}%
|
||||
}
|
||||
15
nt2-klausur.cls
Normal file
15
nt2-klausur.cls
Normal file
@@ -0,0 +1,15 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{templates/nt1-klausur}
|
||||
\LoadClass{templates/cel-klausur}
|
||||
|
||||
%\usepackage[final=true]{hyperref}
|
||||
\usepackage{booktabs}
|
||||
|
||||
\pdfoptionpdfminorversion=5
|
||||
|
||||
\examType{Schriftliche Prüfung im Modellfach}
|
||||
\examName{Nachrichtentechnik II}
|
||||
\examAuthors{Noha El Gemayel; Holger Jäkel}
|
||||
\examDuration{zwei}
|
||||
\exerciseCount{fünf}
|
||||
\gradeStep{3}
|
||||
20
title.exam.tex
Normal file
20
title.exam.tex
Normal file
@@ -0,0 +1,20 @@
|
||||
\makeatletter
|
||||
\ssection{Hinweise zur Prüfung}
|
||||
Die Prüfungsdauer beträgt \textbf{\theExamDuration} Stunden. Es sind die nachstehend genannten \textbf{\theExerciseCount} gleich\-ge\-wich\-teten Aufgaben zu bearbeiten. Benutzen Sie nur die vorgedruckten Blätter, bearbeiten Sie die Aufgaben auf getrennten Blättern und geben Sie auf jedem Blatt die Nummer der Aufgabe sowie Ihre Matrikelnummer deutlich an. Verwenden Sie bei der Bearbeitung keine rote Farbe und vermeiden Sie, das vorgedruckte Doppelblatt zu beschriften. Beachten Sie besonders: \textbf{Aus Ihrer Ausarbeitung müssen der Lösungsweg und die gültige Lösung eindeutig erkennbar sein}, da sonst das Ergebnis nicht gewertet werden kann. Schreiben Sie leserlich.
|
||||
|
||||
\ssection{Hilfsmittel}
|
||||
Erlaubt sind \textbf{ein} beidseitig von eigener Hand mit Bleistift, Kugelschreiber, Füller o. Ä. beschriebenes \textbf{A4-Blatt} (Original, keine Kopie) sowie ein \textbf{nicht-programmierbarer} Taschenrechner.
|
||||
\textbf{Schalten Sie alle anderen elektronischen Geräte für die Dauer der Prüfung aus}.
|
||||
|
||||
\ssection{Abzugeben}
|
||||
sind Ihre in das Doppelblatt eingelegten Ausarbeitungen.
|
||||
|
||||
\ssection{Nicht abzugeben}
|
||||
sind die Aufgabenblätter sowie Ihr Konzeptpapier.
|
||||
|
||||
\ssection{Das Ergebnis}
|
||||
Ihrer Prüfung erfahren Sie ab dem \textbf{\theGradeDate} durch Aushang im Schaukasten des Instituts (Geb. 30.34, Lichttechnisches Institut, EG).
|
||||
|
||||
\ssection{Klausureinsicht}
|
||||
ist am {\theReviewDate} im Seminarraum des Instituts (Geb. 05.01, Kreuzstr. 11, 3.~OG). \theReviewMode
|
||||
\makeatother
|
||||
46
title.review.tex
Normal file
46
title.review.tex
Normal file
@@ -0,0 +1,46 @@
|
||||
\def\theTotalPoints{??}%
|
||||
\ifnum \thePointsPerExercise=10
|
||||
\ifthenelse{\equal{\theExerciseCount}{sechs}}{\def\theTotalPoints{60}}{}
|
||||
\ifthenelse{\equal{\theExerciseCount}{zehn}}{\def\theTotalPoints{100}}{}
|
||||
\fi
|
||||
%
|
||||
%
|
||||
\ssection{Hinweise zur Einsicht}
|
||||
Diese Klausureinsicht ermöglicht Ihnen die Benotung Ihrer Klausur nachzuvollziehen und die Bewertung zu kontrollieren. Es gibt \textbf{\theExerciseCount} Aufgaben, die jeweils mit bis zu \textbf{\thePointsPerExercise{} Punkten} bewertet werden können. Insgesamt sind \textbf{\theTotalPoints{} Punkte} erreichbar. Zum Bestehen dieser Klausur werden mindestens \textbf{\thePointsToPass{} Punkte} benötigt. Die Verteilung der Punkte auf die Teilaufgaben ist fest vorgegeben (siehe unten, neben den Aufgabenstellungen).
|
||||
Bei der Bewertung werden immer nur \textbf{ganze Punkte} vergeben.
|
||||
|
||||
\newcounter{NotenPunkte}\setcounter{NotenPunkte}{0}
|
||||
\newcommand{\nextGradeSpan}[1][\theGradeStep]{%
|
||||
\theNotenPunkte{--}\addtocounter{NotenPunkte}{#1}\addtocounter{NotenPunkte}{-1}\theNotenPunkte\addtocounter{NotenPunkte}{1}
|
||||
}
|
||||
%
|
||||
\ssection{Notenschlüssel}
|
||||
\\[-3mm]
|
||||
\renewcommand{\arraystretch}{1.3}
|
||||
\setlength{\tabcolsep}{1.5mm}
|
||||
\begin{tabular*}{\textwidth}{| l @{\extracolsep{\fill} } *{11}{|c} |}
|
||||
\hline
|
||||
%
|
||||
Punkte &
|
||||
\nextGradeSpan[\thePointsToPass] & % 5.0
|
||||
\nextGradeSpan &
|
||||
\nextGradeSpan &
|
||||
\nextGradeSpan &
|
||||
\nextGradeSpan &
|
||||
\nextGradeSpan &
|
||||
\nextGradeSpan &
|
||||
\nextGradeSpan &
|
||||
\nextGradeSpan &
|
||||
\nextGradeSpan &
|
||||
\theNotenPunkte{ -- }\theTotalPoints \\
|
||||
%
|
||||
\hline Note & 5.0 & 4.0 & 3.7 & 3.3 & 3.0 & 2.7 & 2.3 & 2.0 & 1.7 & 1.3 & 1.0 \\
|
||||
%
|
||||
\hline
|
||||
\end{tabular*}
|
||||
|
||||
\ssection{Kontrolle}
|
||||
Bitte stellen Sie als erstes sicher, dass Ihre gesamten Ausarbeitungen (Vorder- und Rückseite jedes Blatts) in die Bewertung miteinbezogen wurden. Auch sollte überprüft werden, dass die Punkte in den Aufgaben richtig addiert und auf das Deckblatt eingetragen wurden.
|
||||
|
||||
\ssection{Folgefehler}
|
||||
Hängt eine Teilaufgabe von den Ergebnissen der vorherigen ab, können eventuelle Folgefehler von der Bewertung ausgenommen werden. In welchem Umfang dies erfolgt und ob weiterhin die volle Punktezahl erreicht werden kann, liegt im Ermessen des jeweiligen Korrektors.
|
||||
14
wt-klausur.cls
Normal file
14
wt-klausur.cls
Normal file
@@ -0,0 +1,14 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{templates/wt-klausur}
|
||||
\LoadClass{templates/cel-klausur}
|
||||
|
||||
\usetikzlibrary{arrows,automata}
|
||||
|
||||
\examType{Schriftliche Prüfung im Grundlagenfach}
|
||||
\examName{Wahrscheinlichkeitstheorie}
|
||||
\examAuthors{Sebastian Koslowski; Friedrich K. Jondral}
|
||||
\examDuration{zwei}
|
||||
\exerciseCount{sechs}
|
||||
\gradeStep{3}
|
||||
|
||||
%\newcommand{\labelpunkte}{\bf \thePunkte pt}
|
||||
Reference in New Issue
Block a user