From fbd489ad3650faa35f63ad8feebf6ca83e1858ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sat, 16 Oct 2021 09:01:30 +0200 Subject: [PATCH] provide \nr{} command for starting writeup of an exercise --- src/exercises/sheet.pycls | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/exercises/sheet.pycls b/src/exercises/sheet.pycls index 39750a0..24d037e 100644 --- a/src/exercises/sheet.pycls +++ b/src/exercises/sheet.pycls @@ -69,3 +69,9 @@ __NEW_IF__(largename,false) %Für Zeilenabstand 1,5 \RequirePackage[onehalfspacing]{setspace} +\RequirePackage[super]{nth} + +\newcommand\nr[1]{ + \section*{__IF__(english)\nth{#1} exercise\else #1. Aufgabe\fi} + \setcounter{equation}{0} +}