ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* empty lines messing with margins (in duplex mode)
@ 2011-11-10 13:57 Peter Schorsch
  2011-11-12 22:35 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Schorsch @ 2011-11-10 13:57 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 920 bytes --]

Hi,

I am not sure but maybe it is a bug: in duplex documents empty lines
causing a mess with the margins on every second page. 

Following lines create a fine pdf documents and all margins are set
correctly in the pdf file:

...
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M
M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M
M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M
M }\input tufte
...

But as soon I add between every two lines an empty line the margin on
every second page are corrupted. I am using the context version
2011.11.08.

I attached example files to reproduce and show the problem:

	duplex-margin-with-empty-lines.tex > problem occurs

	duplex-margin-without-empty-lines.tex > no problem

Can anyone approve this problem? Or did I something totally stupid to
get this result? 

I attached a jpg that shows the problem.

[-- Attachment #2: duplex-margin-with-empty-lines.tex --]
[-- Type: text/x-tex, Size: 1039 bytes --]

\definelayout[WithMarginnotes][grid=no,topspace=3cm,height=24cm,backspace=3cm,cutspace=0cm,leftmargin=1cm,leftmargindistance=0.4cm,width=12.1cm,rightmargindistance=0.4cm,rightmargin=3.5cm]
\setuplayout[WithMarginnotes]
\setuppagenumbering[alternative=doublesided,location=]
\showframe

\starttext

\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte

\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte

\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte

\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte

\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte

\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte

\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte

\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte

\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte



\stoptext

[-- Attachment #3: duplex-margin-without-empty-lines.tex --]
[-- Type: text/x-tex, Size: 1029 bytes --]

\definelayout[WithMarginnotes][grid=no,topspace=3cm,height=24cm,backspace=3cm,cutspace=0cm,leftmargin=1cm,leftmargindistance=0.4cm,width=12.1cm,rightmargindistance=0.4cm,rightmargin=3.5cm]
\setuplayout[WithMarginnotes]
\setuppagenumbering[alternative=doublesided,location=]
\showframe

\starttext

\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte

\stoptext

[-- Attachment #4: duplex-margin-with-emty-lines.jpg --]
[-- Type: image/jpeg, Size: 47019 bytes --]

[-- Attachment #5: 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: empty lines messing with margins (in duplex mode)
  2011-11-10 13:57 empty lines messing with margins (in duplex mode) Peter Schorsch
@ 2011-11-12 22:35 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2011-11-12 22:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 10-11-2011 14:57, Peter Schorsch wrote:
> Hi,
>
> I am not sure but maybe it is a bug: in duplex documents empty lines
> causing a mess with the margins on every second page.
>
> Following lines create a fine pdf documents and all margins are set
> correctly in the pdf file:
>
> ....
> \ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M
> M }\input tufte
> \ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M
> M }\input tufte
> \ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M
> M }\input tufte
> ....
>
> But as soon I add between every two lines an empty line the margin on
> every second page are corrupted. I am using the context version
> 2011.11.08.
>
> I attached example files to reproduce and show the problem:
>
> 	duplex-margin-with-empty-lines.tex>  problem occurs
>
> 	duplex-margin-without-empty-lines.tex>  no problem
>
> Can anyone approve this problem? Or did I something totally stupid to
> get this result?

it's unrelated to newlines ... it's just that the analysis of stacking 
works over a limited range (btw, in any case you'd have to say stack=yes 
in order to get that)

i've added an extra option: continue:

\setuplayout
   [margin=1cm]

\showframe

\starttext

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

\page

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

\stoptext

which will be in the next beta ... quite experimental and not yet tuned


-----------------------------------------------------------------
                                           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:[~2011-11-12 22:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-10 13:57 empty lines messing with margins (in duplex mode) Peter Schorsch
2011-11-12 22:35 ` 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).