From e288485b5e75465264bc0548d231ceda558b105c Mon Sep 17 00:00:00 2001 From: EvilMuffinHa Date: Fri, 10 Feb 2023 02:06:21 -0500 Subject: [PATCH] homwork updates --- tex/homework.cls | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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} +}