![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
9 Oct
2016
9 Oct
'16
7:49 a.m.
On 10/8/2016 10:41 PM, Henning Hraban Ramm wrote:
Hi all,
I’m trying to write some dimensions to a file, e.g.
\startluacode io.savedata("settings.txt", context("\\textwidth")) \stopluacode
But that context() construct is nil. There’s probably a simple solution... ;)
\starttext \startluacode io.savedata("settings.txt", number.topoints(tex.dimen.textwidth)) \stopluacode \typefile{settings.txt} \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------