* tabulate as header
@ 2017-03-04 21:07 kaddour kardio
2017-03-05 18:25 ` Aditya Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: kaddour kardio @ 2017-03-04 21:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 565 bytes --]
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.
[-- Attachment #1.2: Type: text/html, Size: 2014 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] 3+ messages in thread
* Re: tabulate as header
2017-03-04 21:07 tabulate as header kaddour kardio
@ 2017-03-05 18:25 ` Aditya Mahajan
2017-03-05 21:39 ` kaddour kardio
0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2017-03-05 18:25 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 609 bytes --]
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
[-- 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] 3+ messages in thread
* Re: tabulate as header
2017-03-05 18:25 ` Aditya Mahajan
@ 2017-03-05 21:39 ` kaddour kardio
0 siblings, 0 replies; 3+ messages in thread
From: kaddour kardio @ 2017-03-05 21:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2122 bytes --]
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 <adityam@umich.edu> 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.
[-- Attachment #1.2: Type: text/html, Size: 4596 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] 3+ messages in thread
end of thread, other threads:[~2017-03-05 21:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-04 21:07 tabulate as header kaddour kardio
2017-03-05 18:25 ` Aditya Mahajan
2017-03-05 21:39 ` kaddour kardio
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).