ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Thomas Friedrich <friedrich@statistik.tu-dortmund.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Table cell spanning multiple columns in tabulate
Date: Mon, 15 Jul 2013 16:39:19 +0200	[thread overview]
Message-ID: <CA+cORN9NPhrF+KajTS_MAB0LkGDkOe-qRxaHe9z9gNW9Eypz4w@mail.gmail.com> (raw)

Hello ConTeXt users,

I am switching from texexec to context, and from table to tabulate.
Question: What is the equivalent for \use{2}\ReFormat[c]{text} in the
\table environment, when you what to do the same in the \tabulate
environment? I couldn't find the answer in the contextgarden.

Thank you for your help.

Please have a look at the following code.

~~~ snip ~~~
\enableregime[utf-8]

\starttext
\placetable[here][tab:tabulate]{Data of $13$ clinical trials
evaluating the efficacy of the Bacillus Calmette-Guérin
vaccine.}{\tfxx

\starttabulatehead
\FL
\NC Trial \NC Author \NC Year \NC Vaccinated\NC\NC Non
vaccinated\NC\NC Absolute \FR
\NC\NC\NC\NC Disease \NC No disease \NC  Disease \NC No disease \NC Latitude \LR
\HL
\stoptabulatehead

\starttabulate[|r|l|r|r|r|r|r|r|]
\HL
\NC A \NC Aronson              \NC 1948 \NC   4 \NC 119   \NC  11 \NC
128   \NC 44 \FR
\NC B \NC Ferguson \& Simes    \NC 1949 \NC   6 \NC 300   \NC  29 \NC
274   \NC 55 \MR
\NC C \NC Rosenthal et al      \NC 1960 \NC   3 \NC 228   \NC  11 \NC
209   \NC 42 \MR
\NC D \NC Hart \& Sutherland   \NC 1977 \NC  62 \NC 13536 \NC 248 \NC
12619 \NC 52 \MR
\NC E \NC Frimodt-Moller et al \NC 1973 \NC  33 \NC 5036  \NC  47 \NC
5761  \NC 13 \MR
\NC F \NC Stein \& Aronson     \NC 1953 \NC 180 \NC 1361  \NC 372 \NC
1079  \NC 44 \MR
\NC G \NC Vandiviere et al     \NC 1973 \NC   8 \NC 2537  \NC  10 \NC
619   \NC 19 \MR
\NC H \NC TPT Madras           \NC 1980 \NC 505 \NC 87886 \NC 499 \NC
87892 \NC 13 \MR
\NC I \NC Coetzee \& Berjak    \NC 1968 \NC  29 \NC 7470  \NC  45 \NC
7232  \NC 27 \MR
\NC J \NC Rosenthal et al      \NC 1961 \NC  17 \NC 1699  \NC  65 \NC
1600  \NC 42 \MR
\NC K \NC Comstock et al       \NC 1974 \NC 186 \NC 50448 \NC 141 \NC
27197 \NC 18 \MR
\NC L \NC Comstock \& Webster  \NC 1969 \NC   5 \NC 2493  \NC   3 \NC
2338  \NC 33 \MR
\NC M \NC Comstock et al       \NC 1976 \NC  27 \NC 16886 \NC  29 \NC
17825 \NC 33 \LR
\LL
\stoptabulate}

\placetable [here] [tab:table] {Data of $13$ clinical trials
evaluating the efficacy of the Bacillus Calmette-Guérin vaccine.}
{\tfxx
\starttable[|r|l|r|r|r|r|r|r|]
\HL
\NC Trial \NC Author \NC Year \NC \use{2}\ReFormat[c]{Vaccinated} \NC
\use{2}\ReFormat[c]{Non vaccinated} \NC Absolute \FR
\NC \NC  \NC  \NC Disease \NC No disease  \NC  Disease \NC No disease
\NC Latitude \LR
\HL
\NC A \NC Aronson              \NC 1948 \NC   4 \NC 119   \NC  11 \NC
128   \NC 44 \FR
\NC B \NC Ferguson \& Simes    \NC 1949 \NC   6 \NC 300   \NC  29 \NC
274   \NC 55 \MR
\NC C \NC Rosenthal et al      \NC 1960 \NC   3 \NC 228   \NC  11 \NC
209   \NC 42 \MR
\NC D \NC Hart \& Sutherland   \NC 1977 \NC  62 \NC 13536 \NC 248 \NC
12619 \NC 52 \MR
\NC E \NC Frimodt-Moller et al \NC 1973 \NC  33 \NC 5036  \NC  47 \NC
5761  \NC 13 \MR
\NC F \NC Stein \& Aronson     \NC 1953 \NC 180 \NC 1361  \NC 372 \NC
1079  \NC 44 \MR
\NC G \NC Vandiviere et al     \NC 1973 \NC   8 \NC 2537  \NC  10 \NC
619   \NC 19 \MR
\NC H \NC TPT Madras           \NC 1980 \NC 505 \NC 87886 \NC 499 \NC
87892 \NC 13 \MR
\NC I \NC Coetzee \& Berjak    \NC 1968 \NC  29 \NC 7470  \NC  45 \NC
7232  \NC 27 \MR
\NC J \NC Rosenthal et al      \NC 1961 \NC  17 \NC 1699  \NC  65 \NC
1600  \NC 42 \MR
\NC K \NC Comstock et al       \NC 1974 \NC 186 \NC 50448 \NC 141 \NC
27197 \NC 18 \MR
\NC L \NC Comstock \& Webster  \NC 1969 \NC   5 \NC 2493  \NC   3 \NC
2338  \NC 33 \MR
\NC M \NC Comstock et al       \NC 1976 \NC  27 \NC 16886 \NC  29 \NC
17825 \NC 33 \LR
\HL
\stoptable}
\stoptext
~~~ snip ~~~

Thomas
___________________________________________________________________________________
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:[~2013-07-15 14:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-15 14:39 Thomas Friedrich [this message]
2013-07-15 14:49 ` Wolfgang Schuster
2013-07-16  1:50   ` Sietse Brouwer
2013-07-16 13:15     ` Thomas Friedrich

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=CA+cORN9NPhrF+KajTS_MAB0LkGDkOe-qRxaHe9z9gNW9Eypz4w@mail.gmail.com \
    --to=friedrich@statistik.tu-dortmund.de \
    --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).