Verified Commit db144baa authored by Adrian C. Hinrichs's avatar Adrian C. Hinrichs
Browse files

Fix a Bug.

If the optional Argument of newproblem was used, t would always set the problem counter to 3
parent 16f958c7
......@@ -87,7 +87,7 @@ Abgabe: \@abgabe\\
\newcommand{\newproblem}[1][]{\stepcounter{problem}
\ifthenelse{\equal{#1}{}}
{ }
{\setcounter{problem}{3}}
{\setcounter{problem}{#1}}
\problem{Aufgabe \arabic{problem}}
}
\newcommand{\subproblem}[1]{\@startsection{subproblem}%Name
......@@ -97,7 +97,13 @@ Abgabe: \@abgabe\\
{.5ex \@plus .5ex}%afterskip
{\normalfont\large\bfseries}%style
*{#1}}
\newcommand{\newsubproblem}{\subproblem{Aufgabe \stepcounter{subproblem} \arabic{problem}.\alph{subproblem}}}
\newcommand{\newsubproblem}[1][]{\stepcounter{subproblem}
\ifthenelse{\equal{#1}{}}
{ }
{\setcounter{subproblem}{#1}
\subproblem{Aufgabe \arabic{problem}}
}
\newcommand{\subsubproblem}[1]{\@startsection{subsubproblem}%Name
{3}%Level
......
Markdown is supported
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