From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60070 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 13:52:55 -0400 Message-ID: <010801cb1d34$1031dfc0$30959f40$@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 1278438800 12650 80.91.229.12 (6 Jul 2010 17:53:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Jul 2010 17:53:20 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 06 19:53:19 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 1OWCKb-0003Nu-Ua for gctc-ntg-context-518@m.gmane.org; Tue, 06 Jul 2010 19:53:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BF4EAC9BD4; Tue, 6 Jul 2010 19:53:16 +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 LKZWK0xoEAyg; Tue, 6 Jul 2010 19:53:14 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3147AC9BF4; Tue, 6 Jul 2010 19:53:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2AD5AC9BF4 for ; Tue, 6 Jul 2010 19:53:13 +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 s9Ta17oDdtGp for ; Tue, 6 Jul 2010 19:53:01 +0200 (CEST) Original-Received: from smtp1.ctinetworks.com (smtp1.ctinetworks.com [205.166.61.208]) by balder.ntg.nl (Postfix) with ESMTP id 6F99AC9BD4 for ; Tue, 6 Jul 2010 19:53:01 +0200 (CEST) Original-Received: from TomPC (dsl-206-251-4-109.dsl0.crls.pa.net [206.251.4.109]) by smtp1.ctinetworks.com (Postfix) with ESMTP id A86B15857FC for ; Tue, 6 Jul 2010 13:52:59 -0400 (EDT) In-Reply-To: <4C335769.8030604@googlemail.com> X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcsdJvXMzWzYj91iShaWrhiwofv8RgAA+9zg Content-Language: en-us X-ctinetworks-Information: Please contact the ISP for more information X-ctinetworks-MailScanner-ID: A86B15857FC.A672D X-ctinetworks-VirusCheck: Found to be clean X-ctinetworks-SpamCheck: X-ctinetworks-Watermark: 1279302780.40022@G32Jfq+yACLCHdob3V3WKg 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:60070 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 Thanks, Wolfgang. You have not only solved my immediate problem but have also provided me with examples of using the \deep commands. I haven't found enough documentation of them yet to get through my thick skull an understanding of what they do and how to use them. Can you explain to me the significance of the [1]s after the defines? I would still like to be able to convert chapter numbers to words without impacting the table of contents. I am confused about how \determineheadnumber and \currentheadnumber work. It appears to me that \determineheadnumber places the chapter number in a register and \currentheadnumber retrieves that value. I tried inserting \numstr before \currentheadnumber. That converts the chapter number to text and doesn't mess up the TOC but the first line is no longer stretched. Clearly, I don't understand this very well at all. 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 ___________________________________________________________________________________