ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: James Fisher <jameshfisher@gmail.com>
To: Hans Hagen <pragma@wxs.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Margin terminology -- badly documented, undocumented, or misdocumented
Date: Thu, 25 Feb 2010 20:17:13 +0000	[thread overview]
Message-ID: <771da05a1002251217r437bc61el4389c5ecdebfd4bb@mail.gmail.com> (raw)
In-Reply-To: <4B864F88.6040201@wxs.nl>


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

Hi Hans,


Thanks for the reply -- and sorry for the rather grumpy way in which I posed
the question.  The problem for me was this mysterious "width=middle",
"height=middle" -- this is fairly undocumented at
http://wiki.contextgarden.net/Layout .  There is a mention of
"width=middle", but it's just followed by some code, most of which seems to
be irrelevant ("if cutspace == 0pt then cutspace = backspace; end"), and
there is no mention of "height=middle".  I would be more than willing to
document this myself, but what is it that "width=middle" actually *does*?
And what does "middle" actually *mean* -- the middle of *what*?


James

On Thu, Feb 25, 2010 at 10:23 AM, Hans Hagen <pragma@wxs.nl> wrote:

> On 25-2-2010 5:39, James Fisher wrote:
>
>> Hi all.
>>
>>
>> I am trying to understand the terminology for the \definelayout and
>> \setuplayout commands.
>> Unfortunately the documentation at
>> http://wiki.contextgarden.net/Layoutdoesn't<http://wiki.contextgarden.net/Layoutdoesn%27t>correspond to the actual
>>
>> output I get.
>> Nor does the 'documentation' at http://getfo.org/context_xml/page3.html ,
>> which the first page recommends.
>> More, the two pages seem pretty contradictory.
>>
>> Consider my situation: I'm trying to set up an A4 page with the following
>> margins (I use the term margin to mean the space from the edge of the
>> physical paper to the edge of the body text area):
>>
>> top: 2.97cm
>> bottom: 2.97cm
>> left: 2.1cm
>> right: 2.1cm
>>
>> For the moment, I don't care at all about header and footer space, nor
>> notes
>> in the margins; I'm just trying to get the above margins.
>> However, with all conceivable combinations of commands at both of those
>> pages, I've been unable to set anything like this up.
>>
>> Based on the getfo.org page, I should be able to set up these left and
>> right
>> margins with:
>>
>
> \setuplayout
>  [backspace=2.1cm,
>  cutspace=2.1cm,
>  width=middle,
>  topspace=2.97cm,
>  bottomspace=2.97cm,
>  height=middle]
>
> \showframe
>
> \starttext
>
> \input tufte
>
> \stoptext
>
>
> -----------------------------------------------------------------
>                                          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
> -----------------------------------------------------------------
>

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

[-- Attachment #2: Type: text/plain, Size: 486 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
___________________________________________________________________________________

  parent reply	other threads:[~2010-02-25 20:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-25  4:39 James Fisher
2010-02-25 10:23 ` Hans Hagen
2010-02-25 10:57   ` R. Bastian
2010-02-25 20:17   ` James Fisher [this message]
2010-02-26  9:03     ` luigi scarso
2010-03-02 11:03     ` Hans Hagen
2010-03-02 21:33       ` James Fisher
2010-03-02 21:42         ` Wolfgang Schuster
2010-03-02 21:59           ` James Fisher
2010-03-02 23:18         ` luigi scarso
2010-03-08  9:21         ` Hans Hagen

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=771da05a1002251217r437bc61el4389c5ecdebfd4bb@mail.gmail.com \
    --to=jameshfisher@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).