Thanks to both of you, all three suggestions work. However, I don't understand all of the code. What does \dowithnextbox do exactly? In your last example, does it define the command \measure just for the next box? And why does my email client display this thread as a reply to the "fit to width by negative letterspacing or narrowing" thread started by Henning? Christoph On 13.06.2011 14:38, Wolfgang Schuster wrote:
Am 13.06.2011 um 14:34 schrieb Wolfgang Schuster:
\starttext
\dowithnextbox {\edef\AlphabetLength{\the\nextboxwd}}% \hbox{abcdefghijklmnopqrstuvwxyz}
\AlphabetLength
\stoptext
Or even better:
\starttext
\dowithnextbox {\definemeasure[alphabetlength][\the\nextboxwd]}% \hbox{abcdefghijklmnopqrstuvwxyz}
\measure{alphabetlength}
\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 ___________________________________________________________________________________