* Re: header misaligned and columns problem
2006-08-22 14:59 header misaligned and columns problem Horacio Suarez
@ 2006-08-22 15:21 ` Aditya Mahajan
0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan @ 2006-08-22 15:21 UTC (permalink / raw)
On Tue, 22 Aug 2006, Horacio Suarez wrote:
> Hello
>
> This is my page:
>
> \definepapersize[argento][width=20cm,height=28cm]
> \setuppapersize[argento][A3]
> \setuppagenumbering[alternative=doublesided,location=]
> \setuplayout[location=middle,marking=on,textwidth=150mm]
Quoting Hans from another thread
> it's dangerous to use dimensions in \setuplayout that get set
> themselves
> also, textwidth is for special purposed and special effects, not to
> be used here (spoils things)
So instead of specifying the textwidth, specify the backspace and
cutspace and let context figure out the textwidth...
\setuplayout
[width=middle,
location=middle,
backspace=2.5cm,
cutspace=2.5cm,
marking=on]
> And everithig is fine, but headers are not aligned with text.
>
> Also, I use 2 columns in most of the book, but 4 chapters uses 3 columns.
>
> I use
>
> \startcolumns[n=2, balance=yes,distance=8mm]
>
> or
>
> \startcolumns[n=3, balance=yes,distance=5mm]
>
> In two columns is ok, but in 3 columns, all the 3 columns don´t fit the whole
> textwidth, I mean, the sum of the 3 columns width plus the 2 intercolumns
> space are less (about 1cm) than 150mm, as setuplayout says.
The following works fine for me....
\definepapersize[argento][width=20cm,height=28cm]
\setuppapersize[argento][A3]
\setuppagenumbering[alternative=doublesided,location=]
\setuplayout
[width=middle,
location=middle,
backspace=2.5cm,
cutspace=2.5cm,
marking=on]
\showframe
\setupheadertexts[chapter][pagenumber]
\starttext
\chapter{Two Columns}
\startcolumns[n=2, balance=yes,distance=8mm]
\dorecurse{6}{\input knuth \endgraf}
\stopcolumns
\chapter{Three Columns}
\startcolumns[n=3, balance=yes,distance=5mm]
\dorecurse{6}{\input knuth \endgraf}
\stopcolumns
\stoptext
Aditya
^ permalink raw reply [flat|nested] 2+ messages in thread