15 May
2024
15 May
'24
3:47 p.m.
Dear list, I have the following sample: \setupinteraction[state=start] \setupattachments[method=hidden] \protected\def\PDFfile[#1]% {\cldcontext{file.addsuffix("#1", "pdf")}} \starttext \doifelsefile{\PDFfile[xml-mkiv]} {yes}{no} \attachment[file={\PDFfile[xml-mkiv]}] \stoptext I need the \PDFfile definition to be \protected for only one case (that I cannot reproduce in my sample). Is there any way to define an unprotected command and invoke it as protected only for a particular case? Many thanks for your help, Pablo