ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Willi Egger <w.egger@boede.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Changing the formatting of Natural Tables
Date: Thu, 12 Nov 2009 22:31:41 +0100	[thread overview]
Message-ID: <3B4CFFD6-8E21-4F28-B7CD-6D17DF367096@boede.nl> (raw)
In-Reply-To: <3b4b12310911121321l3f04873ft182de0bc8221beb3@mail.gmail.com>

Hi,

If you place the setups outside the bTABLE - eTABLE then the setup is  
global. You can put the setups after the bTABLE and then they are  
local to the table.

Willi
On Nov 12, 2009, at 10:21 PM, Curiouslearn wrote:

> Hello,
>
> I am using natural tables to make tables in my document. Can  
> someone please tell me how I can prevent context from applying  
> features I choose for an earlier table to a table that appears  
> later in the document. Following is an example of two tables. Even  
> though I choose
>
> \setupTABLE[frame=off]
>
> for the second table, there is a frame created based on what I  
> define for an earlier table. I am using MKII (since I want to use  
> Tikz).
>
> I would really appreciate any help.
>
> Example:
>
> \setuplayout[letter,height=
> 9in,width=5.5in,topspace=1in,header=1cm,backspace=1.5in]
>
> % Changing the location of the page numbers so that they appear in  
> the footer.
> \setuppagenumbering[location=footer]
>
> \setupcolors[state=start]
> \setupcolor[xwi]
>
> \starttext
>
> %%%%%% First Table  %%%%%%
> \setupTABLE[frame=off]
>         \setupTABLE[column][3,4,5][align={middle,lohi},width=0.6in]
>         \setupTABLE[column][2][align=lohi]
>         \setupTABLE[row][3][align={lohi,middle}]
>         \setupTABLE[3,4,5][3,4,5] 
> [background=color,backgroundcolor=ivory,framecolor=midnightblue,frame= 
> on] % Using color names from xwi colorscheme
>         \bTABLE
>             \bTR
>                 \bTD   \eTD
>                 \bTD   \eTD
>                 \bTD[nc=3] {\bf Player 2} \eTD \eTR
>             \bTR
>                 \bTD   \eTD
>                 \bTD   \eTD
>                 \bTD  $ L $ \eTD
>                 \bTD  $ M $ \eTD
>                 \bTD  $ R $ \eTD \eTR
>             \bTR
>                 \bTD[nr=3,width=1in] {\bf Player 1}  \eTD
>                 \bTD  $ U $ \eTD
>                 \bTD  (8,8) \eTD
>                 \bTD  (0,9) \eTD
>                 \bTD  (0,0) \eTD \eTR
>             \bTR
>                 \bTD  $ C $ \eTD
>                 \bTD  (9,0) \eTD
>                 \bTD  (0,0) \eTD
>                 \bTD  (3,1) \eTD \eTR
>             \bTR
>                 \bTD  $ D $ \eTD
>                 \bTD  (0,0) \eTD
>                 \bTD  (1,3) \eTD
>                 \bTD  (3,3) \eTD \eTR
>         \eTABLE
>
> %%%%%% Second Table  %%%%%%
>
> Even though I repeat {\tt \\setupTABLE[frame=off]} command the  
> table has frame.
>
> \setupTABLE[frame=off]
> \bTABLE
>     \bTR
>         \bTD     \eTD
>         \bTD        \eTD
>         \bTD[nc=2] Player 2 \eTD
>         \bTD        \eTD
>     \eTR
>     \bTR
>         \bTD     \eTD
>         \bTD        \eTD
>         \bTD  C    \eTD
>         \bTD     D    \eTD
>     \eTR
>     \bTR
>         \bTD[nr=2] Player 1     \eTD
>         \bTD      C        \eTD
>         \bTD  (2,2)    \eTD
>         \bTD      (0,4)    \eTD
>     \eTR
>     \bTR
>
>         \bTD      D        \eTD
>         \bTD  (4,0)    \eTD
>         \bTD     (1,1)    \eTD
>     \eTR
>
>
> \eTABLE
>
> \stoptext
> ______________________________________________________________________ 
> _____________
> 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
> ______________________________________________________________________ 
> _____________

___________________________________________________________________________________
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:[~2009-11-12 21:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-12 21:21 Curiouslearn
2009-11-12 21:31 ` Willi Egger [this message]
2009-11-12 21:38   ` Wolfgang Schuster
2009-11-12 21:32 ` Wolfgang Schuster
2009-11-12 21:38   ` Curiouslearn

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=3B4CFFD6-8E21-4F28-B7CD-6D17DF367096@boede.nl \
    --to=w.egger@boede.nl \
    --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).