![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
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]\ChapterTextStretch{Chapter \currentheadnumber}} \setuphead [chapter] [alternative=middle, textstyle=sansbold, numberstyle=sans, deeptextcommand=\ChapterTextStretch, deepnumbercommand=\ChapterNumberStretch] \starttext \chapter{Test Chapter Title} \input knuth \stoptext Wolfgang