From 58b6f5a9abadf340a55b83355f9e8485709e1bac Mon Sep 17 00:00:00 2001
From: Frank Fuhlbrück
Date: Tue, 1 Feb 2022 17:36:15 +0100
Subject: prober skipping of lexercises and subtasks

---
 examples/exshexample.tex | 40 ++++++++++++++++++++++++++++++++++++----
 1 file changed, 36 insertions(+), 4 deletions(-)

(limited to 'examples/exshexample.tex')

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}
 
-- 
cgit v1.2.3

