ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Stange error with \definepalet
@ 2011-04-09 22:22 Aditya Mahajan
  2011-04-10  6:15 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Aditya Mahajan @ 2011-04-09 22:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

\definepalet
   [test]
   [one=red,
    two=blue,
   ]

\normalend

gives

]\doprocesscommaitem ]\relax \global \advance \commalevel \minusone  \ETC.
! File ended while scanning use of \dodododefinepalet.

while

\definepalet
   [test]
   [one=red,
    two=blue]

\normalend

compiles correctly. Shouldn't the both be equal?

Aditya
___________________________________________________________________________________
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: Stange error with \definepalet
  2011-04-09 22:22 Stange error with \definepalet Aditya Mahajan
@ 2011-04-10  6:15 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2011-04-10  6:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 10.04.2011 um 00:22 schrieb Aditya Mahajan:

> Hi,
> 
> \definepalet
>  [test]
>  [one=red,
>   two=blue,
>  ]
> 
> \normalend
> 
> gives
> 
> ]\doprocesscommaitem ]\relax \global \advance \commalevel \minusone  \ETC.
> ! File ended while scanning use of \dodododefinepalet.
> 
> while
> 
> \definepalet
>  [test]
>  [one=red,
>   two=blue]
> 
> \normalend
> 
> compiles correctly. Shouldn't the both be equal?

\definepalet use it’s own code to parse assignments which can’t handle
empty entries like \getparameters, your first example is therefore wrong.

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:[~2011-04-10  6:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-09 22:22 Stange error with \definepalet Aditya Mahajan
2011-04-10  6:15 ` 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).