From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66269 Path: news.gmane.org!not-for-mail From: "Tom" Newsgroups: gmane.comp.tex.context Subject: Re: \stretched in chapter titles in MKII Date: Mon, 21 Feb 2011 19:18:40 -0500 Message-ID: <010901cbd226$0f0ea7c0$2d2bf740$@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 1298333959 29957 80.91.229.12 (22 Feb 2011 00:19:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2011 00:19:19 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 22 01:19:15 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 1PrfyC-0003lp-2z for gctc-ntg-context-518@m.gmane.org; Tue, 22 Feb 2011 01:19:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 953B9CAA3A; Tue, 22 Feb 2011 01:19:10 +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 EQw7WvkTrQdY; Tue, 22 Feb 2011 01:18:57 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CAAB8CAA16; Tue, 22 Feb 2011 01:18:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CE647CAA16 for ; Tue, 22 Feb 2011 01:18:55 +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 9ShcS9tCkdLq for ; Tue, 22 Feb 2011 01:18:32 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 3C123C9A7C for ; Tue, 22 Feb 2011 01:18:32 +0100 (CET) Original-Received: from smtp1.ctinetworks.com (smtp1.ctinetworks.com [205.166.61.208]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1M0ITUY031259 for ; Tue, 22 Feb 2011 01:18:31 +0100 Original-Received: from TomPC (c-67-191-114-63.hsd1.fl.comcast.net [67.191.114.63]) by smtp1.ctinetworks.com (Postfix) with ESMTP id 8BB265859C2 for ; Mon, 21 Feb 2011 19:18:27 -0500 (EST) In-Reply-To: <4C335769.8030604@googlemail.com> X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcsdJvXMzWzYj91iShaWrhiwofv8Ri0/gO9A Content-Language: en-us X-ctinetworks-Information: Please contact the ISP for more information X-ctinetworks-MailScanner-ID: 8BB265859C2.AA062 X-ctinetworks-VirusCheck: Found to be clean X-ctinetworks-SpamCheck: X-ctinetworks-Watermark: 1299197908.81158@6R/M6854Pf5UJ9TUrNJUzQ X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=205.166.61.208; 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: 0bEaMiuCN - 12dd4e8fabbb - 20110222 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:66269 Archived-At: Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com The code that follows works fine in MKII but doesn't stretch the chapter title in MKIV. What must I change? Also, I want to convert the chapter number to text before stretching it. Has anything been done to the routines that convert numerals to alpha characters since last summer? Thanks, Tom -----Original Message----- From: ntg-context-bounces@ntg.nl [mailto:ntg-context-bounces@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Tuesday, July 06, 2010 12:19 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] \stretched in chapter titles in MKII Am 05.07.10 21:15, schrieb Tom: > I am trying to stretch two lines of text to the same width for use as a > chapter head. > I have two major problems: > > 1. The second line of text is appended to the end of the first line > instead > of being placed below it. > > 2. I get errors when using #1 and #2 as values, i.e {Chapter #1} and {#2}. > Because of these errors I have hardcoded the values in the example that > follows: \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 ____________________________________________________________________________ _______ 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 ____________________________________________________________________________ _______ ___________________________________________________________________________________ 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 ___________________________________________________________________________________