From 5d5c6e83f656f94fc747de23ffcdba960ffcdcd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler=20=28via=20gitlab=20runner=29?= Date: Mon, 27 Jun 2022 13:33:47 +0000 Subject: [PATCH] fix @counteralias usage of thmtools Build branch master (c939483) from kesslermaximilian/LatexPackages --- build_info.json | 12 ++++++------ environments/fancythm/fancythm.sty | 6 +++++- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/build_info.json b/build_info.json index d35a124..19dc50d 100644 --- a/build_info.json +++ b/build_info.json @@ -1,8 +1,8 @@ { "build_time": "", "source files": { - "version": "v2.9-13-g004413d", - "commit": "004413d6747c75bc8bf2b033a639953458339c53", + "version": "v2.9-14-gc939483", + "commit": "c939483b4283dd03bf86429cc23b66b6084ea090", "dirty": false }, "pytex": { @@ -432,12 +432,12 @@ { "name": "environments/fancythm/fancythm.sty", "source file": "environments/fancythm/fancythm.dtx", - "build time": "2022/02/03 14:45", - "source version": "v2.8.2-3-g123299b", - "source commit hash": "123299b87ded3cb6fbc945ccfc039c2140d8c7e0", + "build time": "2022/06/27 13:33", + "source version": "v2.9-14-gc939483", + "source commit hash": "c939483b4283dd03bf86429cc23b66b6084ea090", "pytex version": "v1.2.0-31-gc9bb0e8", "pytex commit hash": "c9bb0e87c91beae3e17a829603e4459cf804ec51", - "md5sum": "de5651d5fb829ae4a174d0d9e333d2dd", + "md5sum": "654976d61c4bc24086feb40083d54ba8", "dirty": false }, { diff --git a/environments/fancythm/fancythm.sty b/environments/fancythm/fancythm.sty index 28afd59..0378407 100644 --- a/environments/fancythm/fancythm.sty +++ b/environments/fancythm/fancythm.sty @@ -86,7 +86,11 @@ \counter_new_sub:nn { in #1 } { #1 } } } -\cs_set_eq:Nc \counter_alias:nn { @counteralias } +\cs_new:Npn \counter_alias:nn #1 % trailing #2 + { + \cs_undefine:c { c@ #1 } + \use:c { @counteralias } { #1 } % implicit #2 + } \cs_generate_variant:Nn \counter_alias:nn { n x } \counter_new:n { indocument } \__fancythm_counter_sub_if_exist:n { section }