Re: [NTG-context] About \setupbackgrounds (again)

2017-08-09 Thread Fabrice Couvreur
HI Pablo,
This works perfectly
Thank you
Fabrice

2017-08-09 16:23 GMT+02:00 Pablo Rodriguez :

> On 08/09/2017 02:59 PM, Fabrice Couvreur wrote:
> > Hello,
> > How do I make the header appear on the first page only ?
> > Thank you
> > Fabrice
>
> Hello Fabrice,
>
> a workaround would be to suppress header dimension for all pages other
> than the first one.
>
> \definelayout
>   [noheader]
>   [header=2\lineheight,
>headerdistance=\lineheight,
>backspace=2cm,
>width=middle,
>topspace=\lineheight]
>
> \setuplayout
>   [header=\zeropoint,
>headerdistance=3\lineheight,
>backspace=2cm,
>width=middle,
>topspace=2cm]
>
> \definelayout[1][noheader]
>
> \setupbackgrounds[header,state=start][text][frame=off,
> bottomframe=on,framecolor=gray,rulethickness=2pt]
>
> \setupheader[style=bold]
>
> \setuppagenumbering
> [alternative=,
> location=footer]
>
> \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{6}{\input knuth}
> \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
> 
> ___
___
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
___

Re: [NTG-context] About \setupbackgrounds (again)

2017-08-09 Thread Pablo Rodriguez
On 08/09/2017 02:59 PM, Fabrice Couvreur wrote:
> Hello,
> How do I make the header appear on the first page only ?
> Thank you
> Fabrice

Hello Fabrice,

a workaround would be to suppress header dimension for all pages other
than the first one.

\definelayout
  [noheader]
  [header=2\lineheight,
   headerdistance=\lineheight,
   backspace=2cm,
   width=middle,
   topspace=\lineheight]

\setuplayout
  [header=\zeropoint,
   headerdistance=3\lineheight,
   backspace=2cm,
   width=middle,
   topspace=2cm]

\definelayout[1][noheader]

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

\setupheader[style=bold]

\setuppagenumbering
[alternative=,
location=footer]

\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{6}{\input knuth}
\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
___

[NTG-context] About \setupbackgrounds (again)

2017-08-09 Thread Fabrice Couvreur
Hello,
How do I make the header appear on the first page only ?
Thank you
Fabrice

\setuplayout
  [header=2\lineheight,
   headerdistance=\lineheight,
   backspace=2cm,
   width=middle,
   topspace=\lineheight]

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


\setupheader[style=bold]

\setuppagenumbering
[alternative=,
location=footer]


\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{6}{\input knuth}
\stoptext
___
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
___

Re: [NTG-context] About \setupbackgrounds

2017-08-02 Thread Fabrice Couvreur
Hi Aditya,

\defineframed
[headerframed]
[
  ...,
  location=depth,
  ...,
]
Fabrice

2017-08-01 12:21 GMT+02:00 Fabrice Couvreur :

> Hi Aditya,
> Neither command responds to what I'm trying to do. I will try to be
> clearer. If we look at the letter J, it touches the bottom line of the
> frame. I would like the space to be bigger between the header and the
> bottom line.
> Thank you
> Fabrice
>
> 2017-07-31 21:30 GMT+02:00 Aditya Mahajan :
>
>> On Mon, 31 Jul 2017, Fabrice Couvreur wrote:
>>
>> https://tex.stackexchange.com/questions/84425/fancyhdr-equiv
>>> alent-in-context
>>>
>>> Hello,
>>> I considered the solution proposed by Aditya. How to have a larger space
>>> between the title and the bottomframe ?
>>>
>>
>> What do you mean by "title"? If you mean the space between the bottom
>> rule of the header and where the text starts in the page, you can change
>> that using
>>
>> \setuplayout
>>[
>>  ...,
>>  headerdistance=...,
>>  
>>]
>>
>> If you mean the space between the header and the bottom frame of the
>> header, you can play around with
>>
>> \defineframed
>> [headerframed]
>> [
>>   ...,
>>   bottomoffset=...,
>>   ...,
>> ]
>>
>>
>> Aditya
>> 
>> ___
>> 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/list
>> info/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> 
>> ___
>
>
>
___
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
___

Re: [NTG-context] About \setupbackgrounds

2017-08-01 Thread Fabrice Couvreur
Hi Aditya,
Neither command responds to what I'm trying to do. I will try to be clearer. If
we look at the letter J, it touches the bottom line of the frame. I would
like the space to be bigger between the header and the bottom line.
Thank you
Fabrice

2017-07-31 21:30 GMT+02:00 Aditya Mahajan :

> On Mon, 31 Jul 2017, Fabrice Couvreur wrote:
>
> https://tex.stackexchange.com/questions/84425/fancyhdr-equiv
>> alent-in-context
>>
>> Hello,
>> I considered the solution proposed by Aditya. How to have a larger space
>> between the title and the bottomframe ?
>>
>
> What do you mean by "title"? If you mean the space between the bottom rule
> of the header and where the text starts in the page, you can change that
> using
>
> \setuplayout
>[
>  ...,
>  headerdistance=...,
>  
>]
>
> If you mean the space between the header and the bottom frame of the
> header, you can play around with
>
> \defineframed
> [headerframed]
> [
>   ...,
>   bottomoffset=...,
>   ...,
> ]
>
>
> Aditya
> 
> ___
> 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/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
___
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
___

Re: [NTG-context] About \setupbackgrounds

2017-07-31 Thread Aditya Mahajan

On Mon, 31 Jul 2017, Fabrice Couvreur wrote:


https://tex.stackexchange.com/questions/84425/fancyhdr-equivalent-in-context

Hello,
I considered the solution proposed by Aditya. How to have a larger space
between the title and the bottomframe ?


What do you mean by "title"? If you mean the space between the bottom rule 
of the header and where the text starts in the page, you can change that 
using


\setuplayout
   [
 ...,
 headerdistance=...,
 
   ]

If you mean the space between the header and the bottom frame of the 
header, you can play around with


\defineframed
[headerframed]
[
  ...,
  bottomoffset=...,
  ...,
]


Aditya
___
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
___

[NTG-context] About \setupbackgrounds

2017-07-31 Thread Fabrice Couvreur
https://tex.stackexchange.com/questions/84425/fancyhdr-equivalent-in-context

Hello,
I considered the solution proposed by Aditya. How to have a larger space
between the title and the bottomframe ?
Thank you
Fabrice

\setupbodyfont[11pt]
\setupcolors[state=start]
\setuplayout
  [header=2\lineheight,
   headerdistance=\lineheight,
   backspace=2cm,
   width=middle,
   topspace=2cm]

\setupbackgrounds[header][text][frame=off, bottomframe=on]


\setupheader[style=bold]


\defineframed[headerframed]
 [frame=off,
  align=middle,
  width=fit]

\setupheadertexts[\headerframed{\red contrôle n\high{o}1 \\ }]
\setupheadertexts[\headerframed{Lycée JANSON DE SAILLY\\ 31 juillet
2017}][\headerframed{T ES 2 \\ Durée 1 heure 30}]

\starttext
\input knuth
\stoptext
___
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
___