[NTG-context] labeltext assignment

2012-06-11 Thread Philipp Gesang
Hi all,

there appears to be something special about how the key-value
list works with \setuplabeltext:

···
  \setuplabeltext [
foo=bar, %% - comma not allowed here?
  % foo=bar  %% - works
  ]
  \starttext
  \labeltext{foo}
  \stoptext
···

Normally the trailing comma causes no trouble, but here it won’t
even compile.

Best regards
Philipp


pgp72risoTbZn.pgp
Description: PGP signature
___
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
___

Re: [NTG-context] labeltext assignment

2012-06-11 Thread Hans Hagen

On 11-6-2012 10:01, Philipp Gesang wrote:

Hi all,

there appears to be something special about how the key-value
list works with \setuplabeltext:

···
   \setuplabeltext [
 foo=bar, %% - comma not allowed here?
   % foo=bar  %% - works
   ]
   \starttext
   \labeltext{foo}
   \stoptext
···

Normally the trailing comma causes no trouble, but here it won’t
even compile.


indeed a slightly different parser is used here

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-


___
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
___


Re: [NTG-context] labeltext assignment

2012-06-11 Thread Philipp Gesang
Hi Hans!

···date: 2012-06-11, Monday···from: Hans Hagen···

 On 11-6-2012 10:01, Philipp Gesang wrote:
 Hi all,
 
 there appears to be something special about how the key-value
 list works with \setuplabeltext:
 
 ···
\setuplabeltext [
  foo=bar, %% - comma not allowed here?
% foo=bar  %% - works
]
\starttext
\labeltext{foo}
\stoptext
 ···
 
 Normally the trailing comma causes no trouble, but here it won’t
 even compile.
 
 indeed a slightly different parser is used here

I’ll watch out for these cases, then.

Regards
Philipp


 
 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -
 
 
 ___
 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
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgp82VyPU6mph.pgp
Description: PGP signature
___
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
___

Re: [NTG-context] labeltext assignment

2012-06-11 Thread Wolfgang Schuster

Am 11.06.2012 um 21:06 schrieb Philipp Gesang:

 Hi Hans!
 
 ···date: 2012-06-11, Monday···from: Hans Hagen···
 
 On 11-6-2012 10:01, Philipp Gesang wrote:
 Hi all,
 
 there appears to be something special about how the key-value
 list works with \setuplabeltext:
 
 ···
  \setuplabeltext [
foo=bar, %% - comma not allowed here?
  % foo=bar  %% - works
  ]
  \starttext
  \labeltext{foo}
  \stoptext
 ···
 
 Normally the trailing comma causes no trouble, but here it won’t
 even compile.
 
 indeed a slightly different parser is used here
 
 I’ll watch out for these cases, then.

\definepalet has a similar problem because it uses also a custom parser.

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
___