* Re: align header in table
2010-08-26 18:29 align header in table Jerónimo Alaminos Prats
@ 2010-08-27 8:36 ` Jerónimo Alaminos Prats
0 siblings, 0 replies; 2+ messages in thread
From: Jerónimo Alaminos Prats @ 2010-08-27 8:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
El 26/08/2010, a las 20:29, Jerónimo Alaminos Prats escribió:
> Hi all,
> I've been following the examples in the garden to write the following table
>
>
> \chardef\characteralignmentmode=1
>
> \startTABLE
> \setupTABLE[column][alignmentcharacter={,},aligncharacter=yes,align=middle]
> \setupTABLE[frame=off]
> \setupTABLE[row][first][bottomframe=on]
> \NC \alpha \NC \beta \NC error absoluto\NC error relativo \NC \NR
> \NC 2 \NC 2,1 \NC 0,1 \NC 0,05 \NC \NR
> \NC 2\times 10\high{-4} \NC 2,1\times 10\high{-4} \NC 0,1\times 10\high{-4} \NC 0,05 \NC \NR
> \NC 2\times 10\high{4} \NC 2,1\times 10\high{4} \NC 0,1\times 10\high{4} \NC 0,05 \NC\NR
> \stopTABLE
>
>
> Is there a way to have the entries of first row centered?
> The obvious \setupTABLE[row][first][align=middle] do not have any effect.
> Thanks,
> Jeronimo.
>
>
I forgot about table. Sorry for the noise. The result that I was looking for it's explained in the articles of Aditya on table macros.
\starttable[|l|cq1,5 |cq1,5 |cq1,2 |]
\NC\REF[cB]{\alpha} \NC \REF[cB]{$\alpha^{*}$} \NC \REF[cB]{error absoluto}\NC \REF[cB]{error relativo} \NC \AR
\HL
\NC 2 \NC 2,1 \NC 0,1 \NC 0,05 \NC \AR
\NC 2\times 10\high{-4} \NC 2,1\times 10\high{-4} \NC 0,1\times 10\high{-4} \NC 0,05 \NC \AR
\NC 2\times 10\high{4} \NC 2,1\times 10\high{4} \NC 0,1\times 10\high{4} \NC 0,05 \NC\AR
\HL
\stoptable
Best,
Jeronimo.
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread