[NTG-context] Struggling with new version of ConTeXt

Willi Egger context at boede.nl
Fri Mar 4 12:39:56 CET 2016


Hans, thank you for fixing this so quickly!

Willi
> On 4 mrt. 2016, at 10:42, Hans Hagen <pragma at wxs.nl> wrote:
> 
> On 3/4/2016 6:03 AM, Willi Egger wrote:
>> With version :ConTeXt  ver: 2016.02.17 11:11 MKIV beta the following code worked:
>> 
>> \define[2]\Illustration{%
>> 	\startplacefigure
>> 		[title=#2,reference=fig:#1]
>> 		\externalfigure[#1][height=.25\textheight]
>> 	\stopplacefigure}
>> 
>> \starttext
>> 
>> 	\Illustration{cow}{A Frisian cow}
>> 
>> \stoptext
>> 
>> With ConTeXt  ver: 2016.03.03 23:31 MKIV beta I get a fatal error:
>> 
>> ...test.tex: ! Extra }, or forgotten \endgroup
>> 
>> \strc_counters_register_component_list ...focus }}titledata{label{\detokeniz...
>> \strc_counters_register_component ...}{#3}{#4}{#9}\else \ifx \currentstructu...
>> \strc_floats_place_packaged_boxes_indeed ... ][#1]\globallet \previousfloatn...
>> \strc_floats_finish_placement ...e_packaged_boxes\dostoptagged \global \d_p...
>> l.30 \Illustration{cow}{A Frisian cow}
> 
> fixed, btw you can also say:
> 
> \starttexdefinition Illustration #1#2
>    \startplacefigure[title=#2,reference=fig:#1]
>        \externalfigure[#1][height=.25\textheight]
>    \stopplacefigure
> \stoptexdefinition
> 
> 
> 
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>      tel: 038 477 53 69 | 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 at 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
> ___________________________________________________________________________________



More information about the ntg-context mailing list