From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/103867 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Layer failure with LMTX Date: Sun, 7 Apr 2019 18:21:16 -0400 Message-ID: <7a746567-50c4-b5b9-5b38-18bb20915f1d@rik.users.panix.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2377188719827393866==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="59833"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 08 00:38:07 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hDGQR-000FS9-K1 for gctc-ntg-context-518@m.gmane.org; Mon, 08 Apr 2019 00:38:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C88CD117FBC; Mon, 8 Apr 2019 00:37:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YKdBNW6RrLC7; Mon, 8 Apr 2019 00:37:57 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F40D4117FB1; Mon, 8 Apr 2019 00:37:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DEB11117FB1 for ; Mon, 8 Apr 2019 00:37:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sLGEKqkKJH8B for ; Mon, 8 Apr 2019 00:37:55 +0200 (CEST) X-Greylist: delayed 997 seconds by postgrey-1.36 at zapf.ntg.nl; Mon, 08 Apr 2019 00:37:54 CEST Original-Received: from l2mail1.panix.com (l2mail1.panix.com [166.84.1.75]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id F02B2117FB0 for ; Mon, 8 Apr 2019 00:37:54 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by l2mail1.panix.com (Postfix) with ESMTPS id 44cp195QsGzDY8 for ; Sun, 7 Apr 2019 18:21:17 -0400 (EDT) Original-Received: from [172.18.76.120] (unknown [70.158.101.56]) by mailbackend.panix.com (Postfix) with ESMTPSA id 44cp181YR0zrBk for ; Sun, 7 Apr 2019 18:21:15 -0400 (EDT) Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:103867 Archived-At: This is a multi-part message in MIME format. --===============2377188719827393866== Content-Type: multipart/alternative; boundary="------------858705BE51744F9B538431B7" Content-Language: en-US This is a multi-part message in MIME format. --------------858705BE51744F9B538431B7 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------858705BE51744F9B538431B7 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

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

--------------858705BE51744F9B538431B7-- --===============2377188719827393866== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2377188719827393866==--