From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21041 Path: news.gmane.org!not-for-mail From: "Patrick Gundlach" Newsgroups: gmane.comp.tex.context Subject: Re: presentations in ConTeXt Date: 28 Jun 2005 12:58:14 +0200 Organization: chaos Message-ID: References: <9EA19B5C-0590-49C8-B397-0DDF02B0E53F@uni-bonn.de> <6faad9f005052410333139b7f2@mail.gmail.com> <429378DC.407@seznam.cz> <6faad9f005052413547f1e774f@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1119956137 12771 80.91.229.2 (28 Jun 2005 10:55:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2005 10:55:37 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 28 12:55:32 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DnDk4-0001IA-Rp for gctc-ntg-context-518@m.gmane.org; Tue, 28 Jun 2005 12:55:00 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 43301127B8; Tue, 28 Jun 2005 13:02:10 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31318-01; Tue, 28 Jun 2005 13:02:10 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0E859127B7; Tue, 28 Jun 2005 12:58:23 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E198A127B7 for ; Tue, 28 Jun 2005 12:58:20 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30981-03 for ; Tue, 28 Jun 2005 12:58:20 +0200 (CEST) Original-Received: from lilly.ping.de (lilly.ping.de [83.97.42.2]) by ronja.ntg.nl (Postfix) with SMTP id E947C127AA for ; Tue, 28 Jun 2005 12:58:19 +0200 (CEST) Original-Received: (qmail 28764 invoked from network); 28 Jun 2005 10:58:16 -0000 Original-Received: (ofmipd 83.97.40.142); 28 Jun 2005 10:57:54 -0000 Original-To: ntg-context@ntg.nl X-Lieblings-Musik: the_capricorns In-Reply-To: <6faad9f005052413547f1e774f@mail.gmail.com> (Mojca Miklavec's message of "Tue, 24 May 2005 22:54:46 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21041 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21041 Some time ago, Mojca Miklavec wrote: > Uau! Thanks a lot for a very nice hint. So you can make something like that: > -------------------------------------------------- \setupcolors[state=start] \starttext \setupMPvariables[CircleSomething][dimension={(100,100)},center={(50,50)},r=10] \startuseMPgraphic{CircleSomething} pair dimension, center; % TODO: this also has to be passed as parameter!!! % now it stands for: width=10cm scale := 10cm/(xpart \MPvar{dimension}); picture bboxpicture; dimension := \MPvar{dimension} scaled scale; center := \MPvar{center} scaled scale; r := \MPvar{r}*scale; pickup pencircle scaled 2pt; % proper bounding box fill unitsquare xyscaled dimension; bboxpicture := currentpicture; currentpicture := nullpicture; draw fullcircle scaled (2*r) shifted center withcolor red; setbounds currentpicture to boundingbox bboxpicture; \stopuseMPgraphic \defineoverlay[CircleBlueTulip][\uniqueMPgraphic{CircleSomething}{dimension={(400,460)},center={(222,460-330)},r=25}] \defineoverlay[CircleRedTulip][\useMPgraphic{CircleSomething}{dimension={(400,460)},center={(148,460-330)},r=25}] \framed[background={foreground,CircleBlueTulip},offset=0pt,strut=no]{\externalfigure[Kochloewe_c][width=10cm]} \framed[background={foreground,CircleRedTulip},offset=0pt,strut=no]{\externalfigure[Kochloewe_c][width=10cm]} \stoptext -------------------------------------------------- So, do you get any real output (besides the image)? I cannot see any circles in the pdf. ConTeXt ver: 2005.06.07 fmt: 2005.6.7 int: english mes: english Patrick -- ConTeXt wiki and more: http://contextgarden.net