Skip to content

Commit

Permalink
Check existence of \caption@subtypehook before adding to it
Browse files Browse the repository at this point in the history
  • Loading branch information
gusbrs committed Nov 28, 2024
1 parent fa4a736 commit 1df7188
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions zref-clever.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -8359,8 +8359,11 @@
% \begin{macrocode}
\zref@newprop { subref }
{ \cs_if_exist_use:c { thesub \@captype } }
\tl_put_right:Nn \caption@subtypehook
{ \zref@localaddprop \ZREF@mainlist { subref } }
\tl_if_exist:NT \caption@subtypehook
{
\tl_put_right:Nn \caption@subtypehook
{ \zref@localaddprop \ZREF@mainlist { subref } }
}
}
}
% \end{macrocode}
Expand Down

0 comments on commit 1df7188

Please sign in to comment.