ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Charles Doherty <charles.doherty@icloud.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: double-sided page number placement
Date: Mon, 12 Jul 2021 11:48:39 +0100	[thread overview]
Message-ID: <99FB48BA-3F36-4E91-84AD-E1413364D694@icloud.com> (raw)
In-Reply-To: <528cfcb9-78a0-78ec-6e44-49e3c30bcadf@gmx.es>


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

Dear Pablo,

As you suggested location=inright 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!rightwidth
     \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!leftwidth\zerocount
     \fi
     \ifdim\rightedgewidth>\zeropoint
\page_layouts_right_edge_element\c!lefttext\c!leftstyle\c!leftcolor\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=doublesided,
>      location=inright]
> 
>  \starttext
>  \dorecurse{20}{\input knuth }
>  \stoptext
> 
> With current latest from 2021.07.10 21:51, "location=inright" behaves as
> you expect using LMTX.
> 
> Using MKIV with the current latest, there is no difference between
> "location=inright" and "location=inmargin".
> 
> I don’t 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
charles.doherty@icloud.com






[-- Attachment #1.2: Type: text/html, Size: 6912 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
___________________________________________________________________________________

  reply	other threads:[~2021-07-12 10:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-11 15:07 Charles Doherty
2021-07-12  5:20 ` Pablo Rodriguez
2021-07-12 10:48   ` Charles Doherty [this message]
2021-07-12 16:51   ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=99FB48BA-3F36-4E91-84AD-E1413364D694@icloud.com \
    --to=charles.doherty@icloud.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).