diff options
| author | Frank Fuhlbrück | 2022-02-01 17:36:15 +0100 |
|---|---|---|
| committer | Frank Fuhlbrück | 2022-02-01 17:36:15 +0100 |
| commit | 58b6f5a9abadf340a55b83355f9e8485709e1bac (patch) | |
| tree | 76d326f0fe85fba6ad4883e906c73daafd28952c /examples | |
| parent | deada505e9173fcc10c61b211de976af52c3b906 (diff) | |
| download | exercisesheets-58b6f5a9abadf340a55b83355f9e8485709e1bac.tar.gz exercisesheets-58b6f5a9abadf340a55b83355f9e8485709e1bac.tar.bz2 exercisesheets-58b6f5a9abadf340a55b83355f9e8485709e1bac.zip | |
prober skipping of lexercises and subtasks
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/exshexample.tex | 40 |
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} |
