* setuplayout with duplex -> shifted textarea
@ 2013-10-14 18:00 Zenlima
2013-10-14 20:59 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Zenlima @ 2013-10-14 18:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 1717 bytes --]
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
[-- Attachment #2: layoutchange-1.pdf --]
[-- Type: application/pdf, Size: 17904 bytes --]
[-- Attachment #3: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: setuplayout with duplex -> shifted textarea
2013-10-14 18:00 setuplayout with duplex -> shifted textarea Zenlima
@ 2013-10-14 20:59 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2013-10-14 20:59 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-14 20:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-14 18:00 setuplayout with duplex -> shifted textarea Zenlima
2013-10-14 20:59 ` Hans Hagen
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).