diff options
Diffstat (limited to 'macros/latex/contrib/tuda-ci/tex/tudaexercise.cls')
-rw-r--r-- | macros/latex/contrib/tuda-ci/tex/tudaexercise.cls | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/macros/latex/contrib/tuda-ci/tex/tudaexercise.cls b/macros/latex/contrib/tuda-ci/tex/tudaexercise.cls index 3344566aea..36e622b11c 100644 --- a/macros/latex/contrib/tuda-ci/tex/tudaexercise.cls +++ b/macros/latex/contrib/tuda-ci/tex/tudaexercise.cls @@ -1,4 +1,4 @@ -%% This is file `tudaexercise.cls' version 3.26 (2022/06/10), +%% This is file `tudaexercise.cls' version 3.27 (2022/08/03), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.26} -\def\filedate{2022/06/10} +\def\fileversion{3.27} +\def\filedate{2022/08/03} \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} \ProvidesExplClass{tudaexercise} @@ -850,6 +850,7 @@ \cs_undefine:N \subtask \NewDocumentEnvironment{subtask}{o}{ + \begingroup \tl_if_in:nnT {#1} {=} { \keys_set:nn {ptxcd/subtask} {#1} } @@ -858,13 +859,18 @@ }{ \@subtask{\l_ptxcd_ex_title_tl} } - }{} + \tl_gset_eq:NN \g_tmpa_tl \@currentlabel + \endgroup + \tl_set_eq:NN \@currentlabel \g_tmpa_tl +}{} \NewDocumentEnvironment{subtask*}{om}{ \begingroup \IfNoValueF{#1}{\keys_set:nn {ptxcd/subtask}{#1}} \@subtask{#2} + \tl_gset_eq:NN \g_tmpa_tl \@currentlabel \endgroup + \tl_set_eq:NN \@currentlabel \g_tmpa_tl }{} %Solution mechanism |