Answering myself: width= number.todimen(0.25*tex.dimen.textwidth)
On 22 Dec 2010, at 14:10, Willi Egger wrote: > Hi Contexters! > > Consider the following snippet in a cld-file: > > context.framed({frame="on",width= "5cm"}, > function() ... end > ) > > This works fine so far. I would like to pass the width of the framed text in > terms of a fraction of the textwidth e.g. .25\textwidth. How must this be > coded? > > KR > > Willi > ___________________________________________________________________________________ > 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 ___________________________________________________________________________________