Skip to content

Commit

Permalink
fine tuning on mock-up exam
Browse files Browse the repository at this point in the history
  • Loading branch information
wallscheid committed Jul 28, 2024
1 parent 67c318a commit 8ebda6c
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 37 deletions.
58 changes: 35 additions & 23 deletions exam/examClass.cls
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@


\newif\ifsolution
\newif\ifgerman

\DeclareOption{solution}{\solutiontrue}
\DeclareOption{german}{\germantrue}
\ProcessOptions\relax


Expand Down Expand Up @@ -96,6 +98,7 @@
%\par
\setlength{\parskip}{0pt}
\noindent \ignorespaces
\underline{Answer:}\\
#1
\fi
}
Expand All @@ -105,10 +108,12 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NewDocumentEnvironment{germanblock}{+b}
{
\color{gray}
\setlength{\parskip}{0pt}
\noindent \ignorespaces
#1
\ifgerman
\color{gray}
\setlength{\parskip}{0pt}
\noindent \ignorespaces
#1
\fi
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down Expand Up @@ -221,9 +226,6 @@
\color{black}
\normalsize \section*{\textbf{Task~\thetaskCount:~#1 \hfill [\total{taskPointsD}~Points]}}
\fi

% \addcontentsline{toc}{section}{\protect\numberline{}Task~\thetaskCount:~#1}
% \setlength{\parskip}{-12pt}
}


Expand Down Expand Up @@ -271,16 +273,18 @@
\setcounter{taskCountGerman}{0}

\newcommand{\taskGerman}[1]{
\stepcounter{taskCountGerman}
\ifnum\value{taskCountGerman}=1
\setlength{\parskip}{-12pt}
\else
\ifgerman
\stepcounter{taskCountGerman}
\ifnum\value{taskCountGerman}=1
\setlength{\parskip}{-12pt}
\else
\setlength{\parskip}{-12pt}
\fi
\normalsize \color{gray} \section*{\textbf{Aufgabe~\thetaskCountGerman:~#1}}
\addcontentsline{toc}{section}{\protect\numberline{}Aufgabe~\thetaskCountGerman:~#1}
\setlength{\parskip}{-12pt}
\fi
\normalsize \color{gray} \section*{\textbf{Aufgabe~\thetaskCountGerman:~#1}}
\addcontentsline{toc}{section}{\protect\numberline{}Aufgabe~\thetaskCountGerman:~#1}
\setlength{\parskip}{-12pt}
\color{black}
\color{black}
\fi
}


Expand All @@ -292,13 +296,14 @@
\setcounter{subtaskCountGerman}{0}

\newcommand{\subtaskGerman}[1]{
{\stepcounter{subtaskCountGerman}
\color{gray}
\normalsize
\setlength{\parskip}{0pt}
\thetaskCountGerman.\thesubtaskCountGerman \ #1
}

\ifgerman
{\stepcounter{subtaskCountGerman}
\color{gray}
\normalsize
\setlength{\parskip}{0pt}
\thetaskCountGerman.\thesubtaskCountGerman \ #1
}
\fi
}


Expand Down Expand Up @@ -345,3 +350,10 @@
\newcolumntype{R}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{L}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Further counters and caption %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\thetable}{\arabic{table}}
\renewcommand{\thefigure}{\arabic{figure}}
13 changes: 3 additions & 10 deletions exam/summer2024/main.tex
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
% !TeX root = main.tex

%% add [solution]
\documentclass[]{C:/Git/EMD_Course/exam/examClass}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Exam Include Only%%%
% \includeonly{tex/exercise05}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Option: [solution] -> shows exemplary solutions directly after each task
% Option: [german] -> adds German translations for tasks and subtasks
\documentclass[german]{C:/Git/EMD_Course/exam/examClass}

\begin{document}

\include{tex/titlepage}
\include{tex/task01}
\include{tex/task02}
\include{tex/task03}
\include{tex/task04}

\end{document}
8 changes: 5 additions & 3 deletions exam/summer2024/tex/task01.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
\begin{figure}[h!]
\centering
\includegraphics[width=0.6\textwidth]{fig/Faradays_disc.pdf}
\caption{Faraday disk: Rotating copper disk in a magnetic field}
\caption{Faraday's disk (rotating copper disk in a homogenous magnetic field)}
\label{fig:faraday_disk}
\end{figure}

Expand Down Expand Up @@ -49,10 +49,12 @@



\subtask{Discuss the three following cases regarding the presence of an induced voltage $U$: \vspace{-0.5cm}\begin{itemize} \item The disc is at standstill, but the permanent magnet is rotating.
\subtask{Discuss the three following cases regarding the presence of an induced voltage:}{2}
\begin{itemize}
\item The disc is at standstill, but the permanent magnet is rotating.
\item The disc and the permanent magnet are rotating, but with different speeds.
\item The disc and the permanent magnets are at standstill, but the electrical circuit is rotating.
\end{itemize}}{2}
\end{itemize}
\subtaskGerman{Diskutieren Sie die drei folgenden Fälle bezüglich der Präsenz einer induzierten Spannung $U$: \begin{itemize}
\item Die Scheibe steht still, aber der Permanentmagnet rotiert.
\item Die Scheibe und der Permanentmagnet rotieren, aber mit unterschiedlichen Geschwindigkeiten.
Expand Down
2 changes: 1 addition & 1 deletion exam/summer2024/tex/task04.tex
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
$$Q = 3 U_\mathrm{s} I_\mathrm{s} \sin(\varphi) = 3 \cdot \SI{2.24}{\kilo\volt} \cdot \SI{0.62}{\kilo\ampere} \cdot \sin(\SI{-16.25}{\degree}) = \SI{-1.17}{\mega\volt\ampere}.$$
\end{solutionblock}

\subtask{What torque $T$ is associated with the above operating point assuming a pole pair number $p=3$? What is the theoretical maximum torque $T_\mathrm{max}$ for the given stator voltage operating at a grid frequency of $f=\SI{50}{\hertz}$?}{2}
\subtask{What torque $T$ is associated with the above operating point for a pole pair number $p=3$? What is the theoretical maximum torque $T_\mathrm{max}$ for the given stator voltage operating at a grid frequency of $f=\SI{50}{\hertz}$?}{2}
\subtaskGerman{Welches Drehmoment $T$ ist dem obigen Betriebspunkt zugeordnet, wenn eine Polpaarzahl $p=3$ angenommen wird? Was ist das theoretische maximale Drehmoment $T_\mathrm{max}$ für die gegebene Statorspannung bei einer Netzfrequenz von $f=\SI{50}{\hertz}$?}

\begin{solutionblock}
Expand Down

0 comments on commit 8ebda6c

Please sign in to comment.