Closed davidcarlisle closed 10 months ago
This PR removes the dependency on the ltxcmds pakage.
ltxcmds
Mostly ltxcmds provides LaTeX commands for other formats so is not needed in hyperref. (Just use \@firstoftwo rather than \ltx@firstoftwo etc)
hyperref
\@firstoftwo
\ltx@firstoftwo
It does provide a few extra features, here taken from expl3, and given Hy@ names
\let\Hy@LocalAppendToMacro\tl_put_right:Nn \let\Hy@GlobalAppendToMacro\tl_gput_right:Nn \let\Hy@ifempty\tl_if_empty:nTF
Also a couple of afterfi commands defined directly in the Hy@ prefix
\long\def\Hy@ReturnAfterFi#1\fi{\fi#1} \long\def\Hy@ReturnAfterElseFi#1\else#2\fi{\fi#1}
The main advantage is an iterative step towards aligning the hyperref coding with the main kernel sources.
Looks good. The generic hyperref driver in the pdfresources contains some ltxcmds too (I removed them now), so that should be updated first.
This PR removes the dependency on the
ltxcmds
pakage.Mostly
ltxcmds
provides LaTeX commands for other formats so is not needed inhyperref
. (Just use\@firstoftwo
rather than\ltx@firstoftwo
etc)It does provide a few extra features, here taken from expl3, and given Hy@ names
Also a couple of afterfi commands defined directly in the Hy@ prefix
The main advantage is an iterative step towards aligning the
hyperref
coding with the main kernel sources.