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? \startsetups headertext \setupheadertexts[\setups{tableheader}] % \framed[frame=off, align=normal] \setuptableheader {\starttabulate[|p|p|p|] \NC Clinique médico chirurgicale El Abrar\NC \externalfigue[width=1.5cm][logo.png]\NC placeholder\NR \stoptabulate } \stopsetup thak you in advance -- Dr YAHYAOUI Mohamed Kaddour, cardiologue.Clinique EL ABRAR.
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
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
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.
participants (2)
-
Aditya Mahajan
-
kaddour kardio