From 0f1e5c6c1712957a86654177d55175aaf7cd2f8e Mon Sep 17 00:00:00 2001
From: Frank Fuhlbrück
Date: Fri, 21 Jan 2022 18:01:24 +0100
Subject: environments for main task and subtasks

---
 examples/exshexample.tex | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

(limited to 'examples/exshexample.tex')

diff --git a/examples/exshexample.tex b/examples/exshexample.tex
index 6a0d4f2..f7782e0 100644
--- a/examples/exshexample.tex
+++ b/examples/exshexample.tex
@@ -1,4 +1,4 @@
-\long\def\ifbeamer#1#2{#2}
+\long\def\ifbeamer#1#2{#1}
 \ifbeamer{\documentclass{beamer}}{\documentclass{article}}
 
 %navigation symbols and the title collide if 
@@ -35,7 +35,8 @@
 
 
 \exshset{solutions=true,
-task restate font={\color{black!60}}}
+task restate font={\color{black!60}},
+}
 
 \begin{sheet}[note={Learn how to create nice exercise sheets.},
   date={Novanuar 42, -2022},title={First Sheet}]
@@ -135,19 +136,22 @@ task restate font={\color{black!60}}}
   \end{exercise}
   \end{frame}
   
-  \begin{exercise}[points={many, many}]
-    \begin{maintask}[savetasks]
+  \begin{exercise}[points={many, many},savetasks,
+    main task font={\scshape},subtask font={\itshape}
+  ]
+    \begin{maintask}
       The exercise task can be saved and restated.
     \end{maintask}
-    \begin{subtasks}[savetasks]
-      \item first
+    \begin{subtasks}
+      \subtask{first}
       \begin{solution}
         None (yet).
       \end{solution}
-      \item second
+      \subtask{second}
     \end{subtasks}
     I forgot all the tasks!
     \restatetask
+    Yeah, but what about the subtasks? I forgot the \restatetask[1] and the \restatetask[2] one. Or did I?
   \end{exercise}
 \end{sheet}
 
-- 
cgit v1.2.3

