Sudden conflict memoir and hyperref

Lars Madsen daleif at math.au.dk
Mon Oct 5 09:11:26 CEST 2020


Just for reference the correct fix (by David) is


 \newcommand\AtEndPackage[2]{\def\temp{\AddToHook{package/after/#1}{#2}}\temp}

so as a temp fix add

\renewcommand\AtEndPackage[2]{\def\temp{\AddToHook{package/after/#1}{#2}}\temp}

before loading hyperref

An updated memoir has been sent to CTAN


/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/daleif@math<http://au.dk/daleif@imf> / More information: http://au.dk/en/daleif@math<http://au.dk/en/daleif@imf>

________________________________
From: David Carlisle <d.p.carlisle at gmail.com>
Sent: 04 October 2020 19:20
To: Victor Ivrii <vivrii at gmail.com>
Cc: texlive tug <tex-live at tug.org>
Subject: Re: Sudden conflict memoir and hyperref

Memoir switched to use the new hook code but the old version required doubling the # the new one not.
A quick fix would be to add

\let\OldAtEndPackage\AtEndPackage
\def\AtEndPackage#1{\def\temp{#1}\expandafter\OldAtEndPackage\expandafter{\temp}}

but that would break if the code was updated, Possibly best would be to make a local copy of memhfixc.sty and replace ## by #
but we'll coordinate with Lars (CC'ed) and get an update to ctan

David



On Sun, 4 Oct 2020 at 14:28, Victor Ivrii <vivrii at gmail.com<mailto:vivrii at gmail.com>> wrote:
After tonight update of TL-2020 there is a conflict between memoir and hyperref.


\documentclass[12pt]{memoir}

\usepackage{hyperref}

\begin{document}

Hello, World

\end{document}



Error message:
parameters must be numbered consecutively
<to be reward again>
                           ##

Replacing memoir with article or switching off hyperref resolves it

Note that neither hyperref nor memoir were updated, but latex was



Victor Ivrii
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-live/attachments/20201005/2e0dd558/attachment.html>


More information about the tex-live mailing list.