From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57891 Path: news.gmane.org!not-for-mail From: Matthias Weber Newsgroups: gmane.comp.tex.context Subject: Re: Framed text in paragraphs too wide Date: Mon, 5 Apr 2010 23:11:19 -0400 Message-ID: <36C74AE1-CB2C-4812-8A4D-0EE56F794CD7@indiana.edu> References: <05F44456-D87C-4581-8FBA-16254DD5774A@indiana.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1270523608 14878 80.91.229.12 (6 Apr 2010 03:13:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Apr 2010 03:13:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 06 05:13:24 2010 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 1NyzEB-0005fN-UB for gctc-ntg-context-518@m.gmane.org; Tue, 06 Apr 2010 05:13:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E77FDC9FF1; Tue, 6 Apr 2010 05:13:22 +0200 (CEST) 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 mLTDU6r9yra1; Tue, 6 Apr 2010 05:13:20 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 171F1C9FE4; Tue, 6 Apr 2010 05:13:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 60442C9FE4 for ; Tue, 6 Apr 2010 05:13:18 +0200 (CEST) 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 Fx30QMp2ejBW for ; Tue, 6 Apr 2010 05:13:14 +0200 (CEST) Original-Received: from hartman.uits.indiana.edu (hartman.uits.indiana.edu [129.79.1.194]) by balder.ntg.nl (Postfix) with ESMTP id AF018C9FE3 for ; Tue, 6 Apr 2010 05:13:14 +0200 (CEST) Original-Received: from mail-relay.iu.edu (burns.uits.indiana.edu [129.79.1.202]) by hartman.uits.indiana.edu (8.14.2/8.13.8/IU Messaging Team) with ESMTP id o363DDem007502 for ; Mon, 5 Apr 2010 23:13:13 -0400 Original-Received: from [192.168.1.121] (c-69-136-4-178.hsd1.in.comcast.net [69.136.4.178]) (authenticated bits=0) by mail-relay.iu.edu (8.14.2/8.13.8/IU Messaging Team Submission) with ESMTP id o363BWtC008344 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Mon, 5 Apr 2010 23:13:04 -0400 In-Reply-To: X-Mailer: Apple Mail (2.936) 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:57891 Archived-At: Thanks Aditya, that is what I need. I don't really understand the difference between framedtext and textbackground, but all my framing and coloring desires seem to be realizable with framedtext. Matthias On Apr 5, 2010, at 7:50 PM, Aditya Mahajan wrote: > On Mon, 5 Apr 2010, Matthias Weber wrote: > >> Dear all, >> >> my problem with framed text persists in paragraphs: The frame >> extends over the entire page as soon as the >> paragraph has more than one line. Problem exists in mkii and mkiv. >> Minimal example below. > > I have seen this before when trying to use textbacground to > highlight stuff in tables. I don't know a solution, but if want to > highlight whole paragrah, and do not want the ability to split > across pages, you can use framed texts. > > \setupcolors[state=start] > \setupcolor[rgb] > > > \defineframedtext > [defbackground] > [backgroundcolor=lightgray, > background=color, > width=broad, > frame=on, > location=paragraph] > > > \defineparagraphs > [TwoThird][n=2] > \setupparagraphs > [TwoThird] > [1] > [width=.66\textwidth] > > > \starttext > > \startTwoThird > \startdefbackground > The frame is too wide. > The frame is too wide. > The frame is too wide. > \stopdefbackground > % > \nextTwoThird > \placefigure > [here] > [figure:cow] > {Mooh} > {\externalfigure[cow][width=.3\textwidth]} > \stopTwoThird > > \stoptext > > Aditya > ___________________________________________________________________________________ > 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 ___________________________________________________________________________________