ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* About Layout
@ 2017-07-29 10:07 Fabrice Couvreur
  2017-07-29 11:03 ` Pablo Rodriguez
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Couvreur @ 2017-07-29 10:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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 ?
Thank you
Fabrice

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

[-- Attachment #2: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: About Layout
  2017-07-29 10:07 About Layout Fabrice Couvreur
@ 2017-07-29 11:03 ` Pablo Rodriguez
  2017-07-30 10:40   ` Fabrice Couvreur
  2017-07-31  8:42   ` Fabrice Couvreur
  0 siblings, 2 replies; 4+ messages in thread
From: Pablo Rodriguez @ 2017-07-29 11:03 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: About Layout
  2017-07-29 11:03 ` Pablo Rodriguez
@ 2017-07-30 10:40   ` Fabrice Couvreur
  2017-07-31  8:42   ` Fabrice Couvreur
  1 sibling, 0 replies; 4+ messages in thread
From: Fabrice Couvreur @ 2017-07-30 10:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi Pablo,
Thank you for the answer. You are right !
I attach the dimensions of my documents and what I'm trying to do with
Context.
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: 3998 bytes --]

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

[-- Attachment #3: layout22.png --]
[-- Type: image/png, Size: 125250 bytes --]

[-- Attachment #4: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: About Layout
  2017-07-29 11:03 ` Pablo Rodriguez
  2017-07-30 10:40   ` Fabrice Couvreur
@ 2017-07-31  8:42   ` Fabrice Couvreur
  1 sibling, 0 replies; 4+ messages in thread
From: Fabrice Couvreur @ 2017-07-31  8:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-07-31  8:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-29 10:07 About Layout Fabrice Couvreur
2017-07-29 11:03 ` Pablo Rodriguez
2017-07-30 10:40   ` Fabrice Couvreur
2017-07-31  8:42   ` Fabrice Couvreur

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).