From: Jean Magnan de Bornier <jm.bornier@free.fr>
To: ntg-context@ntg.nl
Subject: Strange problem with metapost graphics
Date: Thu, 17 Apr 2008 12:05:28 +0200 [thread overview]
Message-ID: <87ej94u787.fsf@bornier.net> (raw)
Hi all,
Here is minimal example of some trouble I have:
...................................
\startMPinclusions
numeric u; u=1cm;
\stopMPinclusions
\starttext
\startuseMPgraphic{dummy}
drawarrow (0,0)..(8u,0);
label.bot(\sometxt{temps}, (7u,-.5u));
\stopuseMPgraphic
\placefigure[fig:Uncontratdanslaflèchedutemps]{Un contrat dans la flèche du temps}{\useMPgraphic{dummy}}
\startuseMPgraphic{ummy}
pair A[];
A[0]:=(-1u, -1u);
A[1]:=( 6u, -1u);
A[2]:=( 6u, 4u);
A[3]:=(-1u, 4u);
draw A[0]--A[1]--A[2]--A[3]--cycle withpen pencircle scaled 1pt;
label.bot(\sometxt{Dupont}, A[0]);
label.top(\sometxt{Smith}, A[2]);
\stopuseMPgraphic
\placefigure[fig:Boîte d'Edgeworth]{Boîte d'Edgeworth}{\useMPgraphic{ummy}}
\stoptext
.................................
The trouble is that this compiles nicely with pdftex, a little less nicely
with xetex, and badly with luatex, tested at home and on context live.
- xetex: the label in the first graphic appears with bad size.
- luatex: first label in the second graphic appears with bad size and font,
and second label disappears; but if I comment out the label in the first
graphic, the second graphic is as expected.
Any idea?
--
Jean
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2008-04-17 10:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-17 10:05 Jean Magnan de Bornier [this message]
2008-04-17 11:00 ` Yue Wang
2008-04-17 11:13 ` Taco Hoekwater
2008-04-17 11:17 ` Hans Hagen
2008-04-17 17:22 ` Jean Magnan de Bornier
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=87ej94u787.fsf@bornier.net \
--to=jm.bornier@free.fr \
--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).