From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74776 Path: news.gmane.org!not-for-mail From: Charles Newsgroups: gmane.comp.tex.context Subject: Linebreak in a framed for a chapter setuphead Date: Wed, 29 Feb 2012 12:19:26 +0100 Message-ID: <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="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1330514394 10371 80.91.229.3 (29 Feb 2012 11:19:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Feb 2012 11:19:54 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 29 12:19:52 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 1S2hZV-0004Yi-Qh for gctc-ntg-context-518@m.gmane.org; Wed, 29 Feb 2012 12:19:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1DC90CB265; Wed, 29 Feb 2012 12:19: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 pHDQA2dE0wDC; Wed, 29 Feb 2012 12:19:41 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 16934CB25F; Wed, 29 Feb 2012 12:19:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1D54ACB25F for ; Wed, 29 Feb 2012 12:19:39 +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 4aaC-pNitUk8 for ; Wed, 29 Feb 2012 12:19:28 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 58B3ECB25E for ; Wed, 29 Feb 2012 12:19:28 +0100 (CET) Original-Received: from unige.ch (mc2.unige.ch [129.194.9.215]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q1TBJRAU022119 for ; Wed, 29 Feb 2012 12:19:27 +0100 Original-Received: from mmp3.unige.ch ([129.194.7.203]) by unige.ch stage1 with esmtp (Exim MailCleaner) id 1S2hXW-0002Iv-Pd for from ; Wed, 29 Feb 2012 12:17:46 +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 <0M0500FFVJGEHR90@mmp3.unige.ch> for ntg-context@ntg.nl; Wed, 29 Feb 2012 12:19:27 +0100 (MET) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120131 Thunderbird/10.0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=129.194.9.215; 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: 0QGDLjr3m - 5d6e6646b649 - 20120229 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:74776 Archived-At: 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? Thanks Charles \def\mychap#1#2{\framed[frame=off,width=\textwidth,align=flushleft,bottomframe=on]{\tfa#2\hfill\tfd#1}} \setuphead[chapter][command=\mychap] \starttext \chapter{INTRODUCTION} \mychap{2}{MANUAL} \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________