From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85921 Path: news.gmane.org!not-for-mail From: Elspeth McGullicuddy Newsgroups: gmane.comp.tex.context Subject: Re: \defineframedtext take precedence over \defineframed and add "extra padding" Date: Mon, 13 Jan 2014 21:12:25 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1389643947 5135 80.91.229.3 (13 Jan 2014 20:12:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jan 2014 20:12:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 13 21:12:36 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W2nsB-0000lo-1d for gctc-ntg-context-518@m.gmane.org; Mon, 13 Jan 2014 21:12:35 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2F0B2101DE; Mon, 13 Jan 2014 21:12:34 +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 q2eDuD4B15jj; Mon, 13 Jan 2014 21:12:32 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 38BAC101E2; Mon, 13 Jan 2014 21:12:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 285C0101E2 for ; Mon, 13 Jan 2014 21:12:30 +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 7B+wowKQ9aIo for ; Mon, 13 Jan 2014 21:12:28 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 5E182101DE for ; Mon, 13 Jan 2014 21:12:28 +0100 (CET) Original-Received: from mail-oa0-x22e.google.com (mail-oa0-x22e.google.com [IPv6:2607:f8b0:4003:c02::22e]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0DKOL39009827 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 13 Jan 2014 21:24:22 +0100 Original-Received: by mail-oa0-f46.google.com with SMTP id l6so8572860oag.19 for ; Mon, 13 Jan 2014 12:12:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=IVz/hbAlGLsbzC53Uxr40h0HP1rcB77Q0v8UVyHSB7I=; b=Zr0L+fvDU9S1sQWOV7yVoyLek02ySZ9e5cwkz3bcJFijb5rBYCwsci41PFXFFfyCNK Z7/+3pSXyLKUibWRCTX5GhwRvD2jFwD0J8BL6kOjuDvhFbtJWZP94WUabPf6NgJ66Cr2 J063UFvdlwB+x2nTVdkJCZoQnJp4E265wSXGhwkU9uhXNmqaNhrmuKFhhS9QKRI4hIS3 L2adCyJQH2wl5fpeIUuEiE8s1kqEjcmfr5k4aJegVycRntp0c//7E7IK8M9IBK4iei+6 eMQitcxCTixCn93pzyv6dvfNEeP8fc6ndGPq5f/c7z6McELy7H7ZoUjhsOWgUhALViRp zVDQ== X-Received: by 10.60.65.5 with SMTP id t5mr22193320oes.19.1389643946027; Mon, 13 Jan 2014 12:12:26 -0800 (PST) Original-Received: by 10.76.33.129 with HTTP; Mon, 13 Jan 2014 12:12:25 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4003:c02::22e; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01Ldwom7b - 18cf76d9fc0e - 20140113 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85921 Archived-At: On Mon, Jan 13, 2014 at 8:39 PM, Wolfgang Schuster wrote: > > Am 13.01.2014 um 19:55 schrieb Elspeth McGullicuddy : > >> In the following example \defineframedtext take precedence over >> \defineframed, and also I don't know how I can get rid of the "extra >> padding" (looks like a good \baselineskip before the text). >> (What I want is the first output, but with the readability of \startXY \stopXY) >> >> As for the "take precedence", I can change the name; But for the extra >> padding I don't know how to remove it. >> I could add a \vskip-\baselineskip at the beginning, but there is >> probably a better solution. > > \usemodule[annotation] > > \defineannotation > [blueframed] > [alternative=command, > command=\BlueFramedCommand] > > \define[2]\BlueFramedCommand > {\BlueFramed{#2}} > > \defineframed > [BlueFramed] > [width=local, > frame=off, > rulethickness=2mm, > backgroundoffset=1mm, > align=yes, > background=color, > backgroundcolor=lightblue, > corner=round, > radius=1.5mm] > > \setupcolor[x11] > > \starttext > > \blueframed{\input{knuth}} > > \startblueframed > \input{knuth} > \stopblueframed > > \stoptext Thanks, it works. Chris > > 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________