ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* header misaligned and columns problem
@ 2006-08-22 14:59 Horacio Suarez
  2006-08-22 15:21 ` Aditya Mahajan
  0 siblings, 1 reply; 2+ messages in thread
From: Horacio Suarez @ 2006-08-22 14:59 UTC (permalink / raw)


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

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]

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.

Thankyou very much.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 2+ messages in thread

* 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

end of thread, other threads:[~2006-08-22 15:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-22 14:59 header misaligned and columns problem Horacio Suarez
2006-08-22 15:21 ` Aditya Mahajan

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).