Re: [NTG-context] "closesymbol" in enumeration broken?

2012-02-19 Thread Wolfgang Schuster

Am 19.02.2012 um 23:22 schrieb Andreas Mang:

> Hi everybody,
> 
> I might have spotted a problem related to enumerations. The minimal example 
> below results in the given error message. It works without the "closesymbol" 
> option.
> 
> Thanks for your help.
> 
> Cheers,
> Andreas 
> 
> % ### MINIMAL EXAMPLE ###  (ConTeXt  ver: 2012.02.18 10:50 MKIV  fmt: 
> 2012.2.19)
> 
> \defineenumeration[myproof][text=Proof,closesymbol={\mathematics{\square}}]
> 
> \starttext
> 
> \startmyproof
> This is a proof
> \stopmyproof
> 
> \stoptext

strc-con.mkvi:

\def\strc_constructions_close_symbol_place
  {\ifconditional\csname\??constructionclosesymbol\currentconstruction\endcsname
 
\global\expandafter\setfalse\csname\??constructionclosesymbol\currentconstruction\endcsname
 \edef\p_closesymbol{\constructionparameter\c!closesymbol}%
 \ifx\p_closesymbol\empty \else
-  \constructionparameter\c!closecommand\p_closesymbol
+  \constructionparameter\c!closecommand{\p_closesymbol}%
 \fi
   \fi}

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
___


[NTG-context] "closesymbol" in enumeration broken?

2012-02-19 Thread Andreas Mang
Hi everybody,

I might have spotted a problem related to enumerations. The minimal example 
below results in the given error message. It works without the "closesymbol" 
option.

Thanks for your help.

Cheers,
Andreas 

% ### MINIMAL EXAMPLE ###  (ConTeXt  ver: 2012.02.18 10:50 MKIV  fmt: 2012.2.19)

\defineenumeration[myproof][text=Proof,closesymbol={\mathematics{\square}}]

\starttext

\startmyproof
This is a proof
\stopmyproof

\stoptext

% ###


% ### ERROR MESSAGE 

 
   \normalstartimath 
\mathematics ...ifmmode #1\else \normalstartimath 
  #1\normalstopimath \fi 
\strc_constructions_close_symbol_place ...esymbol 
  \fi \fi 
\140>construction ...tructions_close_symbol_place 
  \doifnot {\constructionpar...
\140>enumeration ...er \v!construction \endcsname 
  \endgroup 
l.5 \stopmyproof

% ###

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