Further experimentation has found a partial solution. However, I am still unable to get the chapter title line to stretch properly: %works fine as is except that chapter title is hardcoded %errors when hardcoded title is replaced with #2 %doesn't error when title is replaced with {#2} but title is not stretched %number of closing }s determined by trial and error \def\MyChapterCommand#1#2% #1 is number, #2 is text { \framed[frame=off,align=middle] {{\hbox to \hsize {\ss\stretched{Chapter {#1}}}} \par {{\hbox to \hsize {\switchtobodyfont[20pt]{\ss\bf\stretched{My 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 -----Original Message----- From: ntg-context-bounces@ntg.nl [mailto:ntg-context-bounces@ntg.nl] On Behalf Of Tom Sent: Monday, July 05, 2010 3:16 PM To: ntg-context@ntg.nl Subject: [NTG-context] \stretched in chapter titles in MKII 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 ____________________________________________________________________________ _______