On 9/23/2016 1:50 PM, Procházka Lukáš Ing. wrote:
Hello,
still a problem - consider the following code:
\ifx\startpapersize\undefined
\unprotect
\def\startpapersize{\page\pushmacro\page_paper_restore\setuppapersize}
\protect
\fi
\ifx\stoppapersize\undefined
\unprotect
Hello,
still a problem - consider the following code:
\ifx\startpapersize\undefined
\unprotect
\def\startpapersize{\page\pushmacro\page_paper_restore\setuppapersize}
\protect
\fi
\ifx\stoppapersize\undefined
\unprotect
Helo,
thanks both for proposals - I really need just to READ the values (and not to
modify them).
Best regards,
Lukas
On Thu, 08 Sep 2016 22:12:49 +0200, Hans Hagen wrote:
On 9/8/2016 9:47 PM, josephcan...@gmail.com wrote:
If by messing it’s meant modifying their values,
On 9/8/2016 9:47 PM, josephcan...@gmail.com wrote:
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
On 9/7/2016 9:39 PM, josephcan...@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
Hi,
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
Not sure these are always same. Hope this helps,
Regards,
Joseph Canedo
De : Procházka Lukáš
Hello,
is there a way to detect by Lua what is the size (width and height) of the last
shipped page?
Especially I'm interested in the situation when page via \start/\stopTEXpage
has been shipped, like:
\startluacode
LastPageSize = function()
-- What to come here?
return w, h