From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112108 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Charles Doherty Newsgroups: gmane.comp.tex.context Subject: Re: double-sided page number placement Date: Mon, 12 Jul 2021 11:48:39 +0100 Message-ID: <99FB48BA-3F36-4E91-84AD-E1413364D694@icloud.com> References: <458B9A9B-776E-4FED-AF61-6A14840D640C@icloud.com> <528cfcb9-78a0-78ec-6e44-49e3c30bcadf@gmx.es> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Content-Type: multipart/mixed; boundary="===============7331311244400457293==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10086"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 12 12:49:18 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m2tV0-0002Pf-RJ for gctc-ntg-context-518@m.gmane-mx.org; Mon, 12 Jul 2021 12:49:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BE9D2285A5B; Mon, 12 Jul 2021 12:48:47 +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 JcQjYgaSCwfo; Mon, 12 Jul 2021 12:48:45 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B387A285A6F; Mon, 12 Jul 2021 12:48:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3AB75285716 for ; Mon, 12 Jul 2021 12:48:44 +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 F9XcTZT2C9Du for ; Mon, 12 Jul 2021 12:48:42 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=17.58.23.191; helo=mr85p00im-hyfv06011401.me.com; envelope-from=charles.doherty@icloud.com; receiver= Original-Received: from mr85p00im-hyfv06011401.me.com (mr85p00im-hyfv06011401.me.com [17.58.23.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A4FA5285A6A for ; Mon, 12 Jul 2021 12:48:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1626086920; bh=IIq4xwFQUrzJHlGGZa/gDCQvVOvycNu2UJ5WWbhZp0c=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id; b=fCF4HrOJVfh/43+51yO5d1ONbbZLKi4zCIKf9oX+Ii3xUqSDw2340f+vzM4khWQf0 WkEMPdKfG3TSDa/M4WqHChdiVfGV6vwzbUyrpy4AnAWMJRzekIYb3mdwCsok5l1F8V 1Zvw52yjl4ZhcIdHo/JHkDnwV4AFfA3vK5VeIMuetpgpZuckExyqcKkJR488XQkC17 21J+FDrS24UO4uSd6Uk4qNyfrCxv/TDmC/08UWdRv1z+3NBJ8fIzfqIlEuOfhWdm9q Up2hcMs5AxS5ZUeNUgC1gU/HTCS53rnl0u69TdEX9sUwyJQFAVqTJtNuu9s4h039Oq AYBlnpAM+C6oQ== Original-Received: from smtpclient.apple (unknown [95.44.40.160]) by mr85p00im-hyfv06011401.me.com (Postfix) with ESMTPSA id 9B6C5D20222 for ; Mon, 12 Jul 2021 10:48:39 +0000 (UTC) In-Reply-To: <528cfcb9-78a0-78ec-6e44-49e3c30bcadf@gmx.es> X-Mailer: Apple Mail (2.3654.100.0.2.22) X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.391,18.0.790,17.0.607.475.0000000_definitions?= =?UTF-8?Q?=3D2021-07-12=5F04:2021-07-12=5F02,2021-07-12=5F04,2020-04-07?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 suspectscore=0 mlxscore=0 spamscore=0 bulkscore=0 phishscore=0 malwarescore=0 adultscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2107120084 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.io gmane.comp.tex.context:112108 Archived-At: --===============7331311244400457293== Content-Type: multipart/alternative; boundary="Apple-Mail=_BB13602E-BEB4-4115-86A9-B2E112BB2863" --Apple-Mail=_BB13602E-BEB4-4115-86A9-B2E112BB2863 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear Pablo, As you suggested location=3Dinright works for me using LMTX Hans sent me: can you put this in cont-new.mkxl and test it with options \unprotect \def\page_layouts_place_text_line_left {\hpack {\ifdim\leftedgewidth>\zeropoint = \page_layouts_left_edge_element\c!righttext\c!rightstyle\c!rightcolor\c!ri= ghtwidth \fi \ifdim\leftmarginwidth>\zeropoint = \page_layouts_left_margin_element\c!righttext\c!rightstyle\c!rightcolor\c!= rightwidth\plusone \fi \ifdim\makeupwidth>\zeropoint \page_layouts_text_body_element_e_r_m_l \fi \ifdim\rightmarginwidth>\zeropoint = \page_layouts_right_margin_element\c!lefttext\c!leftstyle\c!leftcolor\c!le= ftwidth\zerocount \fi \ifdim\rightedgewidth>\zeropoint = \page_layouts_right_edge_element\c!lefttext\c!leftstyle\c!leftcolor\c!left= width \fi}} \protect With this both inright and inmargin work in LMTX and MKIV So everything is working for me now. Thank you for taking the time, Charlie > On 12 Jul 2021, at 06:20, Pablo Rodriguez wrote: >=20 > On 7/11/21 5:07 PM, Charles Doherty wrote: >> [...] >> the left page of the double spread places the page number on the left >> margin of the page and in the right page it is placed on the right >> margin. This is what I would like to get in LMTX as well. Am I doing >> something wrong here? >=20 > Hi Charles, >=20 > I think that "inright" is what you want: >=20 > \setuppagenumbering[alternative=3Ddoublesided, > location=3Dinright] >=20 > \starttext > \dorecurse{20}{\input knuth } > \stoptext >=20 > With current latest from 2021.07.10 21:51, "location=3Dinright" = behaves as > you expect using LMTX. >=20 > Using MKIV with the current latest, there is no difference between > "location=3Dinright" and "location=3Dinmargin". >=20 > I don=E2=80=99t know whether this is intended or not. >=20 > I hope it might help, >=20 > Pablo > -- > http://www.ousia.tk > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ ******************************* CHARLES DOHERTY 13 BANCROFT ROAD TALLAGHT DUBLIN=20 D24 YH2V home: +353 1 2447483 Mobile: +353 863868629 charles.doherty@icloud.com --Apple-Mail=_BB13602E-BEB4-4115-86A9-B2E112BB2863 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Dear = Pablo,

As you = suggested location=3Dinright works for me using LMTX

Hans sent me:

can you put this = in cont-new.mkxl and test it with options

\unprotect

\def\page_layouts_place_text_line_left
 {\hpack
    {\ifdim\leftedgewidth>\zeropoint
\page_layouts_left_edge_element\c!righttext\c!rightstyle\c!righ= tcolor\c!rightwidth
     \fi
     \ifdim\leftmarginwidth>\zeropo= int
\page_layouts_left_margin_element\c!righttext\c!rightstyle\c!ri= ghtcolor\c!rightwidth\plusone
     \fi
     \ifdim\makeupwidth>\zeropoint<= /div>
       \page_layouts_text_bo= dy_element_e_r_m_l
     \fi
     \ifdim\rightmarginwidth>\zerop= oint
\page_layouts_right_margin_element\c!lefttext\c!leftstyle\c!lef= tcolor\c!leftwidth\zerocount
     \fi
     \ifdim\rightedgewidth>\zeropoi= nt
\page_layouts_right_edge_element\c!lefttext\c!leftstyle\c!leftc= olor\c!leftwidth
     \fi}}

\protect


 With this both   inright  and =  inmargin work in LMTX and MKIV

So everything is working for me now.

Thank you for taking the = time,
Charlie


On 12 = Jul 2021, at 06:20, Pablo Rodriguez <oinos@gmx.es> wrote:

On = 7/11/21 5:07 PM, Charles Doherty wrote:
[...]
the left page of the double = spread places the page number on the left
margin of the = page and in the right page it is placed on the right
margin.= This is what I would like to get in LMTX as well. Am I doing
something wrong here?

Hi Charles,

I think that = "inright" is what you want:

=  \setuppagenumbering[alternative=3Ddoublesided,
=      location=3Dinright]

 \starttext
 \dorecurse{20}{\input = knuth }
 \stoptext

With = current latest from 2021.07.10 21:51, "location=3Dinright" behaves as
you expect using LMTX.

Using = MKIV with the current latest, there is no difference between
"location=3Dinright" and "location=3Dinmargin".

I don=E2=80=99t know whether this is intended = or not.

I hope it might help,

Pablo
--
http://www.ousia.tk
_______________________________________________________________= ____________________
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
_______________________________________________________________= ____________________

*******************************
CHARLES = DOHERTY
13 BANCROFT ROAD
TALLAGHT
DUBLIN 
D24 YH2V
home: +353 1 2447483
Mobile: +353 = 863868629




= --Apple-Mail=_BB13602E-BEB4-4115-86A9-B2E112BB2863-- --===============7331311244400457293== 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== --===============7331311244400457293==--