ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: About Layout
Date: Mon, 31 Jul 2017 10:42:42 +0200	[thread overview]
Message-ID: <CACyK-eqoO3_puV+oGhxF3m3+hbZo7Pp6Cuz4vOkjZBP70joJxQ@mail.gmail.com> (raw)
In-Reply-To: <647e60a6-dd13-cc13-39fe-2e46a06e763e@gmx.es>


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

Hi Pablo,
Thank you for your answer.
You're right about the geometry package, here are the dimensions I get:


1 one inch + \ hoffset
2 \ oddsidemargin = -15pt
3 \ headheight = 26pt
4 \ textheight = 731pt
5 \ marginparsep = 10pt
6 \ footskip = 18pt
7 \ hoffset = 0pt
8 \ paperwidth = 597pt
9 one inch + \ voffset
10 \ topmargin = -52pt
11 \ headsep = 25pt
12 \ textwidth = 483pt
13 \ marginparwidth = 50pt
14 \ marginparpush = 5pt (not shown)
15 \ voffset = 0pt
16 \ paperheight = 845pt

Fabrice

2017-07-29 13:03 GMT+02:00 Pablo Rodriguez <oinos@gmx.es>:

> On 07/29/2017 12:07 PM, Fabrice Couvreur wrote:
> > Hello,
> > With Latex, for my layout, I used this :
> >
> > \documentclass[a4paper,11pt]{article}
> > \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
> >
> > With Context, I did this :
> >
> > \setuppapersize[A4][A4]
> > \setuplayout
> >   [ topspace=2cm,
> >     header=0pt,
> >     footer=1.5cm,
> >     bottomspace=0pt,
> >     backspace=2cm,
> >     cutspace=0pt,
> >     width=middle]
> >
> > Is it correct ?
> Hi Fabrice,
>
> the \setuplayout values are fine. Do they contain the same dimensions as
> in the LaTeX geometry options? Let me see ;-).
>
> You remove header in ConTeXt, but it seems not to be removed in LaTeX.
> This may make a different point to start placing text in the page (if
> you have header space defined in LaTeX [whether you use it or not]).
>
> You set the footer in ConTeXt. I don’t remember where LaTeX places the
> page number and how LaTeX handles the footer. You might end having a
> different point to end placing text in the page.
>
> Paper size in ConTeXt defaults to A4, so you may remove that line.
>
> BTW, you forgot to mention \setupbodyfont[11pt]. Body font size defaults
> to 12pt in ConTeXt.
>
> A way to check this is the following sample:
>
>     \setuplayout
>         [topspace=2cm,
>          height=middle,
>          header=0pt,
>          footer=1.5cm,
>          backspace=2cm,
>          width=middle]
>     \showframe
>     \starttext
>     \showlayout
>     \input zapf
>     \stoptext
>
> You don’t have to set bottomspace or cutspace with height or width set
> to middle.
>
> Just in case it helps,
>
> Pablo
> --
> http://www.ousia.tk
> ____________________________________________________________
> _______________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ____________________________________________________________
> _______________________

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

[-- Attachment #2: layout21.png --]
[-- Type: image/png, Size: 23917 bytes --]

[-- Attachment #3: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2017-07-31  8:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-29 10:07 Fabrice Couvreur
2017-07-29 11:03 ` Pablo Rodriguez
2017-07-30 10:40   ` Fabrice Couvreur
2017-07-31  8:42   ` Fabrice Couvreur [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=CACyK-eqoO3_puV+oGhxF3m3+hbZo7Pp6Cuz4vOkjZBP70joJxQ@mail.gmail.com \
    --to=fabrice1.couvreur@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).