If by messing it’s meant modifying their values, I agree that’s a bad idea 😊, the requirement is likely to read the value only (at least this is my usage of these in shipouts « after » callback).

If these are not reliable, what’s the reliable way to get the page width and height ?

 

Thanks

Regards

 

Joseph

 

De : Hans Hagen
Envoyé le :jeudi 8 septembre 2016 00:22
À : ntg-context@ntg.nl
Objet :Re: [NTG-context] Size of the last shipped page by Lua?

 

On 9/7/2016 9:39 PM, josephcanedo@gmail.com wrote:

 

> There are dimensions related to this :

> 

> local paper_width = tex.getdimen('paperwidth')

> 

> local paper_height = tex.getdimen('paperheight')

> 

> There is also :

> 

> tex.pageheight

> tex.pagewidth

 

don't mess with these and don't rely on them

 

> Not sure these are always same. Hope this helps,

 

Hans

 

-----------------------------------------------------------------

                                           Hans Hagen | PRAGMA ADE

               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands

        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl

-----------------------------------------------------------------

___________________________________________________________________________________

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

___________________________________________________________________________________