From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112831 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sylvain Hubert via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: positioning of metapost figure Date: Mon, 13 Sep 2021 00:15:32 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2833818813040081839==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19502"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Sylvain Hubert , mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 13 00:16:23 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mPXlv-0004ra-8z for gctc-ntg-context-518@m.gmane-mx.org; Mon, 13 Sep 2021 00:16:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id ADAEE287497; Mon, 13 Sep 2021 00:15:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FBBtvwT70LTu; Mon, 13 Sep 2021 00:15:49 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8AD5728748B; Mon, 13 Sep 2021 00:15:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BF74E28747F for ; Mon, 13 Sep 2021 00:15:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jR2-lX3w8BFu for ; Mon, 13 Sep 2021 00:15:45 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.45; helo=mail-io1-f45.google.com; envelope-from=champignoom@gmail.com; receiver= Original-Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 5127F287234 for ; Mon, 13 Sep 2021 00:15:45 +0200 (CEST) Original-Received: by mail-io1-f45.google.com with SMTP id a22so9591600iok.12 for ; Sun, 12 Sep 2021 15:15:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vBmrnzYEv+ndOC5LD2iZ0Qc+w7x+FSO/mwCBoRvioVk=; b=dKsw+Wn1FTyt5Drtht5aQ1EzVWAJYKj94SZCxvk5gIit78MowUM4PSy6pY7T4HIz7X 2eJxeeeq4nYVZ1ojNLPjqhUnW2/0Kd7wNmQeB11/5rI47w4T0OWMIbAfNZaMVoFP3uI2 n3jm30TXNq5wfCCmpbLgiBeUHx1+swH4hUI+Rj6U4SOwybLml0V9zivpacBax9UfcDkt 3r0vIGzOpKfQoBnH1FYRgy6vP57LpgcDJTMibS9mXK9gNV5Ti9aSe1lwuJ2gjixrcGfA IgRK5FOSTd+eN84HQmrWezrgMjsfoHFz6dqTECHKUvun0nIoIPZ5VMCe/wf5k4NmjMyl zj7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vBmrnzYEv+ndOC5LD2iZ0Qc+w7x+FSO/mwCBoRvioVk=; b=Z243rI8e3jEu4Phn7DY1nicWA1s/ZspRwE80xuP4A65RdZBFSyhbS8qZz92TXAg9+p LvYSwLzzzkB6JTF65Y/GoYP/AdasWEKR4iIz505OP5KbYCbQVQq2hQcddJJXhrsUJrps lf7DqTgoj/xdKs4FZDF4ix6FYR3a41lYSvQm6onMWagbF4U10ky0701JFR1WuN83cfiw sRuzhVtmCZD1evu3A6ow5U9OkbvRSwzRcbMF3q09RGWkEwWIjqTAA7/uvAyOIeLShbiX K+bT8hKAgBHOvolzfADRN3PC7rjbfuNcUSh864c4WsdzXwjQKOfIbtz0xsvVLBrExK3o uCMQ== X-Gm-Message-State: AOAM532+Ee6fyWJV+2u26bT/nOU/rETKtVsulnukikCty8K8flz3vYFT XPMOMwRG7Wb5LCRw4L13FzOTJEmpf0Blt8r/rMI= X-Google-Smtp-Source: ABdhPJyXYKvwwgYEG7+tu0oikiff/T5/QTnoYjsmcILo4A8LHD8iTnTiBipaLtYN9HspkZ9VBEKpSvgHmt9nioYaONE= X-Received: by 2002:a05:6638:32a0:: with SMTP id f32mr6824313jav.69.1631484943370; Sun, 12 Sep 2021 15:15:43 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:112831 Archived-At: --===============2833818813040081839== Content-Type: multipart/alternative; boundary="000000000000818c8705cbd3b0cd" --000000000000818c8705cbd3b0cd Content-Type: text/plain; charset="UTF-8" Thanks Hans! On Sun, 12 Sept 2021 at 19:02, Hans Hagen wrote: > On 9/12/2021 6:54 PM, Sylvain Hubert via ntg-context wrote: > > Dear List, > > > > The following code draws a circle at the center of the page, ignoring > > the "shifted" part. > > > > \startuniqueMPgraphic{concept} > > draw fullcircle scaled 1cm shifted (10cm,10cm); > > \stopuniqueMPgraphic > > \defineoverlay[concept][\uniqueMPgraphic{concept}] > > \setupbackgrounds[page][background=concept] > > \starttext > > . > > \stoptext > > > > How should the metapost background figure be positioned correctly? > > \startuniqueMPgraphic{concept} > StartPage; > draw fullcircle scaled 1cm shifted (10cm,10cm); > draw Page withpen pencircle scaled 5mm; > StopPage; > \stopuniqueMPgraphic > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > --000000000000818c8705cbd3b0cd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Hans!

On Sun, 12 Sept 2021 at 19:02, Hans Hagen = <j.hagen@xs4all.nl> wrote:
On 9/12/2021 6:54= PM, Sylvain Hubert via ntg-context wrote:
> Dear List,
>
> The following code draws a circle at the center of the page, ignoring =
> the "shifted" part.
>
> \startuniqueMPgraphic{concept}
> draw fullcircle scaled 1cm shifted (10cm,10cm);
> \stopuniqueMPgraphic
> \defineoverlay[concept][\uniqueMPgraphic{concept}]
> \setupbackgrounds[page][background=3Dconcept]
> \starttext
> .
> \stoptext
>
> How should the metapost background figure be positioned correctly?

\startuniqueMPgraphic{concept}
=C2=A0 =C2=A0 =C2=A0StartPage;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0draw fullcircle scaled 1cm shifted (10cm,= 10cm);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0draw Page withpen pencircle scaled 5mm; =C2=A0 =C2=A0 =C2=A0StopPage;
\stopuniqueMPgraphic

-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.= pragma-pod.nl
-----------------------------------------------------------------
--000000000000818c8705cbd3b0cd-- --===============2833818813040081839== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2833818813040081839==--