Skip to content

Commit

Permalink
fix(zutil): adjust tabularray debug support
Browse files Browse the repository at this point in the history
File hooks like `package/<pkgname>/after` are NOT one-time hooks.

6c07049 (fix: revert "refactor: more reliable `hypreref` and `xcolor`
glue codes", 2024-12-05)
  • Loading branch information
muzimuzhi committed Dec 7, 2024
1 parent fb4c876 commit d439d81
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions zutil/zutil-debug.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,18 @@


% tabularray support
\hook_gput_code:nnn { package/tabularray/after } { zutil/debug }
\cs_new_protected:Npn \__zutil_debug_tblr_support:
{
\keys_define:nn { zutil/debug }
{
% expansion is delayed to use of labels
% expansion is deferred until the label is actually being used
tblr .meta:n = { label = { \the\c@rownum , \the\c@colnum } }
}
}
\IfPackageLoadedTF { tabularray }
{ \__zutil_debug_tblr_support: }
{
% "package/.../before" hook also works
\hook_gput_code:nnn { package/tabularray/after } { zutil/debug }
{ \__zutil_debug_tblr_support: }
}

0 comments on commit d439d81

Please sign in to comment.