From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65811 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Speech bubbles Date: Thu, 3 Feb 2011 09:39:56 +0100 Message-ID: References: <19573160-2D86-4494-BC67-318959776684@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1296722423 26201 80.91.229.12 (3 Feb 2011 08:40:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Feb 2011 08:40:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 03 09:40:18 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pkuji-0005VT-8f for gctc-ntg-context-518@m.gmane.org; Thu, 03 Feb 2011 09:40:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 90BD4CAAAF; Thu, 3 Feb 2011 09:40:17 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id s8BHeVE03FMb; Thu, 3 Feb 2011 09:40:14 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C4338CAAAB; Thu, 3 Feb 2011 09:40:14 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ACE85CAAAB for ; Thu, 3 Feb 2011 09:40:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id rPCSI4JDiZR5 for ; Thu, 3 Feb 2011 09:40:01 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 5D8B8CAAA6 for ; Thu, 3 Feb 2011 09:40:01 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p138e0gZ032623 for ; Thu, 3 Feb 2011 09:40:01 +0100 Original-Received: by fxm12 with SMTP id 12so996328fxm.14 for ; Thu, 03 Feb 2011 00:40:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=1N+QzXaEH+MDLqk2ViJdz4tl8rq7ImwFqNBKIsk0Y7s=; b=w98NkOXZ4hrytDWwVfPGdpU+OXpvZaGtid9R+GHT/Rp3TlT4u1MJmt9QXdxSRG5qlL yolj5dP8ao4VXOJfuotp18DhrIzPxTTP7cCbd9+cpbApmLgKnchVLM8R1Jo71enE97nn SDhHI+8lsfNK7OJzKg57xtdoJzsPYxEb/Jvwk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=kVGTeGs/CMGNescF/yC5LWx554y+0ugWNDy+IiaVY4aSpuuGYYstQo7Rtuvop+jXcY SoQhGa3PLQ0NBxq5ZGpzhaRTGoEcxx8Y8FKyLwfkVa5nBFUV6KARbzran3hQemgwHowO FLliT6PDfNCQhYS8S+oQSZ9owwjSLRKe2E7ys= Original-Received: by 10.223.36.220 with SMTP id u28mr9747232fad.11.1296722400691; Thu, 03 Feb 2011 00:40:00 -0800 (PST) Original-Received: from [192.168.2.23] (p5B294A58.dip.t-dialin.net [91.41.74.88]) by mx.google.com with ESMTPS id j12sm155829fax.9.2011.02.03.00.39.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 03 Feb 2011 00:39:59 -0800 (PST) In-Reply-To: <19573160-2D86-4494-BC67-318959776684@gmail.com> X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rE3kE0Kx - eb898e887e63 - 20110203 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:65811 Archived-At: Am 02.02.2011 um 18:12 schrieb Ian Lawrence: > Evening all: > > Has anyone got a nicer \speechbubble definition up their sleeve? > > Here is not-nice one, so you know the floor: > > \define [1] \speechBubble > {\blank > \framed [width=.6\textwidth ,autowidth=force,align={flushleft}, background=color, backgroundcolor=darkblue, > foreground=color, foregroundcolor=white, > frame=off,corner=0,backgroundoffset=5pt,] {#1} > ~~~ \tfd \startcolor[darkblue]{'} \stopcolor \tfa > \blank} > > > Called with things like: > > \speechBubble {They could be above or below the frequency we can hear, so called infra-sound or ultra-sound, or the amplitude could be just too small: so not enough power in the radiating pathway for the detector to respond.} > > > I guess there are some people with xs metapost skills out there... But is there as simple way to get a nice curved pointer left or right from the bottom of that rounded rectangle frame? \startuseMPgraphic{speechbubble} z1 = (0,0) ; z2 = (OverlayWidth,0) ; z3 = (OverlayWidth,OverlayHeight) ; z4 = (0,OverlayHeight) ; 1/2[x1,x2] = x8 + 2cm = x7 + 1cm = x9 - 1cm ; y7 = y9 = 0cm ; y8 = -2cm ; path p ; p = z1--z7--z8--z9--z2--z3--z4--cycle ; fill p withcolor blue ; draw p withpen pencircle scaled 5 ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[speechbubble][\useMPgraphic{speechbubble}] \starttext \framedtext[frame=off,background=speechbubble]{\input ward } \blank[4cm] \framedtext[frame=off,background=speechbubble,width=6cm]{\input ward } \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________