[NTG-context] Layer failure with LMTX

Hans Hagen j.hagen at xs4all.nl
Mon Apr 8 08:47:40 CEST 2019


On 4/8/2019 12:21 AM, Rik Kabel wrote:
> List,
> 
> The following example works as expected with MKIV but fails for me with 
> LMTX.
> 
>     \setuppapersize[A7]
>     \setuppagenumbering [location=]
> 
>     \definelayer [pageNumber][
>                    x=\dimexpr\pagewidth-\cutspace\relax,
>                    y=\topspace,
>                    width=\pagewidth,
>                    height=\pageheight,
>                   ]
> 
>     \startsetups [setupPage]
>          \setlayer[pageNumber]
>                  {\hskip\leftmargindistance
>                    \inframed[frame=off,leftframe=on,loffset=1em]{\userpage}}
>     \stopsetups
> 
>     \setupbackgrounds[page]
>                       [setups=setupPage,
>                        background=pageNumber]
>     \starttext
>     \page[empty]
>     \stoptext
use the official interface variables \paperwidth and \paperheight ... 
\pagewidth and \pageheight were never user variables (so you were lucky 
till now)

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
-----------------------------------------------------------------


More information about the ntg-context mailing list