ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Troy Henderson <thenders@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Tables, Row Span, and Colors
Date: Thu, 12 Mar 2015 12:37:00 -0500	[thread overview]
Message-ID: <CAFP+xFL3ypFOUnQ7VqnBgXm8t=O-hAfxr9yL1KdBW=Qj=P0xkw@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1987 bytes --]

The following code produces my table, but I could not get the text "Region"
to span rows 3-7.  So, I would like


   1. the word "Region" to be inside the table and not "hacked" in the way
   that I have it.
   2. to make the (spanned) cell containing "Years" have a gray background.
   3. to make each of the "column heading" cells (i.e., the ones containing
   "<1", "1-2", ..., "15+", and "Total" to have a gray background.
   4. to have the (spanned) cell containing "Region" (from #1) have a gray
   background.
   5. to have the "row heading" cells (i.e., the ones containing "East",
   Midwest", "South", "West", and "Total") have a gray background.

I would appreciate any help in attaining this wish list.

Thanks in advance,

Troy

—— Code Starts Here ——

\setupcolors[state=start]
\starttext
    \null\vskip15ex
    \hskip1em\framed[orientation=90,frame=off]{\bf
Region}\blank\vskip-25.5ex
    \starttable[|c|l|r|r|r|r|r|r|r|]
        \DC \DC \DL[7] \DR
        \NC \NC \VL \use{7}\ReFormat[cB]{Years} \VL \AR
        \DC \DC \DL[7] \DR
        \NC \NC \VL \ReFormat[cB]{$<1$} \VL \ReFormat[cB]{$1-2$} \VL
\ReFormat[cB]{$3-4$} \VL \ReFormat[cB]{$5-9$} \VL \ReFormat[cB]{$10-14$}
\VL \ReFormat[cB]{$15+$} \VL \ReFormat[cB]{Total} \VL \AR
        \HL
%        \VL \offset[y=8ex]{\framed[orientation=90,frame=off]{\bf Region}}
\VL East \VL 32 \VL 54 \VL 59 \VL 112 \VL 77 \VL 118 \VL 452 \VL \AR
        \VL \null\hskip2em\null \VL {\bf East} \VL 32 \VL 54 \VL 59 \VL 112
\VL 77 \VL 118 \VL 452 \VL \AR
        \VL \VL {\bf Midwest} \VL 31 \VL 68 \VL 68 \VL 120 \VL 63 \VL 173
\VL 523 \VL \AR
        \VL \VL {\bf South} \VL 53 \VL 92 \VL 93 \VL 158 \VL 106 \VL 158
\VL 660 \VL \AR
        \VL \VL {\bf West} \VL 41 \VL 56 \VL 67 \VL 78 \VL 45 \VL 86 \VL
373 \VL \AR
        \DC \DL[8] \DR
        \VL \VL {\bf Total} \VL 157 \VL 270 \VL 287 \VL 468 \VL 291 \VL 535
\VL 2008 \VL \AR
        \HL
    \stoptable
\stoptext

[-- Attachment #1.2: Type: text/html, Size: 2326 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2015-03-12 17:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-12 17:37 Troy Henderson [this message]
2015-03-13 12:11 ` Wolfgang Schuster
2015-03-13 23:27   ` Troy Henderson
2015-03-14  5:48     ` Otared Kavian
2015-03-15  2:20       ` Troy Henderson

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='CAFP+xFL3ypFOUnQ7VqnBgXm8t=O-hAfxr9yL1KdBW=Qj=P0xkw@mail.gmail.com' \
    --to=thenders@gmail.com \
    --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).