I'm sorry for being so thick but this code errors out when I run it under TexLive 2010 MKIV. The problem seems to be in the processing of textcommand, so I commented it out. The error went away and the \ChapterNumberCommand seemed to execute correctly. However, I want to stretch the title as well as the chapter number, so that is not a solution. I couldn't find documentation for \structuretitle and \structurenumber and am completely lost.
Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -----Original Message----- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Tuesday, February 22, 2011 3:40 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] \stretched in chapter titles in MKII Am 22.02.2011 um 01:18 schrieb Tom: > 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? Use \structuretitle and \structurenumber to access the values. \defineconversion [tom] [One,Two,Three,Four,Five,.] \define[1]\ChapterTextCommand {\line{\expanded{\stretched{\structuretitle}}}} \define[1]\ChapterNumberCommand {\line{\expanded{\stretched{Chapter \convertnumber{tom}{\structurenumber}}}}} \setuphead [chapter] [ alternative=middle, style=\ssc, textstyle=\bf, numberstyle=\tf, textcommand=\ChapterTextCommand, numbercommand=\ChapterNumberCommand] \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 ___________________________________________________________________________________