From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54370 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: framed items Date: Mon, 16 Nov 2009 10:26:09 +0100 Message-ID: References: <907CE842-A07B-4FDE-AF63-111AD9BA31D5@uni-bonn.de> <32BF6058-625C-4B52-87E0-5803B45FAEAD@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258363589 17232 80.91.229.12 (16 Nov 2009 09:26:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Nov 2009 09:26:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 16 10:26:22 2009 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.50) id 1N9xqm-0000dT-6B for gctc-ntg-context-518@m.gmane.org; Mon, 16 Nov 2009 10:26:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5246EC9B4F; Mon, 16 Nov 2009 10:24:02 +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 L54GUm7Cud-B; Mon, 16 Nov 2009 10:23:58 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7BCA1C9B03; Mon, 16 Nov 2009 10:23:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 69887C9AF1 for ; Mon, 16 Nov 2009 10:23:56 +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 SfYNvcWatEsJ for ; Mon, 16 Nov 2009 10:23:53 +0100 (CET) Original-Received: from mail-bw0-f220.google.com (mail-bw0-f220.google.com [209.85.218.220]) by balder.ntg.nl (Postfix) with ESMTP id 9D003C9B03 for ; Mon, 16 Nov 2009 10:23:53 +0100 (CET) Original-Received: by bwz20 with SMTP id 20so5413497bwz.34 for ; Mon, 16 Nov 2009 01:26:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=WsnUgbB1TIba7I74S71pcH8K1JQzo4xGghdI63YacZg=; b=oQKfWIGoScu/nn3RPo/wf2WGuMmFVvov+1C75MwAwvWWUiKbUF0l4KpGB/qNG7HZRQ rLVMM/OxtgCGtdJ1GUsBzusflz2LGl0Hj2bJMSvr09T0Bk2dU1hSf7QUc7Rnw9Pv7qiH 8IXWplXbJe/RpLhVdQtHJxFtvUT75rb+p+c6g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=iW5LUy7pVw3FN/DEBxvT5AF9GU+0nCpPh5YTXuQ8UfoWdDNe0YXmy/YGx38Zh/IlWZ 5HMT6mUc+yhT1rKe5Kzv0SULSTEaL7T652mS6/5JzghcJvV63jMyEXxotek8iCK1TVTl zemjYiCt36NezzAa3936QL5ulEsCVGTwQTtnU= Original-Received: by 10.204.25.198 with SMTP id a6mr4484569bkc.31.1258363570024; Mon, 16 Nov 2009 01:26:10 -0800 (PST) In-Reply-To: <32BF6058-625C-4B52-87E0-5803B45FAEAD@uni-bonn.de> 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:54370 Archived-At: On Mon, Nov 16, 2009 at 10:09 AM, Thomas A. Schmitz wrote: > > On Nov 16, 2009, at 9:55 AM, Wolfgang Schuster wrote: > >> If you hadn't notice the item is wider then the running text, in MkIV >> you can say 'width=\dimexpr\textwidth-\itemgrouplistwidth\relax' >> (not the best method but \localhsize is not available) >> >> Wolfgang >> > > Aditya, Wolfgang, > > thanks a lot, I now get the visual output I want! So the question remains: > any way of making this a hook for startitemize so it gets applied to every > \item automatically? There is always a non-context solution, (so it's a kind of off-topic here...) More seriously (well, only a bit), it can be seen as a sort of syntathic sugar (just because I like coffe with sugar, but it' a taste of mine..) \setuplayout[width=10cm] \long\def\TSIF#1{\item \framed\bgroup #1} \def\TSIFE{\egroup} \starttext \setupframed[offset=2mm, corner=round, background=color, backgroundcolor=blue, foregroundcolor=white, frame=off, strut=no,inbetween={\blank[3*line]} location=high, align=normal, width=\textwidth] \startitemize[n] \item \framed{The text of this item is made very long because it is intended to show the effect of what happens when an item extends to more than just one line.} \item \framed{This item is relatively short, but also fills more than one line.} \TSIF% This item is relatively short, but also fills more than one \TSIFE \TSIF% This item is relatively short, but also fills more than one \TSIFE \stopitemize \stoptext -- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________