On 10/27/2011 11:53 AM, Wolfgang Schuster wrote:
With “tex.dimen[…]” you get the value in scaled points but util-dim.lua 
provides some functions to convert the value in points, centimeter etc.

\starttext
\startluacode
context.blackrule{ width = number.topoints(tex.dimen["textwidth"]/2) }
\stopluacode
\stoptext

Thank you Wolfgang, that's exactly what I was looking for!

All best

Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to