User talk:Zenlima

From ConTeXt wiki
Revision as of 14:26, 29 April 2012 by Zenlima (talk | contribs)
Jump to navigationJump to search

Hi, I use this page to support my question regarding context and summarize the result. Once a problem is solved I will move that text into the "normal" wiki pages.

Duplex with margins

Problem: At the moment mkiv creates wired margin on every duplex page. It appears when lines seperates the margins.

\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 

\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

Duplex-margin-with-empty-lines-without-continue.png

As you can see two problems occur:

  1. on the duplex page inner and outer margin are wrong places
  2. the with is also a little confused (maybe of the misplacing)
  3. the margins are overlapping

Once the empty lines are removes

(same header like above)

\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
\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

the result is ok:

Duplex-margin-without-empty-lines.png

But this is only a theoretical construction. In real life texting you have often empty lines.

[stacking=continue] only solves one aspect of the problem

the [stacking=continue] makes sure that te margins dont overlap each other. But the misplacing is still happening.

(Quelltext)

(Picture of pdf)