diff options
author | Norbert Preining <norbert@preining.info> | 2019-10-01 03:01:24 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-10-01 03:01:24 +0000 |
commit | 31d84cec65917cfc6ef446f1bf6031cff7c6dc7b (patch) | |
tree | 5288bd8601943a9038885a87d93b71b8fbc0b0dc /macros/latex/contrib/xsim/code | |
parent | bbbe8128e7ae9d816a221377dbf5ff3969bb203b (diff) |
CTAN sync 201910010301
Diffstat (limited to 'macros/latex/contrib/xsim/code')
21 files changed, 124 insertions, 68 deletions
diff --git a/macros/latex/contrib/xsim/code/xsim.auxfile.code.tex b/macros/latex/contrib/xsim/code/xsim.auxfile.code.tex index e5eff8b728..39a4306f59 100644 --- a/macros/latex/contrib/xsim/code/xsim.auxfile.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.auxfile.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 diff --git a/macros/latex/contrib/xsim/code/xsim.base.code.tex b/macros/latex/contrib/xsim/code/xsim.base.code.tex index 32fee6e1bd..df767976b6 100644 --- a/macros/latex/contrib/xsim/code/xsim.base.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.base.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -57,6 +57,8 @@ \cs_generate_variant:Nn \tl_set_rescan:Nnn {Nnn} \cs_generate_variant:Nn \iow_now:Nn {NV} \cs_generate_variant:Nn \str_if_eq:nnT {x} +\cs_generate_variant:Nn \str_if_eq:nnF {xx} +\cs_generate_variant:Nn \str_if_eq_p:nn {e} \cs_generate_variant:Nn \iow_now:Nn {NV} \cs_generate_variant:Nn \prg_new_protected_conditional:Npnn {c} diff --git a/macros/latex/contrib/xsim/code/xsim.blanks.code.tex b/macros/latex/contrib/xsim/code/xsim.blanks.code.tex index 97a37e2f71..18af3f404d 100644 --- a/macros/latex/contrib/xsim/code/xsim.blanks.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.blanks.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -67,7 +67,7 @@ \tl_set:Nn \l__xsim_blank_linespread_tl {#1} , linespread .initial:n = 1 , line-increment .dim_set:N = \l__xsim_blank_line_increment_dim , - line-increment .initial:n = 1pt , + line-increment .initial:n = 0.001\linewidth , line-minimum-length .dim_set:N = \l__xsim_blank_line_minimum_length_dim , line-minimum-length .initial:n = 2em } diff --git a/macros/latex/contrib/xsim/code/xsim.collections.code.tex b/macros/latex/contrib/xsim/code/xsim.collections.code.tex index 62c963d631..b7d348e0d5 100644 --- a/macros/latex/contrib/xsim/code/xsim.collections.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.collections.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -353,7 +353,7 @@ { \bool_if:nTF { - !\str_if_eq_x_p:nn {#1} {all~ exercises} && + !\str_if_eq_p:en {#1} {all~ exercises} && \prop_item:Nn \g__xsim_collections_prop {#1} } { \prg_return_true: } diff --git a/macros/latex/contrib/xsim/code/xsim.definitions.code.tex b/macros/latex/contrib/xsim/code/xsim.definitions.code.tex index 1c27ad960a..02fb1444f7 100644 --- a/macros/latex/contrib/xsim/code/xsim.definitions.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.definitions.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -34,6 +34,8 @@ \DeclareExerciseParameter*!{solution-env} \DeclareExerciseParameter !{exercise-name} \DeclareExerciseParameter !{solution-name} +\DeclareExerciseParameter {exercises-name} +\DeclareExerciseParameter {solutions-name} \DeclareExerciseParameter !{exercise-template} \DeclareExerciseParameter !{solution-template} \DeclareExerciseParameter* {counter} @@ -75,7 +77,7 @@ \DeclareExerciseTagging {tags} \DeclareExerciseTagging {topics} -\xsimsetup{tags/ingore-untagged=false} +\xsimsetup{tags/ignore-untagged=false} % ---------------------------------------------------------------------------- @@ -160,7 +162,9 @@ exercise-env = exercise , solution-env = solution , exercise-name = \XSIMtranslate {exercise} , + exercises-name = \XSIMtranslate {exercises} , solution-name = \XSIMtranslate {solution} , + solutions-name = \XSIMtranslate {solutions} , exercise-template = default , solution-template = default } @@ -339,6 +343,13 @@ German = \"Ubung } +\DeclareExerciseTranslations {exercises} { + Fallback = exercises , + English = exercises , + French = exercices , + German = \"Ubungen +} + \DeclareExerciseTranslations {question} { Fallback = question , English = question , @@ -346,6 +357,13 @@ German = Aufgabe } +\DeclareExerciseTranslations {questions} { + Fallback = questions , + English = questions , + French = questions , + German = Aufgaben +} + \DeclareExerciseTranslations {solution} { Fallback = solution , English = solution , @@ -353,6 +371,13 @@ German = L\"osung } +\DeclareExerciseTranslations {solutions} { + Fallback = solutions , + English = solutions , + French = solutions , + German = L\"osungen +} + \DeclareExerciseTranslations {point-abbr} { Fallback = p. , English = p. , @@ -377,55 +402,66 @@ \DeclareExerciseTranslations {reached} { Fallback = reached , English = reached , - French = atteint , + French = obtenus , German = erreicht } \DeclareExerciseTranslations {total} { Fallback = total , English = total , - French = totalement , + French = total , German = insgesamt } \DeclareExerciseTranslations {default-heading} { - Fallback = \XSIMmixedcase { \GetExerciseParameter {solution-name} s }~ - to~ the~ \XSIMmixedcase { \GetExerciseParameter {exercise-name} s} , - English = \XSIMmixedcase { \GetExerciseParameter {solution-name} s }~ - to~ the~ \XSIMmixedcase { \GetExerciseParameter {exercise-name} s} , - German = \XSIMmixedcase { \GetExerciseParameter {solution-name} en }~ - zu~ den~ \XSIMmixedcase { \GetExerciseParameter {exercise-name} en} + Fallback = \XSIMmixedcase { \GetExerciseParameter {solutions-name} }~ + to~ the~ \XSIMmixedcase { \GetExerciseParameter {exercises-name} } , + English = \XSIMmixedcase { \GetExerciseParameter {solutions-name} }~ + to~ the~ \XSIMmixedcase { \GetExerciseParameter {exercises-name} } , + French = \XSIMmixedcase { \GetExerciseParameter {solutions-name} ~ + des~ \GetExerciseParameter {exercises-name} } , + German = \XSIMmixedcase { \GetExerciseParameter {solutions-name} }~ + zu~ den~ \XSIMmixedcase { \GetExerciseParameter {exercises-name} } } \DeclareExerciseTranslations {collection-heading} { - Fallback = \XSIMmixedcase { \GetExerciseParameter {exercise-name} s } , - English = \XSIMmixedcase { \GetExerciseParameter {exercise-name} s } , - German = \XSIMmixedcase { \GetExerciseParameter {exercise-name} en } + Fallback = \XSIMmixedcase { \GetExerciseParameter {exercises-name} } , + English = \XSIMmixedcase { \GetExerciseParameter {exercises-name} } , + French = \XSIMmixedcase { \GetExerciseParameter {exercises-name} } , + German = \XSIMmixedcase { \GetExerciseParameter {exercises-name} } } \DeclareExerciseTranslations {per-section-heading} { - Fallback = \XSIMmixedcase { \GetExerciseParameter {solution-name} s }~ - to~ the~ \XSIMmixedcase { \GetExerciseParameter {exercise-name} s}~ + Fallback = \XSIMmixedcase { \GetExerciseParameter {solutions-name} } ~ + to~ the~ \XSIMmixedcase { \GetExerciseParameter {exercises-name} } ~ of~ Section \nobreakspace \ExerciseSection , - English = \XSIMmixedcase { \GetExerciseParameter {solution-name} s }~ - to~ the~ \XSIMmixedcase { \GetExerciseParameter {exercise-name} s}~ + English = \XSIMmixedcase { \GetExerciseParameter {solutions-name} } ~ + to~ the~ \XSIMmixedcase { \GetExerciseParameter {exercises-name} } ~ of~ Section \nobreakspace \ExerciseSection , - German = \XSIMmixedcase { \GetExerciseParameter {solution-name} en }~ - zu~ den~ \XSIMmixedcase { \GetExerciseParameter {exercise-name} en}~ + French = \XSIMmixedcase { \GetExerciseParameter {solutions-name} ~ + des~ \GetExerciseParameter {exercises-name} ~ de~ la~ + section \nobreakspace \ExerciseSection } , + German = \XSIMmixedcase { \GetExerciseParameter {solutions-name} } ~ + zu~ den~ \XSIMmixedcase { \GetExerciseParameter {exercises-name} }~ in~ Abschnitt \nobreakspace \ExerciseSection } \DeclareExerciseTranslations {per-chapter-heading} { - Fallback = \XSIMmixedcase { \GetExerciseParameter {solution-name} s }~ - to~ the~ \XSIMmixedcase { \GetExerciseParameter {exercise-name} s}~ + Fallback = \XSIMmixedcase { \GetExerciseParameter {solutions-name} } ~ + to~ the~ \XSIMmixedcase { \GetExerciseParameter {exercises-name} } ~ of~ Chapter \nobreakspace \ExerciseChapter , - English = \XSIMmixedcase { \GetExerciseParameter {solution-name} s }~ - to~ the~ \XSIMmixedcase { \GetExerciseParameter {exercise-name} s}~ + English = \XSIMmixedcase { \GetExerciseParameter {solutions-name} } ~ + to~ the~ \XSIMmixedcase { \GetExerciseParameter {exercises-name} } ~ of~ Chapter \nobreakspace \ExerciseChapter , - German = \XSIMmixedcase { \GetExerciseParameter {solution-name} en }~ - zu~ den~ \XSIMmixedcase { \GetExerciseParameter {exercise-name} en}~ + French = \XSIMmixedcase { \GetExerciseParameter {solutions-name} ~ + des~ \GetExerciseParameter {exercises-name} ~ + du~ chapitre \nobreakspace \ExerciseChapter } , + German = \XSIMmixedcase { \GetExerciseParameter {solutions-name} } ~ + zu~ den~ \XSIMmixedcase { \GetExerciseParameter {exercises-name} } ~ in~ Kapitel \nobreakspace \ExerciseChapter } % ---------------------------------------------------------------------------- \file_input_stop: + +2019/02/17 fixed error in German translations (issue 39) diff --git a/macros/latex/contrib/xsim/code/xsim.environments.code.tex b/macros/latex/contrib/xsim/code/xsim.environments.code.tex index ac12cb5153..49976aa53f 100644 --- a/macros/latex/contrib/xsim/code/xsim.environments.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.environments.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -295,8 +295,7 @@ \str_if_eq:nnT {#4} {solution} { \__xsim_set_file_signature:nnn {#1} {#2} {exercise} - \tl_set_from_file:Nnn \ExerciseText {} - {\l__xsim_file_path_and_name_tl} + \file_get:nnN {\l__xsim_file_path_and_name_tl} {} \ExerciseText \tl_trim_spaces:N \ExerciseText } \use:x @@ -378,3 +377,5 @@ % ---------------------------------------------------------------------------- \file_input_stop: + +2019/02/17 - fix issue #43 diff --git a/macros/latex/contrib/xsim/code/xsim.exercises.code.tex b/macros/latex/contrib/xsim/code/xsim.exercises.code.tex index a269fe2c5d..98cebe3eb3 100644 --- a/macros/latex/contrib/xsim/code/xsim.exercises.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.exercises.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -317,6 +317,16 @@ \xsim_set_parameter:nnx {#1} {number} { number of \xsim_get_parameter:nn {#1} {exercise-env} s } \xsim_check_mandatory_parameters:n {#1} + \xsim_if_parameter_set:nnF {#1} {exercises-name} + { + \xsim_set_parameters:nn {#1} + { exercises-name = \xsim_get_parameter:nn {#1} {exercise-name} s } + } + \xsim_if_parameter_set:nnF {#1} {solutions-name} + { + \xsim_set_parameters:nn {#1} + { solutions-name = \xsim_get_parameter:nn {#1} {solution-name} s } + } \xsim_if_parameter_set:nnF {#1} {counter} { \xsim_set_parameters:nx {#1} diff --git a/macros/latex/contrib/xsim/code/xsim.goals.code.tex b/macros/latex/contrib/xsim/code/xsim.goals.code.tex index ab8662ad71..98847ae129 100644 --- a/macros/latex/contrib/xsim/code/xsim.goals.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.goals.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -81,9 +81,9 @@ \xsim_if_goal_exists:nT {#3} { \fp_gadd:cn {g__xsim_goal_#3_fp} - { 0 \xsim_get_property:nnn {#1} {#2} {#3} } + { \xsim_get_property:nnn {#1} {#2} {#3} + 0 } \fp_gadd:cn {g__xsim_#1_goal_#3_fp} - { 0 \xsim_get_property:nnn {#1} {#2} {#3} } + { \xsim_get_property:nnn {#1} {#2} {#3} + 0 } } } @@ -305,3 +305,5 @@ % ---------------------------------------------------------------------------- \file_input_stop: + +2019/01/30 bug fix (cf. https://texwelt.de/wissen/fragen/24101/) diff --git a/macros/latex/contrib/xsim/code/xsim.grades.code.tex b/macros/latex/contrib/xsim/code/xsim.grades.code.tex index 4c25e99b45..e8a75cf85b 100644 --- a/macros/latex/contrib/xsim/code/xsim.grades.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.grades.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 diff --git a/macros/latex/contrib/xsim/code/xsim.interface.code.tex b/macros/latex/contrib/xsim/code/xsim.interface.code.tex index 32beb12208..b8798e9c47 100644 --- a/macros/latex/contrib/xsim/code/xsim.interface.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.interface.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -227,14 +227,14 @@ \NewDocumentCommand \DeclareExerciseParameter {st!m} { - \IfBooleanTF {#1} + \IfBooleanTF {#1} % fixed { - \IfBooleanTF {#2} + \IfBooleanTF {#2} % mandatory { \xsim_declare_parameter:nnn {true} {true} {#3} } { \xsim_declare_parameter:nnn {true} {false} {#3} } } { - \IfBooleanTF {#2} + \IfBooleanTF {#2} % mandatory { \xsim_declare_parameter:nnn {false} {true} {#3} } { \xsim_declare_parameter:nnn {false} {false} {#3} } } diff --git a/macros/latex/contrib/xsim/code/xsim.modules.code.tex b/macros/latex/contrib/xsim/code/xsim.modules.code.tex index 9337dc2073..3d94ca4b61 100644 --- a/macros/latex/contrib/xsim/code/xsim.modules.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.modules.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -66,7 +66,7 @@ \cs_new_protected:Npn \xsim_load_module:n #1 { \tl_set:Nx \l_tmpa_tl { \tl_trim_spaces:n {#1} } - \str_if_eq_x:nnTF { \l_tmpa_tl } {modules} + \str_if_eq:VnTF \l_tmpa_tl {modules} { \msg_error:nn {xsim} {forbidden-module} } { \__xsim_load_module:V \l_tmpa_tl } } @@ -162,12 +162,14 @@ \tl_set:Nx \l__xsim_module_date_tl {\c_xsim_date_tl} \tl_set:Nx \l__xsim_module_version_tl {\c_xsim_version_tl} } - + +\cs_generate_variant:Nn \str_if_eq:nnF {xx} + \cs_new_protected:Npn \__xsim_module:nn #1#2 { \seq_gput_right:Nn \g__xsim_loaded_modules_seq {#1} \prop_gput:Nnn \g__xsim_loaded_modules_prop {#1} {#2} - \str_if_eq_x:nnF + \str_if_eq:xxF {\c__xsim_module_prefix_tl.#1.\c__xsim_module_extension_tl} {\@currname.\@currext} { diff --git a/macros/latex/contrib/xsim/code/xsim.properties.code.tex b/macros/latex/contrib/xsim/code/xsim.properties.code.tex index 06558868cb..1222a61b2e 100644 --- a/macros/latex/contrib/xsim/code/xsim.properties.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.properties.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -182,7 +182,7 @@ \cs_new_protected:Npn \__xsim_set_boolean_property:nnnn #1#2#3#4 { - \str_case_x:nnTF { \str_lower_case:n {#4} } + \str_case_e:nnTF { \str_lower_case:n {#4} } { {} {} {true} {} diff --git a/macros/latex/contrib/xsim/code/xsim.random.code.tex b/macros/latex/contrib/xsim/code/xsim.random.code.tex index e8bddf2a10..7cdaa0a948 100644 --- a/macros/latex/contrib/xsim/code/xsim.random.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.random.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -295,7 +295,7 @@ { \tl_set:Nx \l__xsim_tmpa_tl { \xsim_get_id_for_property:nn {ID} {##1} } - \tl_if_blank:NTF \l__xsim_tmpa_tl + \tl_if_blank:VTF \l__xsim_tmpa_tl { \seq_put_right:Nn \l__xsim_tmpa_seq {##1} } { \seq_put_right:Nx \l__xsim_tmpa_seq diff --git a/macros/latex/contrib/xsim/code/xsim.solutions.code.tex b/macros/latex/contrib/xsim/code/xsim.solutions.code.tex index b8ac06aca0..fda5152a50 100644 --- a/macros/latex/contrib/xsim/code/xsim.solutions.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.solutions.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 diff --git a/macros/latex/contrib/xsim/code/xsim.sty b/macros/latex/contrib/xsim/code/xsim.sty index 9374722397..8570e7a186 100644 --- a/macros/latex/contrib/xsim/code/xsim.sty +++ b/macros/latex/contrib/xsim/code/xsim.sty @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -29,9 +29,9 @@ \ExplSyntaxOn -\tl_const:Nn \c_xsim_date_tl {2018/02/12} +\tl_const:Nn \c_xsim_date_tl {2019/09/30} \tl_const:Nn \c_xsim_version_major_number_tl {0} -\tl_const:Nn \c_xsim_version_minor_number_tl {11} +\tl_const:Nn \c_xsim_version_minor_number_tl {12} \tl_const:Nn \c_xsim_version_subrelease_tl {} \tl_const:Nx \c_xsim_version_number_tl { diff --git a/macros/latex/contrib/xsim/code/xsim.style.layouts.code.tex b/macros/latex/contrib/xsim/code/xsim.style.layouts.code.tex index e8a43b0992..304316eed0 100644 --- a/macros/latex/contrib/xsim/code/xsim.style.layouts.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.style.layouts.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 diff --git a/macros/latex/contrib/xsim/code/xsim.tags.code.tex b/macros/latex/contrib/xsim/code/xsim.tags.code.tex index 4fac1762f8..52ac1b519a 100644 --- a/macros/latex/contrib/xsim/code/xsim.tags.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.tags.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -54,7 +54,7 @@ \bool_new:c {l____xsim_tagged_#1_bool} \keys_define:nn {xsim} { - #1/ingore-untagged .bool_set:c = {l__xsim_ignore_untagged_#1_bool} , + #1/ignore-untagged .bool_set:c = {l__xsim_ignore_untagged_#1_bool} , #1/ignore-untagged .initial:n = true , #1 .code:n = \xsim_set_seq_from_clist:cn {l__xsim_chosen_tags_#1_seq} {##1} diff --git a/macros/latex/contrib/xsim/code/xsim.templates.code.tex b/macros/latex/contrib/xsim/code/xsim.templates.code.tex index 9ed767f4a7..2f167a23a4 100644 --- a/macros/latex/contrib/xsim/code/xsim.templates.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.templates.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 diff --git a/macros/latex/contrib/xsim/code/xsim.translations.code.tex b/macros/latex/contrib/xsim/code/xsim.translations.code.tex index e398575c40..978413f6e6 100644 --- a/macros/latex/contrib/xsim/code/xsim.translations.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.translations.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 diff --git a/macros/latex/contrib/xsim/code/xsim.verbwrite.code.tex b/macros/latex/contrib/xsim/code/xsim.verbwrite.code.tex index 83124c5ff2..a04ab8fed4 100644 --- a/macros/latex/contrib/xsim/code/xsim.verbwrite.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.verbwrite.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -66,7 +66,7 @@ { \xsim_if_final:F { \iow_close:N #1 } } % #1: write stream -% #1: contents +% #2: contents \cs_new_protected:Npn \__xsim_write_to_stream:Nn #1#2 { \xsim_if_final:F @@ -75,6 +75,9 @@ % no options are given to the surrounding environment: \tl_set:Nn \l__xsim_tmpa_tl {#2} \tl_remove_once:Nn \l__xsim_tmpa_tl {~} + % \tl_show:N \l__xsim_tmpa_tl + % \int_show:n { \tl_count:N \l__xsim_tmpa_tl } + % \tl_analysis_show:N \l__xsim_tmpa_tl \int_zero:N \l__xsim_tmpa_int \int_while_do:nn { \l__xsim_tmpa_int < \l_xsim_line_gobble_int } { @@ -147,10 +150,10 @@ \cs_set:Npx \__xsim_M:w { \exp_not:N \end {\@currenvir} } % \char_set_active_eq:nN {13} \__xsim_M:w % % the last line is `##1 \end{\@currenvir} ##2': - % \tl_if_blank:nF {##1} % - % { \__xsim_write_to_stream:Nn \l__file_contents_iow {##1} }% - % \tl_if_blank:nF {##2} % - % {}% + \tl_if_blank:nF {##1} % + { \__xsim_write_to_stream:Nn \l__file_contents_iow {##1} }% + \tl_if_blank:nF {##2} % + {} % } % ^^M % } % @@ -204,6 +207,6 @@ \NewDocumentCommand \XSIMgobblechars {m} { \int_set:Nn \l_xsim_line_gobble_int {#1} } - + % ---------------------------------------------------------------------------- \file_input_stop: diff --git a/macros/latex/contrib/xsim/code/xsimverb.sty b/macros/latex/contrib/xsim/code/xsimverb.sty index 8064d0d06d..4046415277 100644 --- a/macros/latex/contrib/xsim/code/xsimverb.sty +++ b/macros/latex/contrib/xsim/code/xsimverb.sty @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017--2018 Clemens Niederberger +% Copyright 2017--2019 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 |