Commit 2c842db0 authored by Matthias Stierle's avatar Matthias Stierle
Browse files

completely changed structure - split into several files for ease-of-use

parent fe5294cd
%TODO 1: Choose language
\usepackage[english]{babel} % Language: english or ngerman
%TODO 2: Fill in date of exam
\newcommand{\examdate}{12.02.2018} % Date of the exam
%TODO 3: Fill in name of course
\newcommand{\class}{Process Analytics} % Name of the course
%TODO 4 (optional): Fill in chair
\newcommand{\chair}{\diss} % \wieins, \wizwei, \widrei, \diss, \diwg
%TODO 5: Fill in exam duration in minutes
\newcommand{\durationminutes}{60} % Exam duration in minutes
%TODO 6: Fill in winter or summer term and year
\newcommand{\term}{\wsterm{} 2017/18} %1) wsterm or ssterm 2) adapt year
%TODO 7: Fill in number of empty pages at end for students to write on
\newcommand{\noemptypages}{0} % Number of empty pages added to the end exam for students to write on
\begin{questions}
% Example: multiple choice
\question[10]
Why is there air?
\begin{checkboxes}
\choice God needs it
\choice Coincidence
\choice So we can breathe
\end{checkboxes}
% Example: open question with parts
\question
What if there were no air?
\begin{parts}
\part[5]
Describe the effect on the balloon industry.
\makeemptybox{1in}
\part[5]
Describe the effect on the aircraft industry.
\makeemptybox{1in}
\end{parts}
% Example: single open question
\question[20]
Define the universe. Give three examples.
\makeemptybox{2in}
\end{questions}
\noindent
\begin{tabular*}{\textwidth}{l @{\extracolsep{\fill}} r @{\extracolsep{6pt}} l}
\textbf{\chair} & & \hfill \textbf{\examdate} \\
\textbf{\class} & & \\
\textbf{\duration: \timelimit} & & \hfill \textbf{\term} \\
\end{tabular*}\\
\rule[2ex]{\textwidth}{2pt}
\IfLanguageName{ngerman}{
\begin{itemize}
\item Bitte tragen Sie alle Informationen ein. Eine nicht unterschriebene Klausur gilt als ungültig!
\item Überprüfen Sie die Vollständigkeit der Aufgabenblätter (\numpages{} Seiten inkl. Deckblatt).
\item Viel Erfolg!
\end{itemize}
} %German
{
\begin{itemize}
\item Please make sure to fill in all required information. In particular, fill in your matriculation number on each sheet and make sure to sign your exam!
\item Check the completeness of your copy (\numpages{} pages including the cover sheet)
\item Good luck!
\end{itemize}
}% English
\noindent
\rule[2ex]{\textwidth}{2pt}
\def\arraystretch{1.5}%
\begin{table}[h]
\centering
\begin{tabular}{|l|c|}
\hline
\IfLanguageName{ngerman}{Vorname}{First Name}: & \hspace{10cm} \\
\hline
\IfLanguageName{ngerman}{Nachname}{Family Name}: & \hspace{10cm} \\
\hline
\studentid : & \hspace{10cm} \\
\hline
\IfLanguageName{ngerman}{Studiengang}{Degree programme}: & \hspace{10cm} \\
\hline
\IfLanguageName{ngerman}{Unterschrift}{Signature}: & \hspace{10cm} \\
\hline
\end{tabular}
\end{table}
\noindent
\rule[2ex]{\textwidth}{2pt}
\begin{center}
Points (to be filled by corrector) \\
\addpoints
\gradetable[v][questions]
\end{center}
\noindent
\rule[2ex]{\textwidth}{2pt}
\newpage
\ No newline at end of file
# How to use
1. Change settings to match your requirements (language etc.) - 1_settings.tex
2. Fill in questions for your exam - 2_questions.tex
3. Optional: Change coversheet - 3_coversheet.tex
\ No newline at end of file
\documentclass[12pt]{exam}
\usepackage[utf8]{inputenc}
%TODO 1: Choose language
\usepackage[ngerman]{babel} % Language: english or ngerman
%TODO 2: Fill in date of exam
\newcommand{\examdate}{XX.XX.XXXX} % Date of the exam
%TODO 3: Fill in name of course
\newcommand{\class}{Course Name} % Name of the course
%TODO 4 (optional): Fill in exam type
\newcommand{\chair}{\diss} % \diss, \wieins, \wizwei,..
%TODO 5: Fill in exam duration in minutes
\newcommand{\durationminutes}{XX} % Exam duration in minutes
%TODO 6: Fill in winter or summer term and year
\newcommand{\term}{\wsterm{} XXXX/XX} %1) wsterm or ssterm 2) adapt year
%TODO 7: Fill in number of empty pages at end for students to write on
\newcommand{\noemptypages}{3} % Number of empty pages added to the end exam for students to write on
\input{1_settings.tex}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath,amssymb}
......@@ -25,116 +10,18 @@
\usepackage{iflang}
\usepackage{pgffor}
\chpword{\IfLanguageName{ngerman}{Punkte}{Points}}
\chsword{\IfLanguageName{ngerman}{Erzielt}{Score}}
\chtword{\IfLanguageName{ngerman}{Gesamt}{Total}}
\IfLanguageName{ngerman}{\pointpoints{Punkt}{Punkte}}{\pointpoints{Point}{Points}}
\chqword{\IfLanguageName{ngerman}{Frage}{Question}}
\chpgword{\IfLanguageName{ngerman}{Seite}{Page}}
\vqword{\IfLanguageName{ngerman}{Aufgabe}{Exercise}}
\vpword{\IfLanguageName{ngerman}{Punkte}{Points}}
\vsword{\IfLanguageName{ngerman}{Erzielt}{Score}}
\vtword{\IfLanguageName{ngerman}{Gesamt}{Total}}
\newcommand{\ssterm}{\IfLanguageName{ngerman}{Sommersemester}{Summer Term}}
\newcommand{\wsterm}{\IfLanguageName{ngerman}{Wintersemester}{Winter Term}}
\newcommand{\timemetric}{\IfLanguageName{ngerman}{Minuten}{minutes}}
\newcommand{\studentid}{\IfLanguageName{ngerman}{Matrikelnummer}{Matriculation number}}
\newcommand{\duration}{\IfLanguageName{ngerman}{Bearbeitungszeit}{Exam duration}}
\newcommand{\pageno}{\IfLanguageName{ngerman}{Seite}{Page}}
\newcommand{\diss}{\IfLanguageName{ngerman}{Lehrstuhl für Digital Industrial Service Systems}{Chair of Digital Industrial Service Systems}}
\newcommand{\wieins}{\IfLanguageName{ngerman}{Lehrstuhl für}{Chair of}}
\newcommand{\wizwei}{\IfLanguageName{ngerman}{Lehrstuhl für}{Chair of}}
\newcommand{\widrei}{\IfLanguageName{ngerman}{Lehrstuhl für}{Chair of}}
\newcommand{\timelimit}{\durationminutes{} \timemetric}
\input{z_commands.tex}
\firstpageheader{}{}{}
\runningheader{\class}{}{\studentid : \hspace{5cm}}
\runningheadrule
\cfoot{\thepage{} / \numpages{}}
\begin{document}
\noindent
\begin{tabular*}{\textwidth}{l @{\extracolsep{\fill}} r @{\extracolsep{6pt}} l}
\textbf{\chair} & & \hfill \textbf{\examdate} \\
\textbf{\class} & & \\
\textbf{\duration: \timelimit} & & \hfill \textbf{\term} \\
\end{tabular*}\\
\rule[2ex]{\textwidth}{2pt}
\IfLanguageName{ngerman}{
\begin{itemize}
\item Bitte tragen Sie alle Informationen ein. Eine nicht unterschriebene Klausur gilt als ungültig!
\item Überprüfen Sie die Vollständigkeit der Aufgabenblätter (\numpages{} Seiten inkl. Deckblatt).
\item Viel Erfolg!
\end{itemize}
} %German
{
\begin{itemize}
\item Please make sure to fill in all required information. In particular, fill in your matriculation number on each sheet and make sure to sign your exam!
\item Check the completeness of your copy (\numpages{} pages including the cover sheet)
\item Good luck!
\end{itemize}
}% English
\noindent
\rule[2ex]{\textwidth}{2pt}
\def\arraystretch{1.5}%
\begin{table}[h]
\centering
\begin{tabular}{|l|c|}
\hline
\IfLanguageName{ngerman}{Vorname}{First Name}: & \hspace{10cm} \\
\hline
\IfLanguageName{ngerman}{Nachname}{Family Name}: & \hspace{10cm} \\
\hline
\studentid : & \hspace{10cm} \\
\hline
\IfLanguageName{ngerman}{Studiengang}{Degree programme}: & \hspace{10cm} \\
\hline
\IfLanguageName{ngerman}{Unterschrift}{Signature}: & \hspace{10cm} \\
\hline
\end{tabular}
\end{table}
\noindent
\rule[2ex]{\textwidth}{2pt}
\begin{center}
Points (to be filled by corrector) \\
\addpoints
\gradetable[v][questions]
\end{center}
\noindent
\rule[2ex]{\textwidth}{2pt}
\newpage
\begin{questions}
% Example multiple choice
\question[1] Informationen sind...
\addpoints
\begin{checkboxes}
\choice Daten in unstrukturierter Form
\choice die Kombination aus Zeichen und Syntax
\choice die Kombination aus Daten und Semantik
\end{checkboxes}
%Example open questions
\question[2] Warum verwenden Modellierer häufig Referenzmodelle?
\makeemptybox{2in}
\begin{document}
\end{questions}
\input{3_coversheet.tex}
\input{2_questions.tex}
%Add empty pages for students to write on
......@@ -153,4 +40,4 @@ Points (to be filled by corrector) \\
}
\fi
\end{document}
\ No newline at end of file
\end{document}
\chpword{\IfLanguageName{ngerman}{Punkte}{Points}}
\chsword{\IfLanguageName{ngerman}{Erzielt}{Score}}
\chtword{\IfLanguageName{ngerman}{Gesamt}{Total}}
\IfLanguageName{ngerman}{\pointpoints{Punkt}{Punkte}}{\pointpoints{Point}{Points}}
\chqword{\IfLanguageName{ngerman}{Frage}{Question}}
\chpgword{\IfLanguageName{ngerman}{Seite}{Page}}
\vqword{\IfLanguageName{ngerman}{Aufgabe}{Exercise}}
\vpword{\IfLanguageName{ngerman}{Punkte}{Points}}
\vsword{\IfLanguageName{ngerman}{Erzielt}{Score}}
\vtword{\IfLanguageName{ngerman}{Gesamt}{Total}}
\newcommand{\ssterm}{\IfLanguageName{ngerman}{Sommersemester}{Summer Term}}
\newcommand{\wsterm}{\IfLanguageName{ngerman}{Wintersemester}{Winter Term}}
\newcommand{\timemetric}{\IfLanguageName{ngerman}{Minuten}{minutes}}
\newcommand{\studentid}{\IfLanguageName{ngerman}{Matrikelnummer}{Matriculation number}}
\newcommand{\duration}{\IfLanguageName{ngerman}{Bearbeitungszeit}{Exam duration}}
\newcommand{\pageno}{\IfLanguageName{ngerman}{Seite}{Page}}
\newcommand{\timelimit}{\durationminutes{} \timemetric}
%Chairs
\newcommand{\diss}{\IfLanguageName{ngerman}{Lehrstuhl für Digital Industrial Service Systems}{Chair of Digital Industrial Service Systems}}
\newcommand{\wieins}{\IfLanguageName{ngerman}{Lehrstuhl für Innovation and Value Creation}{Chair of Innovation and Value Creation}}
\newcommand{\wizwei}{\IfLanguageName{ngerman}{Lehrstuhl für Wirtschaftsinformatik, insbes. im Dienstleistungsbereich}{Chair of Services | Processes | Intelligence}}
\newcommand{\widrei}{\IfLanguageName{ngerman}{Lehrstuhl für IT-Management}{Chair of IT Management}}
\newcommand{\diwg}{\IfLanguageName{ngerman}{Lehrstuhl für Digitalisierung in Wirtschaft und Gesellschaft}{Chair of Digitalization in Economy and Society}}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment