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: Space from bottom footer to bottom rim of paper
Date: Wed, 9 Aug 2017 22:57:30 +0200	[thread overview]
Message-ID: <CACyK-ers7xsZ6SQqgr4V6U81do6B8q3Hv1_M_nz6AqhA8oiq7g@mail.gmail.com> (raw)
In-Reply-To: <ed63c8cf-f951-a6d0-d1d3-302f3f7bc2db@gmx.es>


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

Hi Pablo
Thank you very much. By combining the two codes, you get what I want.
Fabrice


"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

\switchtobodyfont[11pt]

    \definelayout
      [noheader]
      [header=26pt,
       headerdistance=25pt,
       backspace=2cm,
       width=middle,
       topspace=\dimexpr 2cm-\headerheight-\headerdistance\relax,
       footer=16pt,
       height=middle]

    \setuplayout
      [header=\zeropoint,
       headerdistance=25pt,
       backspace=2cm,
       width=middle,
       topspace=\dimexpr 2cm-\headerheight-\headerdistance\relax,
       footer=16pt,
       height=middle]

    \definelayout[1][noheader]

    \setuppagenumbering
        [alternative=,
         location={footer,right]

    \setupbackgrounds[header][text]
                     [frame=off,
                      bottomframe=on,
                      framecolor=gray,
                      rulethickness=2pt]

    \defineframed[headerframed]
                 [frame=off,
                  location=depth,
                  bottomoffset=\lineheight,
                  align=middle,
                  width=fit]

    \setupheadertexts[\headerframed{\ss\sc\bf\red Contrôle n\high{o}\,1 \\
}]

    \setupheadertexts
            [\headerframed{\tfx\ss Lycée JANSON DE SAILLY\\ 31 juillet
2017}]
            [\headerframed{\tfx\ss T\high{le} ES 2 \\ Durée 1 heure 30}]

    \starttext
    \dorecurse{10}{\input knuth}
    \stoptext

2017-08-09 17:37 GMT+02:00 Pablo Rodriguez <oinos@gmx.es>:

> On 08/09/2017 05:05 PM, Fabrice Couvreur wrote:
> > I want topspace=bottomspace=2cm
> > It works for topspace but not for bottomspace
> > How to do ?
>
> Hi Fabrice,
>
> is this what you intend?
>
>     \showframe
>     \setuplayout
>       [header=26pt,
>        headerdistance=25pt,
>        backspace=2cm,
>        width=middle,
>        topspace=\dimexpr 2cm-\headerheight-\headerdistance\relax,
>        footer=16pt,
>        height=middle]
>        %~ bottomspace=\dimexpr 2cm-\footerheight-\footerdistance\relax]
>     \starttext
>     \ConTeXt.
>     \stoptext
>
> 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: 5493 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
___________________________________________________________________________________

      reply	other threads:[~2017-08-09 20:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-09 15:05 Fabrice Couvreur
2017-08-09 15:37 ` Pablo Rodriguez
2017-08-09 20:57   ` 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-ers7xsZ6SQqgr4V6U81do6B8q3Hv1_M_nz6AqhA8oiq7g@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).