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
___________________________________________________________________________________