From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74783 Path: news.gmane.org!not-for-mail From: Charles Newsgroups: gmane.comp.tex.context Subject: Re: Linebreak in a framed for a chapter setuphead Date: Wed, 29 Feb 2012 16:05:00 +0100 Message-ID: <4F4E3E9C.4030407@vejnar.org> References: <4F4E09BE.5070608@vejnar.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1330527930 20445 80.91.229.3 (29 Feb 2012 15:05:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Feb 2012 15:05:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 29 16:05:29 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S2l5s-0000ah-SP for gctc-ntg-context-518@m.gmane.org; Wed, 29 Feb 2012 16:05:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 18976CB262; Wed, 29 Feb 2012 16:05:25 +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 DvgQ-Ma3o5Zt; Wed, 29 Feb 2012 16:05:19 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0DB17CB23F; Wed, 29 Feb 2012 16:05:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EDDBFCB23F for ; Wed, 29 Feb 2012 16:05:17 +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 071fUtcCaIjY for ; Wed, 29 Feb 2012 16:05:02 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 5C8A0CB20F for ; Wed, 29 Feb 2012 16:05:02 +0100 (CET) Original-Received: from unige.ch (mc1.unige.ch [129.194.9.214]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q1TF51pd029852 for ; Wed, 29 Feb 2012 16:05:01 +0100 Original-Received: from mmp3.unige.ch ([129.194.7.203]) by unige.ch stage1 with esmtp (Exim MailCleaner) id 1S2l5Q-0007zd-Ux for from ; Wed, 29 Feb 2012 16:05:00 +0100 X-MailCleaner-SPF: none Original-Received: from [129.194.101.63] (sancy.unige.ch [129.194.101.63]) by mmp3.unige.ch (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPSA id <0M0500F6HTWCHRG0@mmp3.unige.ch> for ntg-context@ntg.nl; Wed, 29 Feb 2012 16:05:00 +0100 (MET) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120131 Thunderbird/10.0 In-reply-to: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=129.194.9.214; country=CH; region=07; city=Geneva; latitude=46.2000; longitude=6.1667; http://maps.google.com/maps?q=46.2000,6.1667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eGDP51A1 - 661bcc01ea47 - 20120229 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:74783 Archived-At: Le 29/02/2012 12:42, Wolfgang Schuster a =E9crit : > > Am 29.02.2012 um 12:19 schrieb Charles: > >> Hi, >> >> I have a problem with the following definition of chapter header. I woul= d like to have the chapter title on the left side and the number, with high= er size, on the right side. >> >> The \mychap seems to work while used directly. >> >> Any solution? > > \define[2]\mychap > {\framed > [frame=3Doff,width=3Dbroad,align=3Dflushleft,bottomframe=3Don,offse= t=3D0pt] > {\setbox\scratchbox\hbox{#1}% > \vtop{\hsize\dimexpr\hsize-\wd\scratchbox\relax#2}% > \box\scratchbox}} > > \setuphead[chapter][command=3D\mychap,textstyle=3D\tfa,numberstyle=3D\tfd] > > \starttext > > \chapter{INTRODUCTION} > > \chapter{Text and more text and even more text and still more text till i= t stops} > > \stoptext > > Wolfgang Thanks Wolfgang. How is the position of the text controled inside the framed? I would = like it to be closer to the line (when I increase the font size the = space between the text and the line increases too much). Thanks Charles ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________