[NTG-context] setuplayout with duplex - shifted textarea

2013-10-14 Thread Zenlima
Hi,

I have a both sided document in which I have to switch the layout
inside a page. If I do that with text only content it works fine, but
as soon I have bigger objects (like a table) the textarea get messed
up (shifted horizontally).

I added in this example inner and outer margin notes to make it more
obvious.

Is there a way so solve this unwanted shifting like on page 2 of the
attached example?

Thanks,
H.

--8
\setuppapersize[A4][A4]

\definelayout[WithoutMarginnotes][location={duplex},grid=no,topspace=3cm,height=24cm,backspace=3cm,cutspace=0cm,leftmargin=1cm,leftmargindistance=0.4cm,width=16cm,rightmargindistance=0cm,rightmargin=0cm]

\definelayout[WithMarginnotes][location={duplex},grid=no,topspace=3cm,height=24cm,backspace=3cm,cutspace=0cm,leftmargin=1cm,leftmargindistance=0.4cm,width=12.1cm,rightmargindistance=0.4cm,rightmargin=3.5cm]

\setuppagenumbering[alternative=doublesided,location=]


\starttext

\setuplayout[WithMarginnotes]

\dorecurse {6} {
 \ininner[stack=yes]{\expanded{\dorecurse{2}{IM\recurselevel\space}}}%
 \inouter[stack=yes]{\expanded{\dorecurse{3}{OM\recurselevel\space}}}%
 \input tufte \par
}

\setuplayout[WithoutMarginnotes]

\placetable[split][]{Big table object}
{
\setupTABLE[row][1][width=\textwidth]
\bTABLE[split=repeat]
\bTABLEhead
\bTR \bTD XXX \eTD \eTR
\eTABLEhead
\bTABLEbody
\dorecurse{20}{
\bTR \bTD XXX \eTD \eTR}
\eTABLEbody
\eTABLE
}

\setuplayout[WithMarginnotes]

\dorecurse {3} {
 \ininner[stack=yes]{\expanded{\dorecurse{2}{IM\recurselevel\space}}}%
 \inouter[stack=yes]{\expanded{\dorecurse{3}{OM\recurselevel\space}}}%
 \input tufte \par
}

\stoptext

layoutchange-1.pdf
Description: Adobe PDF document
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] setuplayout with duplex - shifted textarea

2013-10-14 Thread Hans Hagen

On 10/14/2013 8:00 PM, Zenlima wrote:

Hi,

I have a both sided document in which I have to switch the layout
inside a page. If I do that with text only content it works fine, but
as soon I have bigger objects (like a table) the textarea get messed
up (shifted horizontally).

I added in this example inner and outer margin notes to make it more
obvious.

Is there a way so solve this unwanted shifting like on page 2 of the
attached example?


I have no time not to look into it, but changing the layout halfways a 
page for sure has side effects as the page builder then is using the 
current one and some of the action is delayed till the page builder


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___