From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55903 Path: news.gmane.org!not-for-mail From: "Tom" Newsgroups: gmane.comp.tex.context Subject: Re: First page of chapter Date: Tue, 2 Feb 2010 21:51:34 -0500 Message-ID: <001201caa47b$ccbe0ba0$663a22e0$@com> References: <140B9618-4A13-467C-8C6B-98FDE154BD32@rz-online.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1265165528 2984 80.91.229.12 (3 Feb 2010 02:52:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Feb 2010 02:52:08 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 03 03:52:05 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 1NcVLW-0005Oy-MH for gctc-ntg-context-518@m.gmane.org; Wed, 03 Feb 2010 03:52:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AECBFC9CC1; Wed, 3 Feb 2010 03:53:01 +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 6VYID-Ohl7Gf; Wed, 3 Feb 2010 03:53:01 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 36C81C9C4A; Wed, 3 Feb 2010 03:52:55 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5199CC9C4A for ; Wed, 3 Feb 2010 03:52:50 +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 bOBYPvrn5HLE for ; Wed, 3 Feb 2010 03:52:45 +0100 (CET) Original-Received: from smtp1.ctinetworks.com (smtp1.ctinetworks.com [205.166.61.208]) by balder.ntg.nl (Postfix) with ESMTP id DF768C9C35 for ; Wed, 3 Feb 2010 03:52:44 +0100 (CET) Original-Received: from TomPC (c-69-138-96-150.hsd1.fl.comcast.net [69.138.96.150]) by smtp1.ctinetworks.com (Postfix) with ESMTP id B9E69585810 for ; Tue, 2 Feb 2010 21:51:39 -0500 (EST) In-Reply-To: <140B9618-4A13-467C-8C6B-98FDE154BD32@rz-online.de> X-Mailer: Microsoft Office Outlook 12.0 Thread-index: AcqkU8p+ZrXub37ISsyrxF9utu8xbAAJ6kDA Content-language: en-us X-ctinetworks-Information: Please contact the ISP for more information X-ctinetworks-MailScanner-ID: B9E69585810.AAA23 X-ctinetworks-VirusCheck: Found to be clean X-ctinetworks-SpamCheck: X-ctinetworks-Watermark: 1266029502.51203@+PRliTUY+9pcoIK3Hym9Og 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:55903 Archived-At: That works. Now I have to figure out how to insert the picture in the place marked GRAPHIC, get rid of all the boxes and get the page number to print on the bottom of the first page of the chapter. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey From: ntg-context-bounces@ntg.nl [mailto:ntg-context-bounces@ntg.nl] On Behalf Of Andreas Harder Sent: Tuesday, February 02, 2010 5:04 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] First page of chapter I am struggling with getting the first pages of my chapters laid out as desired. What I want on the top third of the page is a roughly 2 inch square graphic on the left with the chapter number and chapter title on the right in large print. The following chunk errors out as shown but works when hard-coded. =A0Am I headed off in the wrong direction by trying to use colu= mns in this way? Previously, I tried treating the chapter number and title as text with startfiguretext. It works but I can't format the chapter titles to fit properly. Any suggestions for a ConTeXt beginner? =A0 =A0 \def\ChapterTop#1#2{ =A0=A0 =A0\startcolumns[n=3D2] =A0=A0 =A0 =A0 =A0\placefigure[left]{none}{\externalfigure[chief]} =A0=A0 =A0\column =A0=A0 =A0 =A0 =A0 \switchtobodyfont[26pt] {\ss\bf\sl #1} =A0=A0 =A0 =A0 =A0 \blank[large]\blank[large]=A0 =A0=A0 =A0 =A0 =A0 =A0{\ss\bf #2} =A0=A0 =A0 \stopcolumns} =A0 \setuphead[chapter] =A0[command=3D\ChapterTop, header=3Dhigh,footer=3Dpagenumber,page=3Dcenter]= =A0 =A0 \input c:. %chapter used to test the code Hi! I think you search for something like this: \def\ChapterTop#1#2% bottom-aligned =A0=A0{\framed[width=3Dbroad,offset=3Doverlay] =A0=A0 =A0{\framed[width=3D2in,height=3D2in]{GRAPHIC}\hfill =A0=A0 =A0 \framed[align=3Dright]{#1\blank[2*big]#2}}} \definetext[ChapterFoot][footer][pagenumber] \setuphead =A0=A0[chapter] =A0=A0[command=3D\ChapterTop, =A0=A0 header=3Dhigh, =A0=A0 footer=3DChapterFoot, =A0=A0 numberstyle=3D\ssbid, =A0=A0 textstyle=3D\ssbfd] \starttext =A0\showframe \dorecurse{3}{\chapter{First Chapter}\dorecurse{5}{\input tufte}} \stoptext Greetings Andreas ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________