diff --git a/tex/homework.cls b/tex/homework.cls index a404dbb..082d0b5 100644 --- a/tex/homework.cls +++ b/tex/homework.cls @@ -108,3 +108,18 @@ \end{tikzpicture} \end{flushright} } + + +\newcommand{\exercise}[2][]{% + \def\@exercise{#2}% + \subsection*{Exercise #2. #1} +} + +\newcommand{\subexercise}[2][]{% + \subsubsection*{Exercise \@exercise.#2. #1} +} + +\newcommand{\sect}[1]{ + \def\@section{#1} + \section*{#1} +}