aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/exshexample.tex18
1 files changed, 11 insertions, 7 deletions
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}