ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Struggling with new version of ConTeXt
@ 2016-03-04  5:03 Willi Egger
  2016-03-04  9:42 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Willi Egger @ 2016-03-04  5:03 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

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} 

Kind regards

Willi
___________________________________________________________________________________
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] 3+ messages in thread

* Re: Struggling with new version of ConTeXt
  2016-03-04  5:03 Struggling with new version of ConTeXt Willi Egger
@ 2016-03-04  9:42 ` Hans Hagen
  2016-03-04 11:39   ` Willi Egger
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2016-03-04  9:42 UTC (permalink / raw)
  To: ntg-context

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@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] 3+ messages in thread

* Re: Struggling with new version of ConTeXt
  2016-03-04  9:42 ` Hans Hagen
@ 2016-03-04 11:39   ` Willi Egger
  0 siblings, 0 replies; 3+ messages in thread
From: Willi Egger @ 2016-03-04 11:39 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

Hans, thank you for fixing this so quickly!

Willi
> On 4 mrt. 2016, at 10:42, Hans Hagen <pragma@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@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
> ___________________________________________________________________________________

___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2016-03-04 11:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-04  5:03 Struggling with new version of ConTeXt Willi Egger
2016-03-04  9:42 ` Hans Hagen
2016-03-04 11:39   ` Willi Egger

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).