[NTG-context] Bug in enumeration?

Hans Hagen pragma at wxs.nl
Tue Apr 12 10:11:20 CEST 2016


On 4/12/2016 9:42 AM, Otared Kavian wrote:
> Hi Hans,
>
> It seems that the new beta has introduced an issue with enumerations: the title does not show up as it did previously (until last Friday for instance).
>
> Below is an example.
> Best regards
>
> %%%%%%% bug-enumeartion.tex
> %%%%%%%
> \defineframedtext[ProclaimFramed]
> 	[width=\textwidth,
> 	frame=off,
> 	leftframe=on,
> 	framecolor=darkred,
> 	rulethickness=2pt,
> 	offset=0pt,
> 	loffset=4pt,
> 	roffset=4pt,
> 	]
> \defineenumeration[proclaim]
> 	[text=,
> 	before={\startProclaimFramed},
> 	after={\stopProclaimFramed},
> 	style=slanted,
> 	title=yes,
> 	titleleft=,
> 	titleright={.},
> 	alternative=hanging,
> 	width=fit,
> 	right={~},
> 	way=bysection,
> 	prefix=yes,
> 	prefixsegments={chapter:section}]
> %%%%%%%
>
> \starttext
>
> \startproclaim{Definition}
> The title of this \type{\startproclaim} does not show up.
> Is this a bug?
> \stopproclaim
>
> \stoptext

swapped arguments in ... (actually that was a fix for something else, a 
space in captions)

\unexpanded\def\strc_enumerations_inject_extra_text
   {\ifconditional\c_strc_constructions_title_state
 
\clf_doifelselisthastitle{\currentconstructionmain}\numexpr\currentconstructionlistentry\relax
        \strc_enumerations_inject_extra_text_indeed
        \donothing
    \fi}



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


More information about the ntg-context mailing list