0

I'm trying to compile a file using hyperref to get hyperlinks and etoolbox, for I want a specific setup for theorems that I actually found here (https://tex.stackexchange.com/a/424034/248426). However, just the mere mention of etoolbox makes my LaTeX crash!

Here's a MWE with error and the log file.

\documentclass{article}

\usepackage{hyperref} \usepackage{etoolbox}

\begin{document} If you can read this, then it works. \end{document}

This is what I get on terminal (I compile from gedit directly into bash), using Ubuntu xenial and texlive from the Debian repositories (if that's somehow helpful).

! Undefined control sequence.
\AfterEndDocument ->\AddToHook 
                               {enddocument/end}

l.6 \begin{document}

I have literally no idea how to fix this or why this happens. I'd really like to keep both etoolbox and hyperref since when using one without the other, I get exactly what I want (provided of course, getting no features of the missing package).

Thanks for reading me!

EDIT

The LOG file: https://drive.google.com/file/d/1B64UwilPqReEByvE51H_tX4tj3N21qQC/view?usp=drivesdk

0 Answers0