From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66051 Path: news.gmane.org!not-for-mail From: "Tom" Newsgroups: gmane.comp.tex.context Subject: Stretching chapter titles - MKII Date: Mon, 14 Feb 2011 19:45:43 -0500 Message-ID: <011501cbcca9$ade0eed0$09a2cc70$@com> 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: dough.gmane.org 1297730790 20998 80.91.229.12 (15 Feb 2011 00:46:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2011 00:46:30 +0000 (UTC) To: Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 15 01:46:26 2011 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 1Pp93h-0007zl-8v for gctc-ntg-context-518@m.gmane.org; Tue, 15 Feb 2011 01:46:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 20384CA9D4; Tue, 15 Feb 2011 01:46:24 +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 PevLiB3tGle3; Tue, 15 Feb 2011 01:46:11 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E9AC4CA96B; Tue, 15 Feb 2011 01:46:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 83F9BCA96B for ; Tue, 15 Feb 2011 01:46:09 +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 Em2cctrnAbUi for ; Tue, 15 Feb 2011 01:45:47 +0100 (CET) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id 6778ACA676 for ; Tue, 15 Feb 2011 01:45:47 +0100 (CET) Original-Received: from smtp2.ctinetworks.com (smtp2.ctinetworks.com [205.166.61.227]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1F0jj6C002831 for ; Tue, 15 Feb 2011 01:45:46 +0100 Original-Received: from TomPC (c-67-191-114-63.hsd1.fl.comcast.net [67.191.114.63]) by smtp2.ctinetworks.com (Postfix) with ESMTP id B7E4E1A73EA for ; Mon, 14 Feb 2011 19:45:38 -0500 (EST) X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcvMqavymd/PuErpRIyaV2eDxlkC9g== Content-Language: en-us x-cr-hashedpuzzle: AGSk CBBZ DOux D4ni Elkh E0/K GQQo HJXB HLYN Hh6A IBz2 JFhZ Je4A KM0z KYwb KllB; 1; bgB0AGcALQBjAG8AbgB0AGUAeAB0AEAAbgB0AGcALgBuAGwA; Sosha1_v1; 7; {8146903C-C347-4DC8-8572-98D403CF2803}; dABvAG0AQAB0AHUAeABlAGQAbwAtAHAAcgBlAHMAcwAuAGMAbwBtAA==; Tue, 15 Feb 2011 00:45:41 GMT; UwB0AHIAZQB0AGMAaABpAG4AZwAgAGMAaABhAHAAdABlAHIAIAB0AGkAdABsAGUAcwAgAC0AIABNAEsASQBJAA== x-cr-puzzleid: {8146903C-C347-4DC8-8572-98D403CF2803} X-ctinetworks-Information: Please contact the ISP for more information X-ctinetworks-MailScanner-ID: B7E4E1A73EA.59473 X-ctinetworks-VirusCheck: Found to be clean X-ctinetworks-SpamCheck: X-ctinetworks-Watermark: 1298594740.72597@wjm+zweWR83RM/oUku85UQ X-Bayes-Prob: 0.2793 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=205.166.61.227; country=US; region=PA; city=Mechanicsburg; latitude=40.2134; longitude=-77.0098; metrocode=566; areacode=717; http://maps.google.com/maps?q=40.2134,-77.0098&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0BE80JJpa - 8aa0fb6f3280 - 20110215 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 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:66051 Archived-At: Follows is some code that executes. The lines immediately following \starttext create a sample of the desired output format. However, I want to accomplish similar results for chapter titles via the passing of arguments containing the chapter title and number. Numerous attempts at that have resulted in abject failure. I am clearly missing something. \def\MyChapterCommand#1#2 {\switchtobodyfont[ss,30pt] \hbox to \hsize {\stretched{Chapter\\One}} \blank[small] \switchtobodyfont[sansbold,20pt] \hbox to \hsize {\stretched{It\\Was\\The\\Best\\Of\\Times}}} \setuphead[chapter] [command=\MyChapterCommand, header=empty,footer=chapter,page=mychapterpagebreak, after={\blank[0.5in]},before={\blank[force,1.0in]}] \starttext \switchtobodyfont[sans,30pt] \hbox to \hsize {\stretched{Chapter\\One}} \blank[small] \switchtobodyfont[sansbold,20pt] \hbox to \hsize {\stretched{It\\Was\\The\\Best\\Of\\Times}} \chapter{It\\Was\\The\\Best\\Of\\Times} \input knuth \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___________________________________________________________________________________ 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 ___________________________________________________________________________________