From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/90577 Path: news.gmane.org!not-for-mail From: Troy Henderson Newsgroups: gmane.comp.tex.context Subject: Tables, Row Span, and Colors Date: Thu, 12 Mar 2015 12:37:00 -0500 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0316004842==" X-Trace: ger.gmane.org 1426181872 8369 80.91.229.3 (12 Mar 2015 17:37:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Mar 2015 17:37:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 12 18:37:39 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YW739-0001rl-B5 for gctc-ntg-context-518@m.gmane.org; Thu, 12 Mar 2015 18:37:35 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 59E0B1022A for ; Thu, 12 Mar 2015 18:37:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tKlQ5itmmVML for ; Thu, 12 Mar 2015 18:37:33 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 9476310231 for ; Thu, 12 Mar 2015 18:37:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4F29D101F9 for ; Thu, 12 Mar 2015 18:37:04 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JnuKAAIY-wxW for ; Thu, 12 Mar 2015 18:37:03 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id E6BE3101E8 for ; Thu, 12 Mar 2015 18:37:02 +0100 (CET) Original-Received: from mail-yk0-x230.google.com (mail-yk0-x230.google.com [IPv6:2607:f8b0:4002:c07::230]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t2CHb1Hw025986 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 12 Mar 2015 18:37:02 +0100 Original-Received: by ykq142 with SMTP id 142so8067802ykq.7 for ; Thu, 12 Mar 2015 10:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=9DwC4RCzWl8mm8fBVbLrwUUAql0H9u6T3psDx2KryrU=; b=eyZECJPDgQWVaVYn8QFRPHJnsjg5eFOKyM/TDzQUMzuUn5EL1v0YUfpQUvGPRjqQdy QXz0zbPK9oNpkuK+z0it1Xb1XzkNfwcAR1QsXTwWHlNxcP/+hfA7WKLerple7Lmas3ru WvYiGXCPUSNVM2PPMbVZllpPtqsNcI6HbtlPaF0gvogBvS+4hUV1LMIZ3NaMOQFMeF13 PPBTc21jYmzHlmiRNEVXIUTeyLGOKGuxkTRItnh+vi+gqtBB7e2X1UjeLiVj53SrTney bleXxYdmJ3S88Md/VKZg27YdPaXp9Yo2gT1hVKMFikCU1eGO8Xt3TrlV0O6Esfwnjz0d uC6A== X-Received: by 10.236.41.132 with SMTP id h4mr42539417yhb.140.1426181820892; Thu, 12 Mar 2015 10:37:00 -0700 (PDT) Original-Received: by 10.170.120.210 with HTTP; Thu, 12 Mar 2015 10:37:00 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4002:c07::230; country=US; latitude=38.0000; longitude=-97.0000; http://maps.google.com/maps?q=38.0000,-97.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03O2FB2By - 007ce568e754 - 20150312 Received-SPF: pass (filter3-ams.mf.surf.net: domain of thenders@gmail.com designates 2607:f8b0:4002:c07::230 as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2607:f8b0:4002:c07::230; envelope-from=; helo=mail-yk0-x230.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:90577 Archived-At: --===============0316004842== Content-Type: multipart/alternative; boundary=089e0122a2f4d2052805111ad4ba --089e0122a2f4d2052805111ad4ba Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 =E2=80=94=E2=80=94 Code Starts Here =E2=80=94=E2=80=94 \setupcolors[state=3Dstart] \starttext \null\vskip15ex \hskip1em\framed[orientation=3D90,frame=3Doff]{\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=3D8ex]{\framed[orientation=3D90,frame=3Doff]{\bf Reg= ion}} \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 --089e0122a2f4d2052805111ad4ba Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The following code produces my table, but I could not get = the text "Region" to span rows 3-7.=C2=A0 So, I would like
  1. the word "Region" to be inside the table and not "h= acked" in the way that I have it.
  2. to make the (spanned) cell c= ontaining "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 ha= ve a gray background.
  4. to have the (spanned) cell containing "R= egion" (from #1) have a gray background.
  5. to have the "row= heading" cells (i.e., the ones containing "East", Midwest&q= uot;, "South", "West", and "Total") have a gr= ay background.

I would appreciate any help in attaining this wi= sh list.

Thanks in advance,

Troy

=E2=80=94=E2=80=
=94 Code Starts Here =E2=80=94=E2=80=94

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

--089e0122a2f4d2052805111ad4ba-- --===============0316004842== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0316004842==--