On Sat, Sep 20, 2008 at 6:07 PM, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Alan Stone wrote: > > Are such macros possible ? > > > > modes: ma, mb, ... mz > > values: va, vb, ... vz > > command: cmd > > parameter: p > > > > (1) instead of > > > > \doifmode{ma}{\cmd[name][va]} > > \doifmode{mb}{\cmd[name][vb]} > > .... > > \doifmode{mz}{\cmd[name][vz]} > > > > a macro which does: \doifmode{m*}{\cmd[name][v*]} > > > > (2) instead of > > > > \doifmode{ma}{\cmd[p=va]} > > \doifmode{mb}{\cmd[p=vb]} > > .... > > \doifmode{mz}{\cmd[p=vz]} > > > > a macro which does: \doifmode{m*}{\cmd[p=v*]} > > nl, because there is no knowledge of what modes are set (i could cook > something up for mkiv or course) > > Is there something like, or the equivalent of, one/two dimensional arrays in (Con)TeXt ? array1={ma, mb, ... mz} array2={va, vb, ... vz} or array{{ma,va}, {mb,vb} ... {mz,vz}} -- Best, Alan * texmfstart texexec --lua foo * ConTeXt ver: 2008.09.16 19:49 MKIV fmt: 2008.9.20 int: english/english * Windows XP Home SP3
___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________