aboutsummaryrefslogtreecommitdiff
path: root/examples/exshexample.tex
diff options
context:
space:
mode:
Diffstat (limited to 'examples/exshexample.tex')
-rw-r--r--examples/exshexample.tex40
1 files changed, 36 insertions, 4 deletions
diff --git a/examples/exshexample.tex b/examples/exshexample.tex
index 700ada8..60fa782 100644
--- a/examples/exshexample.tex
+++ b/examples/exshexample.tex
@@ -36,7 +36,7 @@
\exshset{solutions=true,
task restate font={\color{black!60}},
-only=4
+only={5}
}
@@ -83,6 +83,38 @@ only=4
\end{exercise}
\end{sheet}
+\begin{sheet}
+ \begin{Lexercise}
+ task = [[
+ This exercise will be skipped.
+ ]],
+ \end{Lexercise}
+ \begin{Lexercise}
+ task = [[
+ \label{ex:skiplex}%
+ This exercise will be skipped, but it has a reference.
+ ]],
+ subexercises = {[[\label{subex:skiplexOne} first]]},
+ \end{Lexercise}
+ \begin{exercise}[points={many, many},savetasks,
+ main task font={\tiny},subtask font={\itshape}
+ ]
+ \begin{maintask}
+ \label{ex:skipex} This exercise will be skipped
+ \end{maintask}
+% \begin{subtasks}
+% \item {first \label{subex:skipexOne}}
+% \subtask{second}
+% \end{subtasks}
+ \begin{enumerate}
+ \subtask {first \label{subex:skipexOne}}
+ \item {{\label}{subex:skipexTwo}} {12345}
+ \end{enumerate}
+
+ \end{exercise}
+\end{sheet}
+
+
\begin{sheet}[date={Novanuar 21, -2022}]
\begin{exercise}[points={many, many},
firstline={Read the manual.}]
@@ -158,7 +190,9 @@ only=4
options=[[main task font={\itshape}]],
task = [[
This is the main task specified via the Lua
- interface.
+ interface, like subexercise \ref{subex:skiplexOne} in \ref{ex:skiplex}, whereas \ref{subex:skipexOne}
+ and \ref{subex:skipexTwo} in
+ \ref{ex:skipex} use the \LaTeX~interface.
]],
solution=[[
This is a solution for the main task.
@@ -195,9 +229,7 @@ only=4
}
\end{Lexercise}
-
\end{sheet}
-
\end{document}