2

I am trying to compile the thesis template given here.Link to thesis template The file opens without a hitch when I run it for the first time but as soon as I make a change as small as changing my name in the code section. It throws this error.

translations.sty
73
Undefined control sequence.
l.73 \AddToHook
               {begindocument/before}{
4
  • 3
    \AddToHook is a fairly recent addition to the LaTeX kernel it was added in the October 2020 release of LaTeX (LaTeX 2020-10-01). If your system is older than that, it will probably not know \AddToHook. If possible update your TeX system (tex.stackexchange.com/q/55437/35864). If you are stuck with an older version of TeX live that can no longer be updated or with a version of TeX live that is shipped by your operating system, you may have to install a new TeX live.
    – moewe
    Commented Jun 21, 2021 at 7:58
  • 1
    as Moewe says \AddToHook is fairly recent, but if you do not want to upgrade your latex, the link you give to the "template" links to a version on Overleaf which is dated 2017 so years before \AddToHook was added, that version will work with an older latex so you could copy it to your local system Commented Jun 21, 2021 at 8:07
  • 1
    you seem to have a quite new version of translations.sty which already use the new hooks. Commented Jun 21, 2021 at 8:29
  • 1
    @all Where can I find user-guide (or something like that) for the recent command \AddToHook?
    – Black Mild
    Commented Sep 14, 2021 at 9:16

1 Answer 1

3

To solve the above error update your version of Tex.

Not the answer you're looking for? Browse other questions tagged .