ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jerónimo Alaminos Prats" <alaminos@ugr.es>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: align header in table
Date: Fri, 27 Aug 2010 10:36:04 +0200	[thread overview]
Message-ID: <E08CFBA7-3A0D-4AE7-B4D7-A21F1154E752@ugr.es> (raw)
In-Reply-To: <544C103B-BFD6-44B4-A223-31F794327907@ugr.es>




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
___________________________________________________________________________________


      reply	other threads:[~2010-08-27  8:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-26 18:29 Jerónimo Alaminos Prats
2010-08-27  8:36 ` Jerónimo Alaminos Prats [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E08CFBA7-3A0D-4AE7-B4D7-A21F1154E752@ugr.es \
    --to=alaminos@ugr.es \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).