[NTG-context] Getting page width and height in Lua

Jack Steyn steynjack at gmail.com
Thu Apr 30 16:36:04 CEST 2020

If I want to get the paper width and height to use in some Lua code, I can

local paperwidth, paperheight =

But what if I want to get the page width and height? That is, the width and
height of the first argument in the two-argument version of
\setuppapersize. Does anyone know how I can obtain these using Lua?

Many thanks,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200501/c17406fd/attachment.htm>

More information about the ntg-context mailing list