Denis Bitouzé
Denis Bitouzé
Sorry for the irrelevant MCE above. Here is a relevant one, which used to work with an up to date TL 2021, but which doesn't work with an up to...
> Why do you patch `\@chapter` so late? Because it is done in a package of mine used with a class of mine which loads `hyperref`. And because this class...
> if this is for a class then why don't you patch `\@chapter` directly after if has been defined (probably you load book or something like that?). Hmmm, quite intricate,...
> And why do you use `\xapptocmd` above instead of prepending the code? Ah, do you mean: why `\xapptocmd` instead of `\xpretocmd`? To be honest, I don't remember right now...
> I think you are overdoing with the hooks, it should be enough to patch the command. But it fails only because you forgot the `\makeatletter` Indeed it works with...
> What do you mean with it has not effect? If I use an existing list, like e.g. lof it works fine for me. That's because it is provided by...
> [...] > > So where is your problem? I'm confused: that works perfectly. Sorry for the noise! > > Too bad: it used to work with older versions of...
> These three points are rather different issues: Many thanks for your insights! > 1. That's a font issue. So a Computer Modern one in the case of my example,...
@zauguin Please could you provide pointers about (non) NFC documents?
It looks like you (as I did myself) have mixed up `begin`/`before` and `end`/`after`. Besides, I guess you forgot to use `\TeX`: ```latex \RequirePackage{latexbug} \documentclass{article} \begin{document} \AddToHook{cmd/TeX/before}{\gdef\x{x}} \AddToHook{cmd/TeX/after}{} \TeX{} \ShowCommand\x...