fix @counteralias usage of thmtools

Build branch master (c939483) from kesslermaximilian/LatexPackages
This commit is contained in:
Maximilian Keßler 2022-06-27 13:33:47 +00:00
parent 9698c31808
commit 5d5c6e83f6
2 changed files with 11 additions and 7 deletions

View file

@ -1,8 +1,8 @@
{ {
"build_time": "", "build_time": "",
"source files": { "source files": {
"version": "v2.9-13-g004413d", "version": "v2.9-14-gc939483",
"commit": "004413d6747c75bc8bf2b033a639953458339c53", "commit": "c939483b4283dd03bf86429cc23b66b6084ea090",
"dirty": false "dirty": false
}, },
"pytex": { "pytex": {
@ -432,12 +432,12 @@
{ {
"name": "environments/fancythm/fancythm.sty", "name": "environments/fancythm/fancythm.sty",
"source file": "environments/fancythm/fancythm.dtx", "source file": "environments/fancythm/fancythm.dtx",
"build time": "2022/02/03 14:45", "build time": "2022/06/27 13:33",
"source version": "v2.8.2-3-g123299b", "source version": "v2.9-14-gc939483",
"source commit hash": "123299b87ded3cb6fbc945ccfc039c2140d8c7e0", "source commit hash": "c939483b4283dd03bf86429cc23b66b6084ea090",
"pytex version": "v1.2.0-31-gc9bb0e8", "pytex version": "v1.2.0-31-gc9bb0e8",
"pytex commit hash": "c9bb0e87c91beae3e17a829603e4459cf804ec51", "pytex commit hash": "c9bb0e87c91beae3e17a829603e4459cf804ec51",
"md5sum": "de5651d5fb829ae4a174d0d9e333d2dd", "md5sum": "654976d61c4bc24086feb40083d54ba8",
"dirty": false "dirty": false
}, },
{ {

View file

@ -86,7 +86,11 @@
\counter_new_sub:nn { in #1 } { #1 } \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 } \cs_generate_variant:Nn \counter_alias:nn { n x }
\counter_new:n { indocument } \counter_new:n { indocument }
\__fancythm_counter_sub_if_exist:n { section } \__fancythm_counter_sub_if_exist:n { section }