From: Andreas Schneider <aksdb@gmx.de>
To: <ntg-context@ntg.nl>
Subject: Issues with MetaPost boxes
Date: Sat, 14 Aug 2010 16:42:12 +0200 [thread overview]
Message-ID: <d1d7168b16fafc5261372fec36919987@localhost> (raw)
[-- 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
___________________________________________________________________________________
next reply other threads:[~2010-08-14 14:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-14 14:42 Andreas Schneider [this message]
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
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=d1d7168b16fafc5261372fec36919987@localhost \
--to=aksdb@gmx.de \
--cc=ntg-context@ntg.nl \
/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).