ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: clipping in metafun has weird side effects
Date: Sun, 02 Nov 2014 11:29:24 +0100	[thread overview]
Message-ID: <54560784.4020407@wxs.nl> (raw)
In-Reply-To: <20141031123302.GA8541@gmail.com>

On 10/31/2014 1:33 PM, Tobias Columbus wrote:
> On Fri, Oct 31, 2014 at 12:22:37PM +0100, Hans Hagen wrote:
>> On 10/31/2014 10:15 AM, Tobias Columbus wrote:
>>
>>>>>> def a_impl text t =
>>>>>>    begingroup
>>>>>>      save c ; picture c ; c := mycircle ;
>>>>>>      clip c to bbox c scaled 0.5 ;
>>
>> try this to see what happens:
>>
>> % clip c to bbox c scaled 0.5 ;
>> draw bbox c scaled 0.5 ;
>>
>> and then this to solve it:
>>
>> clip c to bbox (c scaled 0.5) ;
>
> I tried your suggestions and attached both the example and output. Drawing and
> clipping solves the problem indeed. But using only the modified clip either does
> not solve the problem, or I am just too stupid to implement your solution.
>
> Note also that in the modified example the context output coincides with the
> mptopdf output if one draws the label before calling "test" the second time. (I
> marked the position in the metapost file.)
>
> Sorry for probably getting on your nerves ...

hopefully ok in next beta

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:[~2014-11-02 10:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-30 19:56 Tobias Columbus
2014-10-31  8:58 ` Tobias Columbus
2014-10-31  9:05   ` Hans Hagen
2014-10-31  9:15     ` Tobias Columbus
2014-10-31 11:10       ` Hans Hagen
2014-10-31 11:22       ` Hans Hagen
2014-10-31 12:33         ` Tobias Columbus
2014-11-02 10:29           ` Hans Hagen [this message]
2014-11-02 12:09             ` Tobias Columbus

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=54560784.4020407@wxs.nl \
    --to=pragma@wxs.nl \
    --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).