From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60072 Path: news.gmane.org!not-for-mail From: "Tom" Newsgroups: gmane.comp.tex.context Subject: Re: \stretched in chapter titles in MKII Date: Tue, 6 Jul 2010 22:12:08 -0400 Message-ID: <012701cb1d79$cdd7ee80$6987cb80$@com> References: <007701cb1c76$80afbab0$820f3010$@com> <4C335769.8030604@googlemail.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 1278468758 5623 80.91.229.12 (7 Jul 2010 02:12:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Jul 2010 02:12:38 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 07 04:12:37 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 1OWK7k-0004Rd-Vp for gctc-ntg-context-518@m.gmane.org; Wed, 07 Jul 2010 04:12:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 071F2C9C58; Wed, 7 Jul 2010 04:12:32 +0200 (CEST) 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 wL1K7mdXDW0W; Wed, 7 Jul 2010 04:12:28 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9FD37C9C44; Wed, 7 Jul 2010 04:12:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 968EFC9C44 for ; Wed, 7 Jul 2010 04:12:26 +0200 (CEST) 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 33hBJvQaQA8S for ; Wed, 7 Jul 2010 04:12:14 +0200 (CEST) Original-Received: from smtp2.ctinetworks.com (smtp2.ctinetworks.com [205.166.61.227]) by balder.ntg.nl (Postfix) with ESMTP id 97099C9C38 for ; Wed, 7 Jul 2010 04:12:14 +0200 (CEST) Original-Received: from TomPC (dsl-206-251-4-109.dsl0.crls.pa.net [206.251.4.109]) by smtp2.ctinetworks.com (Postfix) with ESMTP id EAD821A748C for ; Tue, 6 Jul 2010 22:12:11 -0400 (EDT) In-Reply-To: <4C335769.8030604@googlemail.com> X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcsdJvXMzWzYj91iShaWrhiwofv8RgAUkitw Content-Language: en-us X-ctinetworks-Information: Please contact the ISP for more information X-ctinetworks-MailScanner-ID: EAD821A748C.68702 X-ctinetworks-VirusCheck: Found to be clean X-ctinetworks-SpamCheck: X-ctinetworks-Watermark: 1279332732.31063@KbjGWyMYvJdd73TWqvkAfQ 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:60072 Archived-At: \define[1]\ChapterTextStretch {\line{\stretched{#1}}} \define[1]\ChapterNumberStretch{\determineheadnumber[chapter]\ChapterTextStr etch{Chapter \currentheadnumber}} \setuphead [chapter] [alternative=middle, textstyle=sansbold, numberstyle=sans, deeptextcommand=\ChapterTextStretch, deepnumbercommand=\ChapterNumberStretch] \starttext \chapter{Test Chapter Title} \input knuth \stoptext Wolfgang I've tried to modify this code to change the chapter numbers to words. That part was successful but the above code only stretches the word "Chapter" but not the numbers' words. I also get errors when I try to get all caps by inserting \WORD in the first command. \input c:/BookLayouts/MyFirstBook/Macros/numstr.tex \define[1]\ChapterTextStretch {\line{\stretched{#1}}} \define[1]\ChapterNumberStretch {\ChapterTextStretch{Chapter\ChapterNumberWords}} \define[1]\ChapterNumberWords {\determineheadnumber[chapter]\numstr{\currentheadnumber}} \setuphead [chapter] [alternative=middle, textstyle=sansbold, numberstyle=sans, deeptextcommand=\ChapterTextStretch, deepnumbercommand=\ChapterNumberStretch] \starttext \completecontent \chapter{Test Chapter Title} \input knuth \chapter{Test Chapter With Very Long Title That Might Overflow Page} \input knuth \chapter{Test Chapter With Long Title Doesn't Overflow} \input knuth \stoptext Tom ___________________________________________________________________________________ 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 ___________________________________________________________________________________