ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: header misaligned and columns problem
Date: Tue, 22 Aug 2006 11:21:06 -0400 (EDT)	[thread overview]
Message-ID: <Pine.WNT.4.63.0608221117240.3560@nqvgln> (raw)
In-Reply-To: <BAY121-F10437ED6237FCE676BD1F0B4460@phx.gbl>

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

      reply	other threads:[~2006-08-22 15:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-22 14:59 Horacio Suarez
2006-08-22 15:21 ` Aditya Mahajan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.WNT.4.63.0608221117240.3560@nqvgln \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).