ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* processallactionsinset and default
@ 2014-08-14  9:38 Christoph Reller
  2014-08-14 12:44 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Reller @ 2014-08-14  9:38 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 490 bytes --]

Hi!

The "default" value works well for processaction but apparently does not
for processallactionsinset. What am I missing?

Example:

\def\A{A}
\def\XX{}
\def\Un{Un}

\processaction[\A][A=>Yeah!,default=>Def.,unknown=>Huh?]%
\processaction[\XX][A=>Yeah!,default=>Def.,unknown=>Huh?]%
\processaction[\Un][A=>Yeah!,default=>Def.,unknown=>Huh?]

\processallactionsinset[\A,\XX,\Un][A=>Yeah!,default=>Def.,unknown=>Huh?]

Output:

Yeah!Def.Huh?
Yeah!Huh?Huh?

Thanks for any help,

Christoph

[-- Attachment #1.2: Type: text/html, Size: 851 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: processallactionsinset and default
  2014-08-14  9:38 processallactionsinset and default Christoph Reller
@ 2014-08-14 12:44 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2014-08-14 12:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 14.08.2014 um 11:38 schrieb Christoph Reller <christoph.reller@gmail.com>:

> Hi!
> 
> The "default" value works well for processaction but apparently does not for processallactionsinset. What am I missing?
> 
> Example:
> 
> \def\A{A}
> \def\XX{}
> \def\Un{Un}
> 
> \processaction[\A][A=>Yeah!,default=>Def.,unknown=>Huh?]%
> \processaction[\XX][A=>Yeah!,default=>Def.,unknown=>Huh?]%
> \processaction[\Un][A=>Yeah!,default=>Def.,unknown=>Huh?]
> 
> \processallactionsinset[\A,\XX,\Un][A=>Yeah!,default=>Def.,unknown=>Huh?]
> 
> Output:
> 
> Yeah!Def.Huh?
> Yeah!Huh?Huh?

The default value is only used when there is no argument at all. Your example for \processallactionsinset with a list of values where you have empty key (A,,Un) is not supported and because the empty is not in the list you get the argument for unknown.

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-14 12:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-14  9:38 processallactionsinset and default Christoph Reller
2014-08-14 12:44 ` Wolfgang Schuster

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).