From 1e9b8c33d8dc2431038ce60381c1e60e158bc876 Mon Sep 17 00:00:00 2001 From: Bastien Dumont Date: Mon, 20 Feb 2023 11:35:41 +0100 Subject: [PATCH] Protected \crossrefenum against early expansion. It occured in ConTeXt in a \footnote with \setupinteraction[state=start].' --- tex/crossrefenum.tex | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tex/crossrefenum.tex b/tex/crossrefenum.tex index 2b8d424..aabc616 100644 --- a/tex/crossrefenum.tex +++ b/tex/crossrefenum.tex @@ -524,13 +524,22 @@ %%% \crossrefenum: Public macro with optional arguments %%% +\crfnm@case[\fmtname] + \crfnm@context: { + \unexpanded\def\crossrefenum{\crfnm@crossrefenum} + } + \crfnm@latex: { + \protected\def\crossrefenum{\crfnm@crossrefenum} + } +\crfnm@endCases + % \crossrefenum has two optional arguments. % See the definition of \crfnm@enum below for the recognized values. \def\crfnm@firstArg@default{page} \def\crfnm@secondArg@default{withprefix} -\def\crossrefenum{% +\def\crfnm@crossrefenum{% \futurelet\crfnm@nextToken\crfnm@setEnumMacro }