Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wallscheid committed Jul 27, 2024
2 parents 09f58dd + c443722 commit 8d10496
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions exam/examClass.cls
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%% task %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcounter{taskCount}[exerciseCount]
\newcounter{taskCount}%[exerciseCount]
\setcounter{taskCount}{0}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down Expand Up @@ -222,8 +222,8 @@
\normalsize \section*{\textbf{Task~\thetaskCount:~#1 \hfill [\total{taskPointsD}~Points]}}
\fi

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


Expand All @@ -248,17 +248,17 @@
\fi

% sum up subtask points for task 1
\ifnum \value{subtaskCount} = 1
\ifnum \value{taskCount} = 1
\addtocounter{taskPointsA}{#2}
\fi
% task 2
\ifnum \value{subtaskCount} = 2
\ifnum \value{taskCount} = 2
\addtocounter{taskPointsB}{#2}
\fi
\ifnum \value{subtaskCount} = 3
\ifnum \value{taskCount} = 3
\addtocounter{taskPointsC}{#2}
\fi
\ifnum \value{subtaskCount} = 4
\ifnum \value{taskCount} = 4
\addtocounter{taskPointsD}{#2}
\fi
}
Expand Down
2 changes: 1 addition & 1 deletion exam/summer2024/tex/task01.tex
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
\subtaskGerman{Zeichne}


\subtask{Sketech}{3}
\subtask{Sketech}{2}
\subtaskGerman{Skizziere}

0 comments on commit 8d10496

Please sign in to comment.