ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Issues with MetaPost boxes
@ 2010-08-14 14:42 Andreas Schneider
  2010-08-14 15:40 ` taco
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Schneider @ 2010-08-14 14:42 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 520 bytes --]

Since some weeks I have strange problems with MetaPost in MKIV (beta). The
attached example should (and did in the past) output a central box ("Fakt")
surrounded by five boxes named "Dimension". However some of them (in that
particular example one) is drawn wrong: the box is on the right spot, but
the label seems to be at 0,0. It seems to happen whenever the boxes are
drawn from within a loop - at least all of my problems with boxes show
similar symptoms and only occur within loops.

Any ideas what goes wrong here?

[-- Attachment #2: ctxmp.tex --]
[-- Type: text/plain, Size: 488 bytes --]

\startMPinclusions
	input boxes;
\stopMPinclusions

\startMPpage
	u := 1cm;
	
	circleit.fact(\sometxt{\bf Fakt});
	fact.c = (0u, 0u);
	fact.dx = fact.dy;

	drawboxed(fact);

	for i = 45 step 72 until 360:
		circleit.dim[i](\sometxt{Dimension});
		dim[i].c = 3u*right rotated i;
		dim[i].dx = dim[i].dy;
		drawoptions(dashed evenly);
		drawboxed(dim[i]);
		drawoptions();
		drawarrow fact.c -- dim[i].c cutbefore bpath.fact cutafter bpath.dim[i];
	endfor;
\stopMPpage

[-- Attachment #3: Type: text/plain, Size: 486 bytes --]

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

* Re: Issues with MetaPost boxes
  2010-08-14 14:42 Issues with MetaPost boxes Andreas Schneider
@ 2010-08-14 15:40 ` taco
  2010-08-15 15:34   ` Taco Hoekwater
  0 siblings, 1 reply; 6+ messages in thread
From: taco @ 2010-08-14 15:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Andreas Schneider wrote:
> Since some weeks I have strange problems with MetaPost in MKIV (beta). The
> attached example should (and did in the past) output a central box ("Fakt")
> surrounded by five boxes named "Dimension". However some of them (in that
> particular example one) is drawn wrong: the box is on the right spot, but
> the label seems to be at 0,0. It seems to happen whenever the boxes are
> drawn from within a loop - at least all of my problems with boxes show
> similar symptoms and only occur within loops.
> 
> Any ideas what goes wrong here?

Probably a metapost bug, I'll check.
___________________________________________________________________________________
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] 6+ messages in thread

* Re: Issues with MetaPost boxes
  2010-08-14 15:40 ` taco
@ 2010-08-15 15:34   ` Taco Hoekwater
  2010-08-15 17:10     ` Andreas Schneider
  2010-08-22 18:34     ` Andreas Schneider
  0 siblings, 2 replies; 6+ messages in thread
From: Taco Hoekwater @ 2010-08-15 15:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 08/14/2010 05:40 PM, taco wrote:
> Andreas Schneider wrote:
>> Since some weeks I have strange problems with MetaPost in MKIV (beta).
>> The
>> attached example should (and did in the past) output a central box
>> ("Fakt")
>> surrounded by five boxes named "Dimension". However some of them (in that
>> particular example one) is drawn wrong: the box is on the right spot, but
>> the label seems to be at 0,0. It seems to happen whenever the boxes are
>> drawn from within a loop - at least all of my problems with boxes show
>> similar symptoms and only occur within loops.
>>
>> Any ideas what goes wrong here?
>
> Probably a metapost bug, I'll check.

There were actually two metapost bugs from that single example.
Next week's luatex beta will have a fix for both.

Bug 1:

   show "45">"["; % 1.502 gives true, should be false

Bug 2:

   pair a[]b;
   a1b = (50,50);
   pair a[]c;
   show known a1b; % 1.502 gives false, should be true

Best wishes,
Taco
___________________________________________________________________________________
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] 6+ messages in thread

* Re: Issues with MetaPost boxes
  2010-08-15 15:34   ` Taco Hoekwater
@ 2010-08-15 17:10     ` Andreas Schneider
  2010-08-22 18:34     ` Andreas Schneider
  1 sibling, 0 replies; 6+ messages in thread
From: Andreas Schneider @ 2010-08-15 17:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Sun, 15 Aug 2010 17:34:25 +0200, Taco Hoekwater <taco@elvenkind.com>
wrote:
> There were actually two metapost bugs from that single example.
> Next week's luatex beta will have a fix for both.

Thanks for investigating and fixing it so fast! (well, I hope; we will see
;-))

Best Regards,
Andreas.
___________________________________________________________________________________
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] 6+ messages in thread

* Re: Issues with MetaPost boxes
  2010-08-15 15:34   ` Taco Hoekwater
  2010-08-15 17:10     ` Andreas Schneider
@ 2010-08-22 18:34     ` Andreas Schneider
  2010-08-22 19:57       ` taco
  1 sibling, 1 reply; 6+ messages in thread
From: Andreas Schneider @ 2010-08-22 18:34 UTC (permalink / raw)
  To: ntg-context

Taco Hoekwater wrote:
> There were actually two metapost bugs from that single example.
> Next week's luatex beta will have a fix for both.

Since I need this fix pretty soon, I thought a svn checkout and build might 
be a good idea. Getting luatex 0.62 beta compiled and running wasn't a 
problem, but the error with metapost still persists. ("This is LuaTeX, 
Version beta-0.62.0-2010082217 (rev 3815)")

Is there anything else I would need to get the fix in? Is it in a branch or 
is metapost even a lib on it's own? (It seemed to be statically linked, but 
I'm not completely sure if I missed something, so I better ask - which I 
hereby do.)

Thanks in advance!
Andreas.

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

* Re: Issues with MetaPost boxes
  2010-08-22 18:34     ` Andreas Schneider
@ 2010-08-22 19:57       ` taco
  0 siblings, 0 replies; 6+ messages in thread
From: taco @ 2010-08-22 19:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Andreas Schneider wrote:
> Taco Hoekwater wrote:
>> There were actually two metapost bugs from that single example.
>> Next week's luatex beta will have a fix for both.

The fix is still in the metapost repository. I'll release a
new luatex beta tomorrow morning (with the fix).

Best wishes,
Taco
___________________________________________________________________________________
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] 6+ messages in thread

end of thread, other threads:[~2010-08-22 19:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-14 14:42 Issues with MetaPost boxes Andreas Schneider
2010-08-14 15:40 ` taco
2010-08-15 15:34   ` Taco Hoekwater
2010-08-15 17:10     ` Andreas Schneider
2010-08-22 18:34     ` Andreas Schneider
2010-08-22 19:57       ` taco

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