ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: MetaPost List <metapost@tug.org>
Subject: Re: MetaPost transformation
Date: Wed, 30 May 2012 23:30:32 +0200	[thread overview]
Message-ID: <4FC69178.8020300@wxs.nl> (raw)
In-Reply-To: <CAFP+xFLWzODPCiqF=Lpa3FjDnHLkiv9iEjuxrdPOiu5kV2tLwA@mail.gmail.com>

On 30-5-2012 23:10, 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?

It looks like sextuples are no basic datatype. I think that the show is 
just a way to output the internal representation. Of course it would 
make sense to have sixtuples (I can even think of a generic n-tuple).

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2012-05-30 21:30 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 [this message]
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
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=4FC69178.8020300@wxs.nl \
    --to=pragma@wxs.nl \
    --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).