From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: mkiv and MetaPost
Date: Wed, 14 Jan 2009 09:18:45 +0100 [thread overview]
Message-ID: <B473BBAC-9F72-40B2-826F-A1B66B709907@gmail.com> (raw)
In-Reply-To: <496D9AFF.1060600@elvenkind.com>
On 14 janv. 09, at 08:57, Taco Hoekwater wrote:
> Otared Kavian wrote:
>> Thanks Aditya for your explanation, but I must say that it is not
>> convincing because with mkiv one of the buffers is processed with
>> \processMPbuffer, while the other is not… So there must be some
>> other hidden behaviour which has changed between mkii and mkiv.
>
> I will leave it for Hans to figure what exactly goes wrong, but the
> problem is caused by the comment characters in the axes-1 buffer.
>
> Best wishes,
> Taco
Hi Taco,
Thanks for finding the problem: indeed as you point out, in the
minimal example which I reproduce below, one sees that the comment
character
%
in the \startbuffer[axes-2] part is not interpreted correctly in mkiv:
if one puts that character at the end of last line of the buffer the
ouput is correct, while if one puts it at the end of other lines the
result is "undefined".
So for the file I have to typeset right now, I'll remove those nasty
"%", but I hope that the problem will be solved in mkiv…
By the way, in one of your messages some time ago you said that there
is a command
\luatexversion
but it doesn't exist on my installation: is it removed or I understod
wrong?
Best wishes: OK
%%%%% bug-metapost-1.tex
%!TEX TS-program = mkiv
\setupcolors[state=start]
\starttext
\startbuffer[axes-1]
numeric u ; u := .5cm ;
path xox ; xox := (-u,0)--(8u,0) ;
path yoy ; yoy := (0,-u)--(0,7u) ;
draw xox withcolor blue ;
draw yoy withcolor blue ;
\stopbuffer
\startbuffer[axes-2]
numeric u ; u := .5cm ;
path xox ; xox := (-u,0)--(8u,0) ;
path yoy ; yoy := (0,-u)--(0,7u) ;
draw xox withcolor blue ; % <------ here is the problem
draw yoy withcolor blue ;
\stopbuffer
This file has been typeset
on \currentdate{}
at \currenttime,
with
\doifmodeelse{mkiv}
{mkiv,
LuaTeX revision \luatexrevision,
(LuaTeX date stamp \luatexdatestamp)}
{mkii,
using the command:
\type{texexec basic-test.tex}},
ConTeXt version \contextversion.
% LuaTeX version \luatexversion,
\blank[2*big]
This MetaPost graphic is shown correctly with mkiv:
\placefigure[middle][-]{}{\processMPbuffer[axes-1]} {}
\blank
but not this one
\placefigure[middle][-]{}{\processMPbuffer[axes-2]} {}
\stoptext
___________________________________________________________________________________
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 prev parent reply other threads:[~2009-01-14 8:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-14 4:16 Otared Kavian
2009-01-14 5:51 ` Aditya Mahajan
2009-01-14 6:46 ` Otared Kavian
2009-01-14 7:57 ` Taco Hoekwater
2009-01-14 8:18 ` Otared Kavian [this message]
2009-01-14 8:31 ` Taco Hoekwater
2009-01-14 8:40 ` Otared Kavian
2009-01-14 8:54 ` Hans Hagen
2009-01-14 10:30 ` Hans Hagen
2009-01-14 10:37 ` Otared Kavian
2009-01-14 13:32 ` Otared Kavian
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=B473BBAC-9F72-40B2-826F-A1B66B709907@gmail.com \
--to=otared@gmail.com \
--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).