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}{
  • 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 (https://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 Jun 21 '21 at 07: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 – David Carlisle Jun 21 '21 at 08:07
  • 1
    you seem to have a quite new version of translations.sty which already use the new hooks. – Ulrike Fischer Jun 21 '21 at 08:29
  • 1
    @all Where can I find user-guide (or something like that) for the recent command \AddToHook? – Black Mild Sep 14 '21 at 09:16

1 Answers1

2

To solve the above error update your version of Tex.