Double-sided documents with MetaFun's Field[Text][Text]
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)
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
participants (1)
-
śrīrāma