diff options
author | Karl Berry <karl@freefriends.org> | 2020-09-11 20:52:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-09-11 20:52:13 +0000 |
commit | 926a0d3532953597dadb382e89a94a7aa9a1cdb4 (patch) | |
tree | ff6b0e65851799ba93414254a8b77c2e17ecad26 /Master/texmf-dist/tex/latex/tuda-ci/tudaexercise.cls | |
parent | 2a3e27e6734109519d6263363cf77f6d3fbbe7cb (diff) |
tuda-ci (10sep20)
git-svn-id: svn://tug.org/texlive/trunk@56322 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tuda-ci/tudaexercise.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/tuda-ci/tudaexercise.cls | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudaexercise.cls b/Master/texmf-dist/tex/latex/tuda-ci/tudaexercise.cls index 7f7be57b7f0..ecfab8442d5 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tudaexercise.cls +++ b/Master/texmf-dist/tex/latex/tuda-ci/tudaexercise.cls @@ -1,4 +1,4 @@ -%% This is file `tudaexercise.cls' version 3.00 (2020/09/08), +%% This is file `tudaexercise.cls' version 3.01 (2020/09/11), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.00} -\def\filedate{2020/09/08} +\def\fileversion{3.01} +\def\filedate{2020/09/11} \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} \ProvidesExplClass{tudaexercise} @@ -51,6 +51,24 @@ \bool_new:N \g_ptxcd_smalltitle_bool \str_new:N \g_ptxcd_department_str +\RequirePackage{environ} + +\def\solution{\ptxcd_ex_solutionheader:} +\def\endsolution{} + +\cs_new:Nn \ptxcd_setup_solution: { + \bool_if:NTF \l_ptxcd_ex_solution_bool { + \def\solution{\ptxcd_ex_solutionheader:} + \def\endsolution{} + }{ + \RenewEnviron{solution}{ + \if_false: + \BODY + \fi: + } + } +} + %Message Declaration for option processing \msg_new:nnn{tudaexercise} {titlepage-option-disabled} { You~set~the~titlepage~option~to~#1.\\ |