ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] expansion question
@ 2024-05-15 15:47 Pablo Rodriguez via ntg-context
  0 siblings, 0 replies; only message in thread
From: Pablo Rodriguez via ntg-context @ 2024-05-15 15:47 UTC (permalink / raw)
  To: ConTeXt users; +Cc: Pablo Rodriguez

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-15 15:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-15 15:47 [NTG-context] expansion question Pablo Rodriguez via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).