From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85920 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \defineframedtext take precedence over \defineframed and add "extra padding" Date: Mon, 13 Jan 2014 20:39:25 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1389641991 13345 80.91.229.3 (13 Jan 2014 19:39:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jan 2014 19:39:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 13 20:39:59 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 1W2nMa-0007QY-K2 for gctc-ntg-context-518@m.gmane.org; Mon, 13 Jan 2014 20:39:56 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E25A5101F2; Mon, 13 Jan 2014 20:39:55 +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 PlKpBiR5TW4h; Mon, 13 Jan 2014 20:39:54 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 063F4101E2; Mon, 13 Jan 2014 20:39:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 102CC101E2 for ; Mon, 13 Jan 2014 20:39:52 +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 9KLUcao2dxUn for ; Mon, 13 Jan 2014 20:39:31 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id BE0DF101DE for ; Mon, 13 Jan 2014 20:39:31 +0100 (CET) Original-Received: from mail-bk0-x22f.google.com (mail-bk0-x22f.google.com [IPv6:2a00:1450:4008:c01::22f]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0DJdTKD006246 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 13 Jan 2014 20:39:30 +0100 Original-Received: by mail-bk0-f47.google.com with SMTP id mx12so2601417bkb.34 for ; Mon, 13 Jan 2014 11:39:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=wPf9cqjEjcKN78VcVfz7V/g9nlRSfJZkTD6uCDXnG6g=; b=dK4g5FmvhFVHu9cp3sMwzTkZFEbKEAh9NUg73N9iW55+cGK2qx47RJJ2gGUUX7ByEI P+nah+r4NDp5vZT/lvIBVQJkDQKD39+lTw3gTDEqzUU3aWUZAGjKfSY3O2TzzMObJALQ SNa1bsR+/r3BUyNlP84Uqxg0qpUk2jvyCy685Q4s/F1GzFUkOBWzIDgmsnntx/ghM2Hy qHIFodzYZH5Kc1ycgnI46ALaPCzCqFXdJFGps9ZTXpHt1AgnNd/KEmD9FUmZIlz33kCM /e+W41NWtic4IiRFzDRMhUSYGZ9XnD9vZfWCSIJXCbBjCuiyWk4ZJTtwTU1dPCCzkNQV BJ4A== X-Received: by 10.205.96.67 with SMTP id cf3mr9638533bkc.32.1389641970226; Mon, 13 Jan 2014 11:39:30 -0800 (PST) Original-Received: from keima.localdomain (x2f23d5d.dyn.telefonica.de. [2.242.61.93]) by mx.google.com with ESMTPSA id s9sm16535410bkg.15.2014.01.13.11.39.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 13 Jan 2014 11:39:27 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1827) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::22f; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07LdvDtlo - ac5a83e2a7d6 - 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:85920 Archived-At: 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 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 ___________________________________________________________________________________