From b4325b27feab3a4183f51bfe598686eb72a8c1e0 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Fri, 29 Nov 2019 03:01:31 +0000
Subject: CTAN sync 201911290301

---
 macros/latex/contrib/tuda-ci/tex/tudaexercise.cls | 72 +++++++----------------
 1 file changed, 22 insertions(+), 50 deletions(-)

(limited to 'macros/latex/contrib/tuda-ci/tex/tudaexercise.cls')

diff --git a/macros/latex/contrib/tuda-ci/tex/tudaexercise.cls b/macros/latex/contrib/tuda-ci/tex/tudaexercise.cls
index 394ee4388e..ab1ee93857 100644
--- a/macros/latex/contrib/tuda-ci/tex/tudaexercise.cls
+++ b/macros/latex/contrib/tuda-ci/tex/tudaexercise.cls
@@ -1,33 +1,3 @@
-%% This is file `tudaexercise.cls' version 2.02 (2019/11/16),
-%% it is part of
-%% TUDa-CI -- Corporate Design for TU Darmstadt
-%% ----------------------------------------------------------------------------
-%%
-%%  Copyright (C) 2018--2019 by Marei Peischl <marei@peitex.de>
-%%
-%% ============================================================================
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either version 1.3c
-%% of this license or (at your option) any later version.
-%% The latest version of this license is in
-%% http://www.latex-project.org/lppl.txt
-%% and version 1.3c or later is part of all distributions of LaTeX
-%% version 2008/05/04 or later.
-%%
-%% This work has the LPPL maintenance status `maintained'.
-%%
-%% The Current Maintainers of this work are
-%%   Marei Peischl <tuda-ci@peitex.de>
-%%   Markus Lazanowski <latex@ce.tu-darmstadt.de>
-%%
-%% The development respository can be found at
-%% https://github.com/tudace/tuda_latex_templates
-%% Please use the issue tracker for feedback!
-%%
-%% ============================================================================
-%%
-\def\fileversion{2.02}
-\def\filedate{2019/11/16}
 %%
 \def\fileversion{1.01}
 \def\filedate{2019/09/09}
@@ -41,7 +11,7 @@
 \tl_new:N \g_TUDa_thesis_options_tl
 
 \prop_new:N \g_TUDa_clsopts_prop
-\prop_new:N \g_TUDa_unknown_clsopts_prop 
+\prop_new:N \g_TUDa_unknown_clsopts_prop
 \prop_gput:Nnn \g_TUDa_clsopts_prop {captions} {nooneline}
 \prop_gput:Nnn \g_TUDa_clsopts_prop {parskip} {half-}
 
@@ -124,7 +94,7 @@
 	unknown .code:n = {\prop_gput:NVn \g_TUDa_unknown_clsopts_prop \l_keys_key_tl {#1}},
 	BCOR .code:n = \PassOptionsToPackage{bindingoffset=#1}{geometry},
 	bindingoffset .meta:n = {BCOR=#1},
-	captions .code:n = {\prop_gput:Nnx \g_TUDa_clsopts_prop {captions} {	
+	captions .code:n = {\prop_gput:Nnx \g_TUDa_clsopts_prop {captions} {
 		\use:n {\prop_item:Nn \g_TUDa_clsopts_prop {captions}}, #1}
 	},
 	titlepage .code:n = {\msg_warning:nnn {TUDaPub} {titlepage-option-disabled} {#1}},
@@ -152,7 +122,7 @@
 \ProcessKeysOptions{TUDa/pub}
 
 \prop_map_inline:Nn \g_TUDa_clsopts_prop {
-	\tl_if_empty:nTF {#2} 
+	\tl_if_empty:nTF {#2}
 		{\PassOptionsToClass  {#1} {scrartcl}}
 		{
 		\clist_map_inline:nn {#2} {\PassOptionsToClass  {#1=##1} {scrartcl}}
@@ -168,7 +138,7 @@
 
 \prop_map_inline:Nn \g_TUDa_unknown_clsopts_prop {
 	\cs_if_exist:cT {KV@KOMA.scrartcl.cls@#1} {
-	\tl_if_empty:nTF {#2} 
+	\tl_if_empty:nTF {#2}
 		{\KOMAoptions{#1} }
 		{\clist_map_inline:nn {#2} {\KOMAoptions{#1=##1}}}
 	}
@@ -188,7 +158,7 @@
 }}
 
 
-	
+
 
 \usepackage{tudarules}
 \usepackage{tudafonts}
@@ -292,7 +262,7 @@
 \RequirePackage{tudacolors}
 \RequirePackage{environ}
 
-%TODO: mode -> light head. 
+%TODO: mode -> light head.
 
 \setkomafont{pageheadfoot}{\sffamily\small}
 \setkomafont{pagenumber}{}
@@ -301,7 +271,7 @@
 
 \KOMAoptions{footsepline=.5\c_TUDa_smallrule_dim}
 \KOMAoptions{headsepline=.5\c_TUDa_smallrule_dim}
-  
+
 \box_new:N \g_TUDa_ex_headline_odd_box
 \box_new:N \g_TUDa_ex_headline_even_box
 \box_new:N \g_TUDa_ex_headline_oneside_box
@@ -357,7 +327,7 @@
 \cs_new:Nn \TUDa_ex_adjust_headheight: {
 	\if@twoside
 	\dim_set:Nn \l_tmpa_dim {
-		\dim_max:nn 
+		\dim_max:nn
 			{\box_ht:N \g_TUDa_ex_headline_odd_box}
 			{\box_ht:N \g_TUDa_ex_headline_even_box}
 	}
@@ -395,7 +365,7 @@
 			\box_use:N \TUDa@headline_box
 		},
 		addvoffset=-\box_dp:N \TUDa@headline_box
-	]{TUDa.ex.head.above.line}	
+	]{TUDa.ex.head.above.line}
 	\ModifyLayer[
         background,
 %       mode=picture,
@@ -418,7 +388,7 @@
 \tl_gset_eq:NN  \g_TUDa_titleimage_code_tl \c_empty_tl
 \newcommand{\titleimage}[1]{\tl_gset:Nn \g_TUDa_titleimage_code_tl {#1}}
 
-\box_new:N  \g_TUDa_title_box 
+\box_new:N  \g_TUDa_title_box
 \skip_new:N \g_TUDa_title_fill_skip
 
 \renewcommand{\titlepagestyle}{plain.TUDa.ex}
@@ -449,8 +419,8 @@
 	\seq_use:Nnnn \g_TUDa_author_seq {~\authorandname{}~} {,~} {~\&~}
       }
 
-\tl_new:N \g_TUDa_shorttitle_tl      
-      
+\tl_new:N \g_TUDa_shorttitle_tl
+
 \RenewDocumentCommand{\title}{om}{
   \IfNoValueTF{#1}{
     \tl_gset:Nn  \g_TUDa_shorttitle_tl {#2}
@@ -582,7 +552,7 @@
 
 %Logos
 \RequirePackage{graphicx}
-	
+
 %%hyperref
 \usepackage{hyperref}
 \hypersetup{hidelinks, unicode}
@@ -596,7 +566,7 @@
 \newcommand*{\tasksep}{~}%TODO
 
 \providecaptionname{ngerman, german}{\solutionname}{Lösungsvorschlag}
-\providecaptionname{english, american, british}{\taskname}{Solution}
+\providecaptionname{english, american, british}{\solutionname}{Solution}
 \newcommand*{\solutionsep}{:~}
 
 \providecaptionname{ngerman, german}{\StudentNamename}{Nachname,~Vorname}
@@ -618,7 +588,7 @@
 
 
 %task environment
-%TODO: discussion: allow sectioning 
+%TODO: discussion: allow sectioning
 \DeclareSectionCommand[%
 style=section,%
 level=1,%
@@ -678,11 +648,13 @@ tocindent=\cs_if_exist_use:NF \scr@tso@subsubsection@indent {1.5em},%
 tocnumwidth=\cs_if_exist_use:NF \scr@tso@subsubsection@numwidth {2.3em},%
 ]{@solution}
 
-\NewEnviron{solution}{
-  \if_bool:N \l_TUDa_ex_solution_bool
-  \TUDa_ex_solutionheader:
-  \BODY\par
-  \fi:
+
+\def\solution{
+\bool_if:NTF \l_TUDa_ex_solution_bool \TUDa_ex_solutionheader: \iffalse
+}
+
+\def\endsolution{
+	\bool_if:NF \l_TUDa_ex_solution_bool \fi
 }
 
 \setkomafont{@solution}{\normalfont}
-- 
cgit v1.2.3

