![](https://secure.gravatar.com/avatar/4da8dbbf92ebc6723a2215b6043a25c7.jpg?s=120&d=mm&r=g)
Hi Luigi, thanks for the explanation, now (finally) I understand the mechanism… Willi On Jul 5, 2012, at 5:49 PM, luigi scarso wrote:
On Thu, Jul 5, 2012 at 5:23 PM, Willi Egger
wrote: Hello! I just downloaded yesterday night's version of Context and tried the example provided. - What is wrong with the first line with the \hbox? This stretched text is as long as the second line and uses the whole text width. The third line has a width of 10cm as it seems.
\ruledhbox to 5cm{\stretched{to the limit}} means that the box has 5cm, but \stretched must use some horizontal size (i.e \hsize) to stretch the text. The twos are different lengths: it doesn't make much sense to strecth the text "to the limit" to its natural width (yes, it makes sense --- stretched is nil) try \ruledhbox to 5cm{\stretched{to the limit}} \ruledhbox to 5cm{\hsize=5cm\stretched{to the limit}} \ruledhbox to 5cm{\hsize=0cm\stretched{to the limit}} \ruledhbox{\stretched{to the limit}} \ruledhbox{\stretched[width=10cm]{to the limit}}
-- luigi
___________________________________________________________________________________ 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 ___________________________________________________________________________________