From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20484 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: presentations in ConTeXt Date: Tue, 24 May 2005 22:54:46 +0200 Message-ID: <6faad9f005052413547f1e774f@mail.gmail.com> References: <9EA19B5C-0590-49C8-B397-0DDF02B0E53F@uni-bonn.de> <6faad9f005052410333139b7f2@mail.gmail.com> <429378DC.407@seznam.cz> Reply-To: Mojca Miklavec , mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1116968211 20273 80.91.229.2 (24 May 2005 20:56:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 May 2005 20:56:51 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue May 24 22:56:47 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 1DagOj-00041f-Bj for gctc-ntg-context-518@m.gmane.org; Tue, 24 May 2005 22:53:09 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5E8C1127D2; Tue, 24 May 2005 22:54:52 +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-01; Tue, 24 May 2005 22:54:48 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B6C57127A8; Tue, 24 May 2005 22:54:48 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DE4F1127A8 for ; Tue, 24 May 2005 22:54:47 +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 30906-02 for ; Tue, 24 May 2005 22:54:46 +0200 (CEST) Original-Received: from nproxy.gmail.com (unknown [64.233.182.207]) by ronja.ntg.nl (Postfix) with ESMTP id E076412775 for ; Tue, 24 May 2005 22:54:46 +0200 (CEST) Original-Received: by nproxy.gmail.com with SMTP id a4so26390nfc for ; Tue, 24 May 2005 13:54:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ag7/YgRsBuqlsAzBajY+lsSWRf5q2N0fSNvkzOIgyW0rIlYnolFnAywzHA08jtm8rCZvvwDN//62q5fUla2BYPUG4LvLD1My9NLOvGk06WNdClZHSuu12CPRYki8oLifRUwTKnod+Xib0i/R2yCnypJ2PVEUWMx/auWVLHde/fw= Original-Received: by 10.48.142.9 with SMTP id p9mr21147nfd; Tue, 24 May 2005 13:54:46 -0700 (PDT) Original-Received: by 10.48.247.2 with HTTP; Tue, 24 May 2005 13:54:46 -0700 (PDT) Original-To: mailing list for ConTeXt users In-Reply-To: <429378DC.407@seznam.cz> Content-Disposition: inline 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:20484 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20484 Vit Zyka wrote: > Mojca Miklavec wrote: > > Thomas A. Schmitz wrote: > > > >>I am still at a loss how to achieve one thing in ConTeXt that was > >>pretty easy in Keynote or (shudder) Powerpoint: When I wanted to > >>highlight something on a map or a picture, I would just draw a red > >>circle around it. What would be the proper way to do this in ConTeXt? > >>Adding a layer with a red circle drawn in Metapost, then positioning > >>it by trial and error? Or can anyone point to a better solution? > > ... > > In this case it would be fine to have a \framed[...foreground=3D...] co= mmand :) >=20 > Use >=20 > \framed > [background=3D{foreground,BgFront}] > {\externalfigure[Kochloewe_c][width=3D10cm]}} >=20 > Define your picture as BgFront. 'foreground' is fixed word that > identifies layer 0 (text). So you can stack bacground as follow: > background=3D{...,MyLayer-2,MyLayer-1,foreground,MyLayer1,MyLayer2,...= } Uau! Thanks a lot for a very nice hint. So you can make something like that= : \setupcolors[state=3Dstart] \starttext \setupMPvariables[CircleSomething][dimension=3D{(100,100)},center=3D{(50,50= )},r=3D10] \startuseMPgraphic{CircleSomething} =09pair dimension, center; =09% TODO: this also has to be passed as parameter!!! =09% now it stands for: width=3D10cm =09scale :=3D 10cm/(xpart \MPvar{dimension}); =09picture bboxpicture; =09dimension :=3D \MPvar{dimension} scaled scale; =09center :=3D \MPvar{center} scaled scale; =09r :=3D \MPvar{r}*scale; =09pickup pencircle scaled 2pt; =09% proper bounding box =09fill unitsquare xyscaled dimension; =09bboxpicture :=3D currentpicture; =09currentpicture :=3D nullpicture; =09 =09draw fullcircle scaled (2*r) shifted center withcolor red; =09setbounds currentpicture to boundingbox bboxpicture; \stopuseMPgraphic \defineoverlay[CircleBlueTulip][\uniqueMPgraphic{CircleSomething}{dimension= =3D{(400,460)},center=3D{(222,460-330)},r=3D25}] \defineoverlay[CircleRedTulip][\useMPgraphic{CircleSomething}{dimension=3D{= (400,460)},center=3D{(148,460-330)},r=3D25}] \framed[background=3D{foreground,CircleBlueTulip},offset=3D0pt,strut=3Dno]{= \externalfigure[Kochloewe_c][width=3D10cm]} \framed[background=3D{foreground,CircleRedTulip},offset=3D0pt,strut=3Dno]{\= externalfigure[Kochloewe_c][width=3D10cm]} \stoptext Mojca