ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Layer failure with LMTX
@ 2019-04-07 22:21 Rik Kabel
  2019-04-08  6:47 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Rik Kabel @ 2019-04-07 22:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 733 bytes --]

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

--
Rik


[-- Attachment #1.2: Type: text/html, Size: 912 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Layer failure with LMTX
  2019-04-07 22:21 Layer failure with LMTX Rik Kabel
@ 2019-04-08  6:47 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2019-04-08  6:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Rik Kabel

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
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-08  6:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-07 22:21 Layer failure with LMTX Rik Kabel
2019-04-08  6:47 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).