ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Double-sided documents with MetaFun's Field[Text][Text]
@ 2022-02-07  2:19 śrīrāma via ntg-context
  2022-02-07  6:39 ` śrīrāma via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: śrīrāma via ntg-context @ 2022-02-07  2:19 UTC (permalink / raw)
  To: ntg-context; +Cc: śrīrāma

Dear list,

I have a double-sided document in which I want to draw certain page 
backgrounds on the right (odd) and left (even) pages. Here is an example

%%% SOF
    \setuppagenumbering[alternative=doublesided]
    \setuplayout
            [backspace=4cm,
            leftmargin=4cm,
            cutspace=2cm,
            rightmargin=2cm,
    leftmargindistance=0cm,
    rightmargindistance=0cm,
                header=2cm,
                footer=2cm,
            topspace=1cm,
            bottomspace=1cm,
                    top=1cm,
                bottom=1cm,
                width=middle,
                height=fit]

    \startuseMPgraphic{page}
    StartPage;
        draw Area[Text][Text] 
            shifted (InnerMarginWidth,BottomHeight+FooterHeight);
        draw Field[Text][Text] withcolor blue;
    StopPage;
    \stopuseMPgraphic
    \defineoverlay[page][\useMPgraphic{page}]
    \setupbackgrounds[page][background=page]

    \starttext
    \dorecurse{10}{\input knuth \page}
    \stoptext
%%% EOF

In the resulting PDF the Field[Text][Text] path is not positioned (/computed?) 
correctly, while the manually positioned Area[Text][Text] path is as expected. 
So, it seems that the margin widths and other distance are updated for each 
odd, even page but Field[Text][Text] is still wrong? The Field[Text][Text] 
path appears on every page as though it is on an odd (right) page.

Have I missed something?

Thanks,
śrīrāma (Sreeram)


___________________________________________________________________________________
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: Double-sided documents with MetaFun's Field[Text][Text]
  2022-02-07  2:19 Double-sided documents with MetaFun's Field[Text][Text] śrīrāma via ntg-context
@ 2022-02-07  6:39 ` śrīrāma via ntg-context
  0 siblings, 0 replies; 2+ messages in thread
From: śrīrāma via ntg-context @ 2022-02-07  6:39 UTC (permalink / raw)
  To: ntg-context; +Cc: śrīrāma

On Monday, February 7, 2022 7:49:27 AM IST śrīrāma wrote:
> […]
>             shifted (InnerMarginWidth,BottomHeight+FooterHeight);
> […]
> %%% EOF
> […]
> So, it seems that the margin widths and other distance are updated for each
> odd, even page
> […]

This too seems to be wrong. It should be OuterMarginWidth but it is only 
correctly positioned for InnerMarginWidth, indicating therefore that the 
distances were not updated (?). 

Sreeram




___________________________________________________________________________________
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:[~2022-02-07  6:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-07  2:19 Double-sided documents with MetaFun's Field[Text][Text] śrīrāma via ntg-context
2022-02-07  6:39 ` śrīrāma via ntg-context

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