ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Otared Kavian <otared@gmail.com>
Subject: Re: Bug in startcombination
Date: Mon, 14 Aug 2017 10:27:13 +0200	[thread overview]
Message-ID: <7896e280-3196-fd91-1c2b-484a1b850da8@wxs.nl> (raw)
In-Reply-To: <6DC478A8-F79A-4651-BBB7-09708E3E572C@gmail.com>

On 8/14/2017 9:53 AM, Otared Kavian wrote:
> Hi Hans,
> 
> It seems that in the latest ConTeXt beta a bug shows up when using \startcombination, or something has changed recently that I have overlooked.
> The following example typesets correctly in mkii, and used to produce a correct output with mkiv. However, now, with ConTeXt  version 2016.05.17 19:20,  the typesetting stops with an error message saying:
> 
> [………] Missing { inserted
> 
> <inserted text>
> {
> <to be read again>
> \cr
> \pack_combinations_pickup_package_pair_c ->\cr
>                                                 \pack_combinations_flush_capt...
> l.20 	\stopcombination}
> [………]
> 
> Here is the example:
> 
> %%% begin bug-combination.tex
> \setupcolors[state=start]
> \useMPlibrary[dum]
> 
> \starttext
> 
> This is our first picture.
> \placefigure[none]{}{\externalfigure[dummy][width=6cm]}
> \blank
> 
> This is a combination of 3 figures on two lines
> \placefigure[none]{}
> {
> \midaligned{
> 	\startcombination[1*2]
> 		{\startcombination[2*1]
> 			{\externalfigure[dummy][width=6cm]}{}
> 			{\externalfigure[dummy][width=6cm]}{}
> 		\stopcombination}
> 		{\externalfigure[dummy][width=6cm]}{}

There is a {} too many in that line (or one missing)

> 	\stopcombination}
> }
> 
> \stoptext
> %%% end bug-combination.tex
%%% end sloppy-combination.tex

\starttext

\startplacefigure[location=none]
	\startcombination[1*2]
		{\startcombination[2*1]
			{1.1}{}
			{1.2}{}
		\stopcombination}
		{2} % one {} too many
	\stopcombination
\stopplacefigure

\startplacefigure[location=none]
	\startcombination[1*2]
		{\startcombination[2*1]
			{1.1}{}
			{1.2}{}
		\stopcombination}{}
		{2}{}
	\stopcombination
\stopplacefigure

\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2017-08-14  8:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-14  7:53 Otared Kavian
2017-08-14  8:27 ` Hans Hagen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7896e280-3196-fd91-1c2b-484a1b850da8@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=otared@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).