* setting up even and odd pages
@ 2005-02-25 6:03 Paul Tremblay
2005-02-25 9:56 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Paul Tremblay @ 2005-02-25 6:03 UTC (permalink / raw)
I'm confused on setting up even and odd pages. If I wanted to set up a
chapter with the first page one way, and even and odd pages another way,
how do I do this? Say the first page must start on an odd page. The
right margin will be 1 inch. Now the each succeeding left (or
even-numbered) page will have a left margin of 1 inch. The right margin
(the inner part if it were in a book) should be 1/2 inch. For the right
(odd-numbered page), the left margin (the inner part if it were a book)
should be 1/2 inch, while the right, outer margin should be 1 inch.
I am trying to accomplish this through /setuplayout[location=??].
Thanks
Paul
--
************************
*Paul Tremblay *
*phthenry@iglou.com *
************************
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: setting up even and odd pages
2005-02-25 6:03 setting up even and odd pages Paul Tremblay
@ 2005-02-25 9:56 ` Hans Hagen
2005-02-27 1:48 ` Paul Tremblay
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2005-02-25 9:56 UTC (permalink / raw)
Paul Tremblay wrote:
> I'm confused on setting up even and odd pages. If I wanted to set up a
> chapter with the first page one way, and even and odd pages another way,
> how do I do this? Say the first page must start on an odd page. The
> right margin will be 1 inch. Now the each succeeding left (or
> even-numbered) page will have a left margin of 1 inch. The right margin
> (the inner part if it were in a book) should be 1/2 inch. For the right
> (odd-numbered page), the left margin (the inner part if it were a book)
> should be 1/2 inch, while the right, outer margin should be 1 inch.
There are several methods, like:
\setuplayout[left] [....]
\setuplayout[right][....]
normally, if your layout is mirrored, setting
\setuppagenumbering[alternative=doublesided]
\setuplayout[...]
will swap dimensions
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: setting up even and odd pages
2005-02-25 9:56 ` Hans Hagen
@ 2005-02-27 1:48 ` Paul Tremblay
2005-02-28 12:39 ` Mari Voipio
0 siblings, 1 reply; 5+ messages in thread
From: Paul Tremblay @ 2005-02-27 1:48 UTC (permalink / raw)
On Fri, Feb 25, 2005 at 10:56:55AM +0100, Hans Hagen wrote:
>
> Paul Tremblay wrote:
> >I'm confused on setting up even and odd pages. If I wanted to set up a
> >chapter with the first page one way, and even and odd pages another way,
> >how do I do this? Say the first page must start on an odd page. The
> >right margin will be 1 inch. Now the each succeeding left (or
> >even-numbered) page will have a left margin of 1 inch. The right margin
> >(the inner part if it were in a book) should be 1/2 inch. For the right
> >(odd-numbered page), the left margin (the inner part if it were a book)
> >should be 1/2 inch, while the right, outer margin should be 1 inch.
>
> There are several methods, like:
>
> \setuplayout[left] [....]
> \setuplayout[right][....]
>
This doesn't work for me. ConTeXt simply ignores the command.
Paul
--
************************
*Paul Tremblay *
*phthenry@iglou.com *
************************
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: setting up even and odd pages
2005-02-27 1:48 ` Paul Tremblay
@ 2005-02-28 12:39 ` Mari Voipio
2005-02-28 20:14 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Mari Voipio @ 2005-02-28 12:39 UTC (permalink / raw)
Paul Tremblay wrote:
> On Fri, Feb 25, 2005 at 10:56:55AM +0100, Hans Hagen wrote:
>>There are several methods, like:
>>
>>\setuplayout[left] [....]
>>\setuplayout[right][....]
>
>
> This doesn't work for me. ConTeXt simply ignores the command.
Same here - ConTeXt just reverted to default margins (I assume) instead
of doing what it'd been told with the above commands... I checked with
\showsetups, it really totally ignored whatever I told it to have as
backspace.
However, Paul, if you "just" want mirror margins, i.e. "outside" and
"inside" margins, it can be done with the correct set of commands - by
trial and error I've gotten this to work:
\setuplayout
[location=middle, %"doublesided" NOT good here, don't try!
footer=1cm, %just a preference...
backspace=5.5cm, %inside margin from edge of page
width=12cm, %textwidth, give lots of empty space
leftmargindistance=5pt, %space between inner margin and text
rightmargindistance=5pt] %space between outer margin and text
(Note. This layout gives a wide *inner* margin, i.e. wide margin at the
spine/middle of a book, because the finished product is put into a
ringbinder, which 'eats' up quite much of the inside margin. Might look
funny to you with the fairly narrow text and wide inner margin, but
works nicely when in the binder.)
THIS is what turns the above (originally set up for a single right-hand
space, that's why 'left' is inside and 'right' is outside) into mirror
margins:
\setuppagenumbering
[alternative=doublesided,
location={header,margin}] %number in header at outer margin
[Actually, when I compile my manual with the above settings and print
for example pages 7 and 8 as duplex and hold the page against light,
there's an ever-so-little discrepancy by 1-1,5 mm on the margins on
different sides, but this might be our printer rather than the settings.
Doesn't bother me, the readers of the manual will never notice nor care.]
My chapters always start on an odd page on the right, i.e. as the
traditional book layout dictates, and this seemed to be a default
setting. Thus I didn't have to do anything about that, the pagenumbering
setting fixed all of it.
If you have an A4 page, 210 mm wide, this should suffice for you to give
your mirror margins - remember that the first page that comes out will
be an odd page, i.e. a right-hand page!
----
\setuplayout
[backspace=.5in, %1/2 inch inside margin
width=17.2cm] %textwidth, leaves 1" for outer margin
\setuppagenumbering
[alternative,doublesided]
----
If you are on letter paper, it is of course easy to resort to inches
altogether, the total width of a letter paper is 8.5 inches, so your
backspace (inner margin) is 0.5in and if you want 1 inch outer margin,
8.5-1.5 gives "width=7in".
[The example above might be off by a millimeter or two, although I can't
tell if it is my math, my ConTeXt or my LaserJet that causes this...]
A mistake I as a Windows user made in the beginning was trying to set
BOTH margins. When I realized that what I really need to do is to set
one (=left) margin and textwidth and whatever was left would make up the
second (=right) margin, my layouts started to work a lot better!
BTW, I found the graphic on p. 23 of the "big manual" (ConTeXt-en on
paper) to be very instructive and helpful. Once I had digested what it
really meant (and how it differed from for example Word and PageMaker),
I started to understand the layout commands a lot better and finally got
my manuals to look like I wanted them to look.
Hope this helps,
Mari
just a Windows dummy from the cold North
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: setting up even and odd pages
2005-02-28 12:39 ` Mari Voipio
@ 2005-02-28 20:14 ` Hans Hagen
0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2005-02-28 20:14 UTC (permalink / raw)
Mari Voipio wrote:
> Paul Tremblay wrote:
>
>> On Fri, Feb 25, 2005 at 10:56:55AM +0100, Hans Hagen wrote:
>>
>>> There are several methods, like:
>>>
>>> \setuplayout[left] [....]
>>> \setuplayout[right][....]
this only sets them up (\definelayout is normally used for new ones)
these layouts are set automatically when in doublesided mode
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-02-28 20:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-25 6:03 setting up even and odd pages Paul Tremblay
2005-02-25 9:56 ` Hans Hagen
2005-02-27 1:48 ` Paul Tremblay
2005-02-28 12:39 ` Mari Voipio
2005-02-28 20:14 ` 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).