28 Oct
2011
28 Oct
'11
8:35 a.m.
Am 28.10.2011 um 08:55 schrieb Thomas A. Schmitz:
Luigi, Patrick,
thanks for your explanations! The point of my question was: can I feed the content of tex.dimen["textwidth"] directly back to TeX, and the answer to this appears to be "no"; you need to add some unit to it (otherwise, you get an error message). Which was a bit confusing to me at first, because the name tex.dimen implies that it holds a "real" dimension, like \newdim does.
You can get the same value in TeX when you print the value of a dimension with \number: \starttext \scratchdimen=3pt \number\scratchdimen \ctxlua{context(tex.dimen["scratchdimen"])} \stoptext Wolfgang