From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85919 Path: news.gmane.org!not-for-mail From: Elspeth McGullicuddy Newsgroups: gmane.comp.tex.context Subject: \defineframedtext take precedence over \defineframed and add "extra padding" Date: Mon, 13 Jan 2014 19:55:41 +0100 Message-ID: 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 1389639343 13503 80.91.229.3 (13 Jan 2014 18:55:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jan 2014 18:55:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 13 19:55:48 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 1W2mfs-0006a0-98 for gctc-ntg-context-518@m.gmane.org; Mon, 13 Jan 2014 19:55:48 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 453BE101E9; Mon, 13 Jan 2014 19:55:47 +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 icGFCiU9jFJ5; Mon, 13 Jan 2014 19:55:46 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0CEA0101E2; Mon, 13 Jan 2014 19:55:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5552A101E2 for ; Mon, 13 Jan 2014 19:55:45 +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 qvUbI7F6Ghdq for ; Mon, 13 Jan 2014 19:55:44 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 9BF6A101DE for ; Mon, 13 Jan 2014 19:55:44 +0100 (CET) Original-Received: from mail-oa0-x236.google.com (mail-oa0-x236.google.com [IPv6:2607:f8b0:4003:c02::236]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0DItgfn007263 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 13 Jan 2014 19:55:44 +0100 Original-Received: by mail-oa0-f54.google.com with SMTP id o6so8512649oag.13 for ; Mon, 13 Jan 2014 10:55:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=vG/D4e111N6ahcFY5vg/FQDwkDlAET5SdFgnky0sPEk=; b=TwOG+tAvcgOy9aAIrJ8XujVIci7NmOh3+jODI1jc8G5X9j6DHap5k+ncGIOkfUBlnB ++F2tVoh0W03XrGCPeoSCumLtZ0kdEy4MTszU7W1cSD4/N32TciMx53yp8bnF4eEgQ5g wT2qkFA+0vMqfT4IvEm4FDYgONIzZddYkfqXx0P+8+Q4PRm+DPOVSzYlPriblA9sNtg+ pDK99cZPRmocKOMa3YXLZ//slO4R7w81ipzOki4ziL+3dtJm3h6fglqdo+mzX43m8FDx XCWb3TFKgB0Edm3G5y3+oASGl2KZhECQYC/4M6Vu+6WU86fvAQOjVgpGyVbrZQeneouP k/sg== X-Received: by 10.60.50.202 with SMTP id e10mr21786360oeo.39.1389639342168; Mon, 13 Jan 2014 10:55:42 -0800 (PST) Original-Received: by 10.76.33.129 with HTTP; Mon, 13 Jan 2014 10:55:41 -0800 (PST) X-Bayes-Prob: 0.0114 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4003:c02::236; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03LduTHoB - 9fae43eec9e4 - 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:85919 Archived-At: 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. (By the way, the construction \blueframed{\startformula hello\stopformula \input knuth} behave badly.) %%%%%%%%%%%%%%%%% \starttext \setupcolor[x11] \defineframed [blueframed] [width=local,frame=off,rulethickness=2mm,backgroundoffset=1mm,% align=yes,background=color,backgroundcolor=lightblue,% corner=round,radius=1.5mm] \blueframed{\input{knuth}} \defineframedtext [blueframed] [width=local,frame=on,%rulethickness=2mm,backgroundoffset=1mm,% margin=no, align=yes,background=color,backgroundcolor=lightblue,% corner=round,radius=1.5mm] \blueframed{\input{knuth}} \startblueframed \input{knuth} \stopblueframed \stoptext %%%%%%%%%%%%% Regards, Chris ___________________________________________________________________________________ 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 ___________________________________________________________________________________