ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mark Szepieniec <mszepien@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: setting margins in makeup
Date: Fri, 19 Dec 2014 16:38:09 +0100	[thread overview]
Message-ID: <CAE4-1rUNZCoW2pfVXDhWS4uNS-py0Sj3AjjiCRBMLzf+vUDZUw@mail.gmail.com> (raw)
In-Reply-To: <CAE4-1rVQFUv17VQ92=3EE+0J4qqK5qx+yUC6oS7ACzUUbHiHxQ@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2298 bytes --]

Sorry for the noise, I've solved it, turns out makeup pages still have
headers which you need to set to zero if you want uniform margins:

% Title page layout
% \definemakeup defines a layout with the same name, which we alter.
\definemakeup[titlepage]
\setuplayout  [titlepage][width=middle, backspace=20mm,
                          height=middle, topspace=20mm,
                          header=0mm]

did the trick for me.

Incidentally, what threw me off was the phrasing in the manual:

4.19
Makeup
A document may have a titlepage, a colofon and some pages that are not
directly related to the
main part of the document. Mostly these pages are not numbered and can do
without headers
and footers. Because their layout needs extra attention we prefer the word
makeup for defining
their specific layout.

Since my makeup pages indeed don't have page numbers, I presumed they
wouldn't have headers either. I may have read too much into that, but
perhaps that passage can be improved?

On Fri, Dec 19, 2014 at 3:33 PM, Mark Szepieniec <mszepien@gmail.com> wrote:
>
> I'm having trouble resetting my margins in makeup pages. I want the makeup
> pages to have equal topspace, bottomspace, backspace and cutspace,
> regardless of the standard layout of the rest of the document.
>
> Following Wolfgang's recommendation (
> http://www.ntg.nl/pipermail/ntg-context/2014/079409.html), I tried the
> following:
>
> \setuppapersize [A4][A4]
>
> % Standard page layout
> \setuplayout    [width=middle,  backspace=1.5in, cutspace=1.5in,
>                  height=middle, topspace=0.75in, bottomspace=0.75in]
>
> % Title page layout
> % \definemakeup defines a layout with the same name, which we alter.
> \definemakeup[titlepage]
> \setuplayout  [titlepage][width=middle, backspace=20mm, height=middle,
> topspace=20mm]
>
> \starttext
>
> \startmakeup[titlepage][top=,]
> bla
> \stopmakeup
>
> But, on my system, this puts the "bla" too far from the top of the page,
> and it looks as though the topspace has not been set properly. (Backspace
> seems ok), Am I doing something wrong or is there a better way to achieve
> this?
>
> Also, the manual says I can use the command \showframe to display frames
> to help in debugging, but that doesn't seem to do anything for me?
>
> Thanks in advance,
>
> Mark
>

[-- Attachment #1.2: Type: text/html, Size: 3261 bytes --]

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2014-12-19 15:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-19 14:33 Mark Szepieniec
2014-12-19 15:38 ` Mark Szepieniec [this message]
2014-12-20 22:55   ` Pablo Rodriguez
2014-12-21 11:02     ` Hans Hagen
2014-12-21 20:03       ` Mark Szepieniec
2014-12-20 22:51 ` Pablo Rodriguez

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=CAE4-1rUNZCoW2pfVXDhWS4uNS-py0Sj3AjjiCRBMLzf+vUDZUw@mail.gmail.com \
    --to=mszepien@gmail.com \
    --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).