From: Albrecht Kauffmann <alkauffm@rz.uni-potsdam.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: MetaPost List <metapost@tug.org>
Subject: Re: MetaPost transformation
Date: Thu, 31 May 2012 09:00:32 +0200 (CEST) [thread overview]
Message-ID: <Pine.SOC.4.64.1205310858210.26250@n-login-3.rz.uni-potsdam.de> (raw)
In-Reply-To: <CAFP+xFLWzODPCiqF=Lpa3FjDnHLkiv9iEjuxrdPOiu5kV2tLwA@mail.gmail.com>
Hello Troy,
if you declare a transform variable (e.g., t), it works:
transform t;
t := identity rotated 270 yscaled 0.5;
show identity transformed t;
>> (0,0,0,1,-0.5,0)
Greetings
Albrecht
On Wed, 30 May 2012, Troy Henderson wrote:
> I've encountered a MetaPost issue, and since many MetaPost users also use
> ConTeXt (and vice-versa), I am posting this question on both lists.
>
> The command
>
>> show identity rotated 270 yscaled 0.5;
>
> outputs
>
> (0,0,0,1,-0.5,0)
>
> as expected, while the command
>
>> show identity transformed (0,0,0,1,-0.5,0);
>
> errors with
>
> ---
> ! Missing `)' has been inserted.
> <to be read again>
> ,
> l.26 ^^Ishow identity transformed (0,0,0,1,
> -0.5,0);
> ---
>
> I am using MetaPost 1.504, and the problem seems to be that MetaPost does
> not like me using the sextuple (0,0,0,1,-0.5,0) directly, but this is the
> most convenient method for me to describe my transformations. Is this a
> bug in MetaPost, or am I not allowed to use transformations directly with
> sextuples?
>
> Troy Henderson
>
___________________________________________________________________________________
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 prev parent reply other threads:[~2012-05-31 7:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-30 21:10 Troy Henderson
2012-05-30 21:30 ` Hans Hagen
2012-05-31 0:56 ` Troy Henderson
[not found] ` <CAFP+xFJmoZ0PBWK=91SY7jPmEa_4gWGSBHfnt6S659jEiQCbAg@mail.g mail.com>
2012-05-31 2:37 ` [NTG-context] " Dan Luecking
2012-05-31 3:44 ` [metapost] " Troy Henderson
2012-05-31 7:00 ` Albrecht Kauffmann [this message]
2012-05-31 12:31 ` Troy Henderson
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=Pine.SOC.4.64.1205310858210.26250@n-login-3.rz.uni-potsdam.de \
--to=alkauffm@rz.uni-potsdam.de \
--cc=metapost@tug.org \
--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).