From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74777 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Linebreak in a framed for a chapter setuphead Date: Wed, 29 Feb 2012 12:42:56 +0100 Message-ID: References: <4F4E09BE.5070608@vejnar.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1330515811 20705 80.91.229.3 (29 Feb 2012 11:43:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Feb 2012 11:43:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 29 12:43: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 1S2hwO-00049r-HK for gctc-ntg-context-518@m.gmane.org; Wed, 29 Feb 2012 12:43:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E3F9FCB264; Wed, 29 Feb 2012 12:43:27 +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 j6BYE6f3RGl1; Wed, 29 Feb 2012 12:43:22 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 32DE0CB260; Wed, 29 Feb 2012 12:43:18 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D55E3CB25F for ; Wed, 29 Feb 2012 12:43:16 +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 cLwxXnh+2DzE for ; Wed, 29 Feb 2012 12:43:05 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id B5BF8CB25E for ; Wed, 29 Feb 2012 12:43:05 +0100 (CET) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q1TBh42E002977 for ; Wed, 29 Feb 2012 12:43:05 +0100 Original-Received: by eeke53 with SMTP id e53so3525180eek.14 for ; Wed, 29 Feb 2012 03:43:04 -0800 (PST) Received-SPF: pass (google.com: domain of schuster.wolfgang@googlemail.com designates 10.213.21.142 as permitted sender) client-ip=10.213.21.142; Authentication-Results: mr.google.com; spf=pass (google.com: domain of schuster.wolfgang@googlemail.com designates 10.213.21.142 as permitted sender) smtp.mail=schuster.wolfgang@googlemail.com; dkim=pass header.i=schuster.wolfgang@googlemail.com Original-Received: from mr.google.com ([10.213.21.142]) by 10.213.21.142 with SMTP id j14mr565358ebb.53.1330515784790 (num_hops = 1); Wed, 29 Feb 2012 03:43:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=PZXoLAuKvVJVcwGxsXcyby4TXiHk7wDJ7CRO1H0HKcQ=; b=Io/+0V0dRRU9/zjLfxGP3/SkJvhIHt1w5BS/O52GjhdOE5tmPLJHZpHaCkmoBqwHxa 9r69WCa/GF8rwX7wDKHReMNvOFQLakTs5VKMyxloySeroFVtyaL63ilLrsja6FE66skD dbbl+0jbiOaXBHOTRIxamxDOe/UvJa9EwwPMQ= Original-Received: by 10.213.21.142 with SMTP id j14mr462840ebb.53.1330515784714; Wed, 29 Feb 2012 03:43:04 -0800 (PST) Original-Received: from [192.168.2.36] (p57AFB945.dip.t-dialin.net. [87.175.185.69]) by mx.google.com with ESMTPS id o49sm81906141eeb.7.2012.02.29.03.43.01 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 29 Feb 2012 03:43:03 -0800 (PST) In-Reply-To: <4F4E09BE.5070608@vejnar.org> X-Mailer: Apple Mail (2.1257) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NGDLH5hv - c0b52205125a - 20120229 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:74777 Archived-At: Am 29.02.2012 um 12:19 schrieb Charles: > Hi, > > I have a problem with the following definition of chapter header. I would like to have the chapter title on the left side and the number, with higher size, on the right side. > > The \mychap seems to work while used directly. > > Any solution? \define[2]\mychap {\framed [frame=off,width=broad,align=flushleft,bottomframe=on,offset=0pt] {\setbox\scratchbox\hbox{#1}% \vtop{\hsize\dimexpr\hsize-\wd\scratchbox\relax#2}% \box\scratchbox}} \setuphead[chapter][command=\mychap,textstyle=\tfa,numberstyle=\tfd] \starttext \chapter{INTRODUCTION} \chapter{Text and more text and even more text and still more text till it stops} \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 ___________________________________________________________________________________