Am 12.11.2008 um 16:48 schrieb Bart C. Wise:
I am trying to change the spacing of a chapter title head. I found the "\kern" command; however, I could not get that to work over a string of text.
Then I found the following code: \def\dolist{\afterassignment\dodolist\let\next= } \def\dodolist{\ifx\next\endlist \let\next\relax \else \\\let\next\dolist \fi \next} \def\endlist{\endlist} \def\track#1\by#2{\def\\{\next\kern#2}% \leavevmode \hbox{\expandafter\dolist#1\endlist}}
Then I tried:
def\MyChapterCommand#1#2{ \framed[align=center,frame=off,width=\textwidth]{ \vbox{ \track{This is a Test} \by{.2em} \track #2 \by{.2em} } } \setuphead[chapter][ command=\MyChapterCommand }
The output from the \track{This is a Test} \by{.2em} works. However, the second track command (\track #2 \by{0.2em}) fails.
I spent many hours last night trying to change the kerning. What I want is something like: \kern{TEXT}{KERNING AMOUNT}.
What's available, or how do I fix the track command above. By the way,I'm running mkii.
Search for \stretched and \stretchednormalcase. http://archive.contextgarden.net/message/20080815.074940.ae67f770.en.html Wolfgang