From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60056 Path: news.gmane.org!not-for-mail From: "Tom" Newsgroups: gmane.comp.tex.context Subject: \stretched in chapter titles in MKII Date: Mon, 5 Jul 2010 15:15:59 -0400 Message-ID: <007701cb1c76$80afbab0$820f3010$@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 1278357381 17333 80.91.229.12 (5 Jul 2010 19:16:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 5 Jul 2010 19:16:21 +0000 (UTC) To: Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 05 21:16:18 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 1OVr9N-0002tW-Jr for gctc-ntg-context-518@m.gmane.org; Mon, 05 Jul 2010 21:16:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 16591C9B92; Mon, 5 Jul 2010 21:16: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 U0GPFq3GPE4Z; Mon, 5 Jul 2010 21:16:12 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2A619C9AFD; Mon, 5 Jul 2010 21:16:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C5FEBC9AFD for ; Mon, 5 Jul 2010 21:16:10 +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 a32YU81HtC0S for ; Mon, 5 Jul 2010 21:16:08 +0200 (CEST) Original-Received: from smtp1.ctinetworks.com (smtp1.ctinetworks.com [205.166.61.208]) by balder.ntg.nl (Postfix) with ESMTP id 31572C9AF5 for ; Mon, 5 Jul 2010 21:16:08 +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 DF80A58580B for ; Mon, 5 Jul 2010 15:16:04 -0400 (EDT) X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcscdoBibEepFAPHSA6IH2z+IuCuuQ== Content-Language: en-us X-ctinetworks-Information: Please contact the ISP for more information X-ctinetworks-MailScanner-ID: DF80A58580B.A7B9B X-ctinetworks-VirusCheck: Found to be clean X-ctinetworks-SpamCheck: X-ctinetworks-Watermark: 1279221366.77236@73JDTSo3JybZPct5uX8+ig 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:60056 Archived-At: 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: \def\MyChapterCommand#1#2% #1 is number, #2 is text {\hbox to \hsize {\ss\stretched{Chapter 1}} \par \hbox to \hsize {\ss\bf\stretched{Test Chapter Title}}} \setuphead[chapter] [command=\MyChapterCommand] \starttext \chapter{Test Chapter Title} \input knuth \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___________________________________________________________________________________ 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 ___________________________________________________________________________________