diff options
author | Karl Berry <karl@freefriends.org> | 2021-03-16 22:14:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-03-16 22:14:13 +0000 |
commit | 7c0ebeb7f59f43c61bc1537eaee59f581cf32702 (patch) | |
tree | 0b4e3dc9b54d4cfdd683b83c9bb0bbeb371f24d2 /Master/texmf-dist/tex/latex | |
parent | 4793e0a45d5f0c8cab35a90470ee8f56abda1aef (diff) |
tuda-ci (16mar21) (branch)
git-svn-id: svn://tug.org/texlive/branches/branch2020.0@58447 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
28 files changed, 293 insertions, 107 deletions
diff --git a/Master/texmf-dist/tex/latex/tuda-ci/beamercolorthemeTUDa.sty b/Master/texmf-dist/tex/latex/tuda-ci/beamercolorthemeTUDa.sty index 6f0335630c5..8293ce8e432 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/beamercolorthemeTUDa.sty +++ b/Master/texmf-dist/tex/latex/tuda-ci/beamercolorthemeTUDa.sty @@ -1,4 +1,4 @@ -%% This is file `beamercolorthemeTUDa.sty' version 3.12 (2021/03/06), +%% This is file `beamercolorthemeTUDa.sty' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{beamercolorthemeTUDa} [\filedate\space\fileversion] diff --git a/Master/texmf-dist/tex/latex/tuda-ci/beamerfontthemeTUDa.sty b/Master/texmf-dist/tex/latex/tuda-ci/beamerfontthemeTUDa.sty index 66692fe446e..3e4d20a20f8 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/beamerfontthemeTUDa.sty +++ b/Master/texmf-dist/tex/latex/tuda-ci/beamerfontthemeTUDa.sty @@ -1,4 +1,4 @@ -%% This is file `beamerfontthemeTUDa.sty' version 3.12 (2021/03/06), +%% This is file `beamerfontthemeTUDa.sty' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{beamerfontthemeTUDa} [\filedate\space\fileversion] diff --git a/Master/texmf-dist/tex/latex/tuda-ci/beamerinnerthemeTUDa.sty b/Master/texmf-dist/tex/latex/tuda-ci/beamerinnerthemeTUDa.sty index 04535b92d71..ddc9a8571aa 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/beamerinnerthemeTUDa.sty +++ b/Master/texmf-dist/tex/latex/tuda-ci/beamerinnerthemeTUDa.sty @@ -1,4 +1,4 @@ -%% This is file `beamerinnerthemeTUDa.sty' version 3.12 (2021/03/06), +%% This is file `beamerinnerthemeTUDa.sty' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \NeedsTeXFormat{LaTeX2e} \ProvidesExplPackage{beamerinnerthemeTUDa}{\filedate}{\fileversion}{Inner~beamer~theme~of~tuda-ci} diff --git a/Master/texmf-dist/tex/latex/tuda-ci/beamerouterthemeTUDa.sty b/Master/texmf-dist/tex/latex/tuda-ci/beamerouterthemeTUDa.sty index b87c5f93661..341de964a0c 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/beamerouterthemeTUDa.sty +++ b/Master/texmf-dist/tex/latex/tuda-ci/beamerouterthemeTUDa.sty @@ -1,4 +1,4 @@ -%% This is file `beamerouterthemeTUDa.sty' version 3.12 (2021/03/06), +%% This is file `beamerouterthemeTUDa.sty' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \NeedsTeXFormat{LaTeX2e} \ProvidesExplPackage{beamerouterthemeTUDa}{\filedate}{\fileversion}{Outer~beamer~theme~of~tuda-ci} diff --git a/Master/texmf-dist/tex/latex/tuda-ci/beamerthemeTUDa-mecheng.sty b/Master/texmf-dist/tex/latex/tuda-ci/beamerthemeTUDa-mecheng.sty index 82c610757ae..fec0470d92b 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/beamerthemeTUDa-mecheng.sty +++ b/Master/texmf-dist/tex/latex/tuda-ci/beamerthemeTUDa-mecheng.sty @@ -1,4 +1,4 @@ -%% This is file `beamerthemeTUDa-mecheng.sty' version 3.12 (2021/03/06), +%% This is file `beamerthemeTUDa-mecheng.sty' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \RequirePackage{expl3} \ProvidesExplPackage{beamerthemeTUDa-mecheng}{\filedate}{\fileversion}{specific tudabeamer configuration for the department of mechanical engineering} diff --git a/Master/texmf-dist/tex/latex/tuda-ci/beamerthemeTUDa.sty b/Master/texmf-dist/tex/latex/tuda-ci/beamerthemeTUDa.sty index cd1ac104bc4..ce1f21b2285 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/beamerthemeTUDa.sty +++ b/Master/texmf-dist/tex/latex/tuda-ci/beamerthemeTUDa.sty @@ -1,4 +1,4 @@ -%% This is file `beamerthemeTUDa.sty' version 3.12 (2021/03/06), +%% This is file `beamerthemeTUDa.sty' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{beamerthemeTUDa} [\filedate\space\fileversion\space beamer theme using the Corporate Design of TU Darmstadt] diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tuda-a0paper.clo b/Master/texmf-dist/tex/latex/tuda-ci/tuda-a0paper.clo index 487d2fc2434..f0c6be90682 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tuda-a0paper.clo +++ b/Master/texmf-dist/tex/latex/tuda-ci/tuda-a0paper.clo @@ -1,4 +1,4 @@ -%% This is file `tuda-a0paper.clo' version 3.12 (2021/03/06), +%% This is file `tuda-a0paper.clo' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \ProvidesExplFile{tuda-a0paper.clo}{\filedate}{\fileversion}{tuda-ci~size~adjustments~for~a0paper} \cs_set:Nn \ptxcd_setup_title_sizes: { \cs_set:Nn \ptxcd_title_fontsize: {{125pt}{165pt}} diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tuda-a1paper.clo b/Master/texmf-dist/tex/latex/tuda-ci/tuda-a1paper.clo index c13f040efb3..7501b3832d9 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tuda-a1paper.clo +++ b/Master/texmf-dist/tex/latex/tuda-ci/tuda-a1paper.clo @@ -1,4 +1,4 @@ -%% This is file `tuda-a1paper.clo' version 3.12 (2021/03/06), +%% This is file `tuda-a1paper.clo' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \ProvidesExplFile{tuda-a1paper.clo}{\filedate}{\fileversion}{tuda-ci~size~adjustments~for~a0paper} \cs_set:Nn \ptxcd_setup_title_sizes: { \cs_set:Nn \ptxcd_title_fontsize: {{86pt}{120pt}} diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tuda-a2paper.clo b/Master/texmf-dist/tex/latex/tuda-ci/tuda-a2paper.clo index 91eb35a46d0..23ad5ed2ce1 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tuda-a2paper.clo +++ b/Master/texmf-dist/tex/latex/tuda-ci/tuda-a2paper.clo @@ -1,4 +1,4 @@ -%% This is file `tuda-a2paper.clo' version 3.12 (2021/03/06), +%% This is file `tuda-a2paper.clo' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \ProvidesExplFile{tuda-a2paper.clo}{\filedate}{\fileversion}{tuda-ci~size~adjustments~for~a0paper} \cs_set:Nn \ptxcd_setup_title_sizes: { \cs_set:Nn \ptxcd_title_fontsize: {{65pt}{82pt}} diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tuda-a3paper.clo b/Master/texmf-dist/tex/latex/tuda-ci/tuda-a3paper.clo index 5a1a27659b0..bf4ac893159 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tuda-a3paper.clo +++ b/Master/texmf-dist/tex/latex/tuda-ci/tuda-a3paper.clo @@ -1,4 +1,4 @@ -%% This is file `tuda-a3paper.clo' version 3.12 (2021/03/06), +%% This is file `tuda-a3paper.clo' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \ProvidesExplFile{tuda-a3paper.clo}{\filedate}{\fileversion}{tuda-ci~size~adjustments~for~a3paper} \cs_set:Nn \ptxcd_setup_title_sizes: { \cs_set:Nn \ptxcd_title_fontsize: {{47pt}{61pt}} diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tuda-a4paper.clo b/Master/texmf-dist/tex/latex/tuda-ci/tuda-a4paper.clo index 7f76d15bd9c..dc5559281bf 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tuda-a4paper.clo +++ b/Master/texmf-dist/tex/latex/tuda-ci/tuda-a4paper.clo @@ -1,4 +1,4 @@ -%% This is file `tuda-a4paper.clo' version 3.12 (2021/03/06), +%% This is file `tuda-a4paper.clo' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \ProvidesExplFile{tuda-a4paper.clo}{\filedate}{\fileversion}{tuda-ci~size~adjustments~for~a4paper} \cs_set:Nn \ptxcd_setup_title_sizes: { \cs_set:Nn \ptxcd_title_fontsize: {{36pt}{47pt}} diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tuda-a5paper.clo b/Master/texmf-dist/tex/latex/tuda-ci/tuda-a5paper.clo index 465e4607c7a..20ad91d1bce 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tuda-a5paper.clo +++ b/Master/texmf-dist/tex/latex/tuda-ci/tuda-a5paper.clo @@ -1,4 +1,4 @@ -%% This is file `tuda-a5paper.clo' version 3.12 (2021/03/06), +%% This is file `tuda-a5paper.clo' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \ProvidesExplFile{tuda-a5paper.clo}{\filedate}{\fileversion}{tuda-ci~size~adjustments~for~a5paper} \cs_set:Nn \ptxcd_setup_title_sizes: { \cs_set:Nn \ptxcd_title_fontsize: {{22pt}{28pt}} diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tuda-pgfplots.sty b/Master/texmf-dist/tex/latex/tuda-ci/tuda-pgfplots.sty index 61941505642..a26051caa43 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tuda-pgfplots.sty +++ b/Master/texmf-dist/tex/latex/tuda-ci/tuda-pgfplots.sty @@ -1,4 +1,4 @@ -%% This is file `tuda-pgfplots.sty' version 3.12 (2021/03/06), +%% This is file `tuda-pgfplots.sty' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} % Special thanks to: Sebastian Schöps Institut Theorie Elektromagnetischer Felder (TEMF), TU Darmstadt % The original version of this file has been inspired by the colorscheme in the Metropolis beamer theme by Matthias Vogelgesang https://github.com/matze/mtheme \ProvidesPackage{tuda-pgfplots}[\filedate\space\fileversion\space tuda-ci pgfplots color schemes] diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudabeamer.cls b/Master/texmf-dist/tex/latex/tuda-ci/tudabeamer.cls index 3fc7b0617f4..3ed55f94884 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tudabeamer.cls +++ b/Master/texmf-dist/tex/latex/tuda-ci/tudabeamer.cls @@ -1,4 +1,4 @@ -%% This is file `tudabeamer.cls' version 3.12 (2021/03/06), +%% This is file `tudabeamer.cls' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \NeedsTeXFormat{LaTeX2e} \ProvidesClass{tudabeamer} [\filedate\space\fileversion\space] diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudacolors.def b/Master/texmf-dist/tex/latex/tuda-ci/tudacolors.def index 8ac99880fa0..43c525207c2 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tudacolors.def +++ b/Master/texmf-dist/tex/latex/tuda-ci/tudacolors.def @@ -1,4 +1,4 @@ -%% This is file `tudacolors.def' version 3.12 (2021/03/06), +%% This is file `tudacolors.def' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \ProvidesFile{tudacolors.def} [\filedate\space\fileversion\space Color definitions for tuda-ci] diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudacolors.sty b/Master/texmf-dist/tex/latex/tuda-ci/tudacolors.sty index 2a795747cb4..b94d84e8c47 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tudacolors.sty +++ b/Master/texmf-dist/tex/latex/tuda-ci/tudacolors.sty @@ -1,4 +1,4 @@ -%% This is file `tudacolors.sty' version 3.12 (2021/03/06), +%% This is file `tudacolors.sty' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} \ProvidesExplPackage{tudacolors}{\filedate}{\fileversion}{Color definition for TU Darmstadt's tuda-ci bundle} diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudaexercise.cls b/Master/texmf-dist/tex/latex/tuda-ci/tudaexercise.cls index 659ccdb3514..2f7af0470fe 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.12 (2021/03/06), +%% This is file `tudaexercise.cls' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} \ProvidesExplClass{tudaexercise} @@ -41,7 +41,12 @@ \prop_gput:Nnn \g_ptxcd_clsopts_prop {captions} {nooneline} \prop_gput:Nnn \g_ptxcd_clsopts_prop {parskip} {half-} -\int_new:N \g_ptxcd_ruledheaders_int +\prop_new:N \g__ptxcd_points_collector_prop +\bool_new:N \l__ptxcd_points_auto_bool +\bool_new:N \g__ptxcd_points_bool +\prop_new:N \g__ptxcd_loaded_points_prop +\fp_new:N \g__ptxcd_points_total_fp + \int_new:N \g_ptxcd_paper_int \bool_new:N \g_ptxcd_geometry_bool @@ -51,6 +56,17 @@ \bool_new:N \g_ptxcd_smalltitle_bool \str_new:N \g_ptxcd_department_str +\tl_new:N \g_ptxcd_tmp_tl +\int_new:N \g_ptxcd_tmp_int +\tl_new:N \l_ptxcd_tmp_tl + +\clist_map_inline:nn {section,subsection,subsubsection,task,subtask,@solution} { + \bool_new:c {g__ptxcd_ruled_#1_bool} + \bool_gset_true:c {g__ptxcd_ruled_#1_bool} +} + +\bool_new:N \g__ptxcd_runin_subtask_bool + \RequirePackage{environ} \newenvironment{solution}{}{} @@ -171,6 +187,21 @@ }, solution .default:n = true, unknown .code:n = {\prop_gput:NVn \g_ptxcd_unknown_clsopts_prop \l_keys_key_tl {#1}}, + points .choice:, + points / true .code:n = \bool_set_false:N \l__ptxcd_points_auto_bool\bool_gset_true:N \g__ptxcd_points_bool, + points /false .code:n = \bool_set_false:N \l__ptxcd_points_auto_bool\bool_gset_false:N \g__ptxcd_points_bool, + points / auto .code:n = \bool_set_true:N \l__ptxcd_points_auto_bool\bool_gset_true:N \g__ptxcd_points_bool, + points .initial:n = false, + subtask .choice:, + subtask / ruled .code:n = + \bool_gset_true:N \g__ptxcd_ruled_subtask_bool + \bool_gset_false:N \g__ptxcd_runin_subtask_bool, + subtask / runin .code:n = + \bool_gset_false:N \g__ptxcd_ruled_subtask_bool + \bool_gset_true:N \g__ptxcd_runin_subtask_bool, + subtask / plain .code:n = + \bool_gset_false:N \g__ptxcd_ruled_subtask_bool + \bool_gset_false:N \g__ptxcd_runin_subtask_bool, } \ProcessKeysOptions{ptxcd/exercise} @@ -186,23 +217,33 @@ \RequirePackage{environ} \bool_new:N \l_ptxcd_ex_subtask_fallback_bool +\fp_new:N \l_ptxcd_ex_task_points_fp +\fp_new:N \g__ptxcd_ex_collected_points_fp +\tl_new:N \l_ptxcd_ex_task_credit_tl \keys_define:nn {ptxcd/task}{ - points .int_set:N = \l_ptxcd_ex_task_points_int, + points .choice:, + points / auto .code:n = + \bool_set_true:N \l__ptxcd_points_auto_bool, + points / unknown .code:n = \fp_set:Nn \l_ptxcd_ex_task_points_fp {#1} + \bool_set_false:N \l__ptxcd_points_auto_bool, points .initial:n = 0, - credit .tl_set:N = \l_ptxcd_ex_task_credit_tl, + credit .code:n = \tl_set:Nn \l_ptxcd_ex_task_credit_tl {#1} + \bool_set_false:N \l__ptxcd_points_auto_bool, credit .initial:n =, solution .meta:nn ={ptxcd/exercise}{solution=#1}, } +\fp_new:N \l_ptxcd_ex_subtask_points_fp \keys_define:nn {ptxcd/subtask} { credit .tl_set:N = \l_ptxcd_ex_subtask_credit_tl, credit .initial:n =, - points .int_set:N = \l_ptxcd_ex_subtask_points_int, + points .code:n = \fp_set:Nn \l_ptxcd_ex_subtask_points_fp {#1} + \bool_set_false:N \l__ptxcd_points_auto_bool, points .initial:n = 0, title .tl_set:N = \l_ptxcd_ex_title_tl, title .initial:n =, - unknown .code:n = \bool_set_true:N \l_ptxcd_ex_subtask_fallback_bool \tl_clear:N \l_ptxcd_ex_subtask_credit_tl \int_zero:N \l_ptxcd_ex_subtask_points_int, + unknown .code:n = \bool_set_true:N \l_ptxcd_ex_subtask_fallback_bool \tl_clear:N \l_ptxcd_ex_subtask_credit_tl \fp_zero:N \l_ptxcd_ex_subtask_points_fp, } \keys_define:nn {ptxcd/exercise/headline} { @@ -257,22 +298,30 @@ \renewcommand*\sectionlinesformat[4]{% \parbox{\linewidth}{ + \bool_if:cT {g__ptxcd_ruled_#1_bool} { \rule[5\g_ptxcd_titlerule_dim]{\linewidth}{\g_ptxcd_titlerule_dim}\par\nointerlineskip + } \@hangfrom{% \hskip #2#3}{ \tl_if_eq:nnT {#1} {task} { \exp_args:No \tl_if_empty:nF {#4} - {:~} + {:~} + \bool_if:NT \l__ptxcd_points_auto_bool { + \exp_args:NNx \prop_get:NnN \g__ptxcd_loaded_points_prop {\thetask} \l_ptxcd_tmp_tl + \quark_if_no_value:NF \l_ptxcd_tmp_tl { + \fp_set:Nn \l_ptxcd_ex_task_points_fp {\l_ptxcd_tmp_tl} + } + } } #4 \tl_if_in:nnT {#1} {task} { \tl_if_empty:cTF{l_ptxcd_ex_#1_credit_tl} - {\pointformat{\tl_use:c {l_ptxcd_ex_#1_points_int}}} + {\pointformat{\fp_to_decimal:c {l_ptxcd_ex_#1_points_fp}}} {\creditformat{\tl_use:c {l_ptxcd_ex_#1_credit_tl}}} } \rule[-\dp\strutbox]{0pt}{\dp\strutbox}\par}\nointerlineskip \skip_vertical:n {\ptxcd_titlerule_sep: -\dp\strutbox} - \smash{\rule{\linewidth}{\g_ptxcd_titlerule_dim}} + \bool_if:cT {g__ptxcd_ruled_#1_bool} {\smash{\rule{\linewidth}{\g_ptxcd_titlerule_dim}}} }} @@ -676,21 +725,26 @@ \newcommand*{\StudentIDsep}{:~} \providecommand{\creditformat}[1]{\space(#1)} +\providecommand{\creditformatsum}[1]{\creditformat{#1}} \newcommand*{\pointformat}[1]{ - \int_case:nnF {#1} + \fp_compare:nF {#1 = 0} { + \bool_if:NTF \l__ptxcd_points_auto_bool + \creditformatsum + \creditformat { - {0} {} - {1} {\creditformat{\int_to_arabic:n {#1}\space\PointName}} + \fp_to_decimal:n {#1}\space + \fp_compare:nTF {#1=1} + \PointName + \PointsName } - {\creditformat{\int_to_arabic:n {#1}\space\PointsName}} } +} \providecaptionname{ngerman, german}{\PointName}{Punkt} \providecaptionname{english, american, british}{\PointName}{Point} \providecommand{\PointsName}{Punkte} \providecaptionname{ngerman, german}{\PointsName}{Punkte} \providecaptionname{english, american, british}{\PointsName}{Points} - %Has to be initialized after captionnames have been defined \AtBeginDocument{ \ptxcd_update_headline_boxes: @@ -698,12 +752,10 @@ \global\let\ConfigureHeadline\ptxcd_ConfigureHeadline:n } - - %task environment \DeclareSectionCommand[% style=section,% - level=1,% + level=2,% indent=\z@,% beforeskip=\cs_if_exist_use:NF \scr@subsection@beforeskip {-3.25ex\@plus -1ex \@minus -.2ex},% afterskip=\cs_if_exist_use:NF \scr@subsection@afterskip {1.5ex \@plus .2ex},% @@ -712,7 +764,10 @@ tocnumwidth=\cs_if_exist_use:NF \scr@tso@subsection@numwidth {2.3em},% ]{task} -\renewcommand*{\thetask}{\g_ptxcd_ex_sheetnum_tl\tl_if_empty:NF \g_ptxcd_ex_sheetnum_tl{.}\arabic{task}} +\renewcommand*{\thetask}{ + \g_ptxcd_ex_sheetnum_tl\tl_if_empty:NF \g_ptxcd_ex_sheetnum_tl{.} + \arabic{task} +} \renewcommand*{\taskformat}{\taskname\tasksep\thetask{}} \let\@task\task @@ -721,7 +776,17 @@ \NewDocumentEnvironment{task}{om}{ \IfNoValueF{#1}{\keys_set:nn {ptxcd/task}{#1}} \@task{#2} -}{} + \bool_if:NF \l__ptxcd_points_auto_bool { + \prop_gput:Nxx \g__ptxcd_points_collector_prop + {\thetask} {\fp_to_decimal:N \l_ptxcd_ex_task_points_fp} + } +}{ + \bool_if:NT \l__ptxcd_points_auto_bool { + \prop_gput:Nxx \g__ptxcd_points_collector_prop + {\thetask} {\fp_to_decimal:N \g__ptxcd_ex_collected_points_fp} + \fp_gzero:N \g__ptxcd_ex_collected_points_fp + } +} \cs_set_eq:cN {task*} \task \cs_set_eq:cN {endtask*} \endtask @@ -729,7 +794,7 @@ % subtasks \DeclareSectionCommand[% style=section,% - level=2,% + level=3,% indent=\z@,% beforeskip=\cs_if_exist_use:NF \scr@subsubsection@beforeskip {-3.25ex\@plus -1ex \@minus -.2ex},% afterskip=\cs_if_exist_use:NF \scr@subsubsection@afterskip {1.5ex \@plus .2ex},% @@ -739,6 +804,10 @@ counterwithin=task,% ]{subtask} +\bool_if:NT \g__ptxcd_runin_subtask_bool { + \RedeclareSectionCommand[runin=true]{subtask} +} + \renewcommand*{\thesubtask}{\alph{subtask})} \renewcommand*{\subtaskformat}{\thetask{}\thesubtask\enskip} \setkomafont{subtask}{\mdseries\normalsize} @@ -767,14 +836,14 @@ %Solution mechanism \DeclareSectionCommand[% -style=section,% -level=2,% -indent=\z@,% -beforeskip=\cs_if_exist_use:NF \scr@subsubsection@beforeskip {-3.25ex\@plus -1ex \@minus -.2ex},% -afterskip=\cs_if_exist_use:NF \scr@subsubsection@afterskip {1.5ex \@plus .2ex},% -tocstyle=subsection,% -tocindent=\cs_if_exist_use:NF \scr@tso@subsubsection@indent {1.5em},% -tocnumwidth=\cs_if_exist_use:NF \scr@tso@subsubsection@numwidth {2.3em},% + style=section,% + level=3,% + indent=\z@,% + beforeskip=\cs_if_exist_use:NF \scr@subsubsection@beforeskip {-3.25ex\@plus -1ex \@minus -.2ex},% + afterskip=\cs_if_exist_use:NF \scr@subsubsection@afterskip {1.5ex \@plus .2ex},% + tocstyle=subsection,% + 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} @@ -819,5 +888,122 @@ tocnumwidth=\cs_if_exist_use:NF \scr@tso@subsubsection@numwidth {2.3em},% \ptxcd_makeheadrule[color=identbarcolor, width=\textwidth]{ptxcd_headrule} +% Point referencing +\AddtoDoHook{heading/preinit/subtask}{ + \bool_if:NT \g__ptxcd_points_bool { + \fp_gadd:Nn \g__ptxcd_ex_collected_points_fp {\l_ptxcd_ex_subtask_points_fp} + } +} + +\AddtoDoHook{heading/preinit/task}{ + \fp_gzero:N \g__ptxcd_ex_collected_points_fp +} + + +\msg_new:nnn {tudaexercise} {points-differ} { + Value~of~points~changed~for~at~least~one~task.\\ + Please~rerun~LaTeX~to~get~correct~references~and~calculations. +} + +\msg_new:nnn {tudaexercise} {empty-point-mapping} { + I~could~not~find~references~for~points~in~the~aux~file.\\ + Please~rerun~LaTeX~to~get~correct~references~and~calculations. +} + +\msg_new:nnn {tudaexercise} {point-referencing-disabled} { + You~try~to~use~#1.\\ + This~function~is~only~available~with~points=true~or~points=auto.\\ + Please~activate~referencing~to~use~it. +} + +\bool_if:NTF \g__ptxcd_points_bool { + \BeforeClosingMainAux{ + \tl_clear:N \l_tmpa_tl + \tl_clear:N \l_tmpb_tl + \prop_map_inline:Nn \g__ptxcd_points_collector_prop { + \tl_put_right:Nn \l_tmpa_tl {#1=#2,} + } + \prop_map_inline:Nn \g__ptxcd_loaded_points_prop { + \tl_put_right:Nn \l_tmpb_tl {#1=#2,} + } + \tl_if_eq:NNF \l_tmpa_tl \l_tmpb_tl { + \msg_warning:nn {tudaexercise} {points-differ} + } + \iow_now:Nx \@auxout{ + \exp_not:N \ptxcd@LoadPoints[\thetask]{\l_tmpa_tl} + } + } + + \newcommand{\getPoints}[1]{ + \exp_args:NNf \prop_get:NnNTF \g__ptxcd_loaded_points_prop {#1} \l_tmpa_tl + {\l_tmpa_tl} + {\nfss@text{\reset@font\bfseries??}} + } + + \newcommand{\refPoints}[1]{ + \edef\x{#1} + \cs_if_exist:cTF {r@\x} { + \getPoints{\tl_head:v {r@\x}} + }{ + \nfss@text{\reset@font\bfseries??} + } + } + + \newcommand{\getPointsTotal}{ + \fp_use:N \g__ptxcd_points_total_fp + } +} { + \newcommand{\getPoints}[1]{ + \msg_error:nnn {tudaexercise} {point-referencing-disabled} {\getPoints} + } + \newcommand{\refPoints}[1]{ + \msg_error:nnn {tudaexercise} {point-referencing-disabled} {\refPoints} + } + \newcommand{\getPointsTotal}[1]{ + \msg_error:nnn {tudaexercise} {point-referencing-disabled} {\getPointsTotal} + } +} + +\cs_new:Nn \__ptxcd_map_points_helper:nn {#1-#2} +\NewDocumentCommand{\mapPoints}{sO{1}m}{ + \cs_gset_nopar:Nn \__ptxcd_map_points_helper:nn {#3} + \prop_if_empty:NTF \g__ptxcd_loaded_points_prop { + \msg_warning:nn {tudaexercise} {empty-point-mapping} + \__ptxcd_map_points_helper:nn {?task?} {?points?} + }{ + \int_gset:Nn \g_ptxcd_tmp_int {\value{task}} + \setcounter{task}{#2} + \tl_gclear:N \g_ptxcd_tmp_tl + \bool_gset_true:N \g_tmpa_bool + \bool_while_do:Nn \g_tmpa_bool + { + \exp_args:NNx \prop_get:NnNTF \g__ptxcd_loaded_points_prop {\thetask} \l_tmpa_tl + { + \fp_compare:nF {\l_tmpa_tl = 0} + { + \tl_gput_right:Nn \g_ptxcd_tmp_tl {\__ptxcd_map_points_helper:nn} + \tl_gput_right:Nx \g_ptxcd_tmp_tl {{\thetask} {\l_tmpa_tl}} + } + } + {\bool_gset_false:N \g_tmpa_bool} + \stepcounter{task} + } + \setcounter{task}{\int_use:N \g_ptxcd_tmp_int} + \g_ptxcd_tmp_tl + } +} + + +\newcommand*{\ptxcd@LoadPoints}[2][]{ + \prop_gset_from_keyval:Nn \g__ptxcd_loaded_points_prop { + #2 + } + \fp_gzero:N \g__ptxcd_points_total_fp + \prop_map_inline:Nn \g__ptxcd_loaded_points_prop { + \fp_gadd:Nn \g__ptxcd_points_total_fp {##2} + } +} + + \endinput %End of class tudaexercise.cls diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudafonts.sty b/Master/texmf-dist/tex/latex/tuda-ci/tudafonts.sty index 5218c2d8e80..31ef304f4a8 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tudafonts.sty +++ b/Master/texmf-dist/tex/latex/tuda-ci/tudafonts.sty @@ -1,4 +1,4 @@ -%% This is file `tudafonts.sty' version 3.12 (2021/03/06), +%% This is file `tudafonts.sty' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{tudafonts} [\filedate\space\fileversion\space diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudaleaflet.cls b/Master/texmf-dist/tex/latex/tuda-ci/tudaleaflet.cls index ab677c877f9..04d3f395124 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tudaleaflet.cls +++ b/Master/texmf-dist/tex/latex/tuda-ci/tudaleaflet.cls @@ -1,4 +1,4 @@ -%% This is file `tudaleaflet.cls' version 3.12 (2021/03/06), +%% This is file `tudaleaflet.cls' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} \ProvidesExplPackage{tudaleaflet}{\filedate}{\fileversion}{Leaflets using the Corporate Design of TU Darmstadt} diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudaletter.cls b/Master/texmf-dist/tex/latex/tuda-ci/tudaletter.cls index 390cd7b5546..06617572b5a 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tudaletter.cls +++ b/Master/texmf-dist/tex/latex/tuda-ci/tudaletter.cls @@ -1,4 +1,4 @@ -%% This is file `tudaletter.cls' version 3.12 (2021/03/06), +%% This is file `tudaletter.cls' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} \ProvidesExplClass{tudaletter} diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudalettersize10pt.clo b/Master/texmf-dist/tex/latex/tuda-ci/tudalettersize10pt.clo index e5b4e773382..5e863de126e 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tudalettersize10pt.clo +++ b/Master/texmf-dist/tex/latex/tuda-ci/tudalettersize10pt.clo @@ -1,4 +1,4 @@ -%% This is file `tudalettersize10pt.clo' version 3.12 (2021/03/06), +%% This is file `tudalettersize10pt.clo' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudamecheng.cfg b/Master/texmf-dist/tex/latex/tuda-ci/tudamecheng.cfg index d9406c4a81f..1a1f53aca2f 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tudamecheng.cfg +++ b/Master/texmf-dist/tex/latex/tuda-ci/tudamecheng.cfg @@ -1,4 +1,4 @@ -%% This is file `tudamecheng.cfg' version 3.12 (2021/03/06), +%% This is file `tudamecheng.cfg' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \RequirePackage{expl3} \ProvidesExplFile{tudamecheng.cfg} {\filedate}{\fileversion}{Special Features the department of mechanical engineering of Darmstadt's Corporate Design (tuda-ci)} diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudaposter.cls b/Master/texmf-dist/tex/latex/tuda-ci/tudaposter.cls index 0c0e52d1be1..bd3f85cf22e 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tudaposter.cls +++ b/Master/texmf-dist/tex/latex/tuda-ci/tudaposter.cls @@ -1,4 +1,4 @@ -%% This is file `tudaposter.cls' version 3.12 (2021/03/06), +%% This is file `tudaposter.cls' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} \ProvidesExplPackage{tudaposter}{\filedate}{\fileversion}{Poster Layouts for the Corporate Design of TU Darmstadt} diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudapub.cls b/Master/texmf-dist/tex/latex/tuda-ci/tudapub.cls index 51c51186d70..3765e51882f 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tudapub.cls +++ b/Master/texmf-dist/tex/latex/tuda-ci/tudapub.cls @@ -1,4 +1,4 @@ -%% This is file `tudapub.cls' version 3.12 (2021/03/06), +%% This is file `tudapub.cls' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} \ProvidesExplClass{tudapub} diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudarules.sty b/Master/texmf-dist/tex/latex/tuda-ci/tudarules.sty index abfeec0bedf..6c3c3f826ca 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tudarules.sty +++ b/Master/texmf-dist/tex/latex/tuda-ci/tudarules.sty @@ -1,4 +1,4 @@ -%% This is file `tudarules.sty' version 3.12 (2021/03/06), +%% This is file `tudarules.sty' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} \ProvidesExplPackage{tudarules}{\filedate}{\fileversion}{Creation of colored bars for tuda-ci bundle} diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudasciposter.cls b/Master/texmf-dist/tex/latex/tuda-ci/tudasciposter.cls index cfdd7a73cf7..7b1bfc0a983 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tudasciposter.cls +++ b/Master/texmf-dist/tex/latex/tuda-ci/tudasciposter.cls @@ -1,4 +1,4 @@ -%% This is file `tudasciposter.cls' version 3.12 (2021/03/06), +%% This is file `tudasciposter.cls' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} \ProvidesExplPackage{tudasciposter}{\filedate}{\fileversion}{Scientific Poster Layout for TU Darmstadt} diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudasize9pt.clo b/Master/texmf-dist/tex/latex/tuda-ci/tudasize9pt.clo index 74585f6a11d..adb9f88a50e 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tudasize9pt.clo +++ b/Master/texmf-dist/tex/latex/tuda-ci/tudasize9pt.clo @@ -1,4 +1,4 @@ -%% This is file `tudasize9pt.clo' version 3.12 (2021/03/06), +%% This is file `tudasize9pt.clo' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudathesis.cfg b/Master/texmf-dist/tex/latex/tuda-ci/tudathesis.cfg index 7dd33c62929..e9ddbdcab12 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tudathesis.cfg +++ b/Master/texmf-dist/tex/latex/tuda-ci/tudathesis.cfg @@ -1,4 +1,4 @@ -%% This is file `tudathesis.cfg' version 3.12 (2021/03/06), +%% This is file `tudathesis.cfg' version 3.13 (2021/03/16), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.12} -\def\filedate{2021/03/06} +\def\fileversion{3.13} +\def\filedate{2021/03/16} \RequirePackage{expl3} \ProvidesExplFile{tudathesis.cfg} {\filedate}{\fileversion}{Special Features for publication type 'thesis' using TU Darmstadt's Corporate Design (tuda-ci)} |