Thank you Aditya, i ended up using a layer for my header, but your approach
is more succint
\setupbackgrounds[page][background=mybg]
\setlayer[mybg] % name of the layer
[hoffset=2.5cm, voffset=0.2cm] % placement (from upper left corner
of the layer)
{\framed[frame=off, background=color, backgroundcolor= , height=3cm]{
\starttabulate[|p|lrw(2cm)|pr|]
\NC \ss Clinique médico chirurgicale El Abrar\NC
\externalfigure[logo.png][width=1cm, location=inline]\NC \ss Service de
cardiologie\NC \NR
\NC \ss\tfx Dr Yahyaoui .M.K \NC \NC \ss\tfx kaddourkardio(at)
gmail.com \NC \NR
\stoptabulate
}} % the actual contents of the layer
should i use the same layer for a sidebar, or better-off to define another
layer ?
On Sun, Mar 5, 2017 at 7:25 PM, Aditya Mahajan wrote:
> On Sat, 4 Mar 2017, kaddour kardio wrote:
>
> Hi everyone, i have a quiet simple question as i'm a beginnerin ConTeXT
>> (with a background of 05 years with LaTeX):
>> Is it possible tu use tabulate environment as a header?
>>
>
> Yes, but there were too many typos in your code.
>
> \setupheadertexts[\setups{tableheader}]
>
> \startsetups tableheader
> \starttabulate[|p|p|]
>\NC Clinique médico chirurgicale El Abrar
>\NC \externalfigure[width=1.5cm][logo.png]
>\NC \NR
> \stoptabulate
> \stopsetups
>
> \setuppagenumbering[location=footer]
>
> \starttext
> \input knuth
> \stoptext
>
> 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
>
> ___
>
--
Dr YAHYAOUI Mohamed Kaddour, cardiologue.Clinique EL ABRAR.
___
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
___