ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl>
To: jbf via ntg-context <ntg-context@ntg.nl>
Cc: Henning Hraban Ramm <texml@fiee.net>
Subject: Re: \setupTABLE: framecolor
Date: Sat, 25 Mar 2023 10:48:00 +0100	[thread overview]
Message-ID: <d7299461-01b5-c1d8-41dc-3bd613a9fcc8@fiee.net> (raw)
In-Reply-To: <cb68bef7-7395-9cec-8317-93340128789f@gmail.com>

Am 25.03.23 um 06:45 schrieb jbf via ntg-context:
> Hi, I am struggling with the last row of a table which, according to its 
> author, should have a black bottomframe, but gray (I am using a defined 
> 'lightgray') for the sides. The first row has a black frame. All 
> intermediate rows have gray.
> 
> I have no difficulty achieving the first row, and the black bottomframe 
> for the last row, but I have been unable to get the last row sides to be 
> gray. Here is the current setups that I have:
> 
> \setupTABLE[frame=off]
> 
> \setupTABLE[row] [first] [topframe=on,bottomframe=on,style=bold]
> 
> \setupTABLE[row][2][topframe=on]
> 
> \setupTABLE[row][2][topframe=off,rightframe=on,leftframe=on,framecolor=lightgray]
> 
> \setupTABLE[row][3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21][frame=on, framecolor=lightgray]
> 
> \setupTABLE[row] [last] [bottomframe=on,style=normal]
> 
> My first row is fine and all but the topframe of row 2 is 'lightgray'; 
> all following rows are 'lightgray'. The last row (22) has a black 
> bottomframe, but how could I achieve 'lightgray' for rightframe, 
> leftframe? If I add a new setup e.g.
> 
> \setupTABLE[row][last][rightframe=on,leftframe=on,framecolor=lightgray] 
> then I lose the bottomframe in black. I have tried all kinds of 
> combinations but unsuccessfully.

Table cells are based on \framed, and there doesn’t seem to be an option 
to have different colors of parts of the frame (e.g. bottomframecolor…)

You can use a MetaPost graphic as background, like in the “diagonal” 
example:
https://wiki.contextgarden.net/TABLE#Diagonal_rules

HTH, Hraban

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2023-03-25  9:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-25  5:45 jbf via ntg-context
2023-03-25  9:48 ` Henning Hraban Ramm via ntg-context [this message]
2023-03-25 21:35   ` jbf via ntg-context
2023-03-25 16:28 ` Bruce Horrocks via ntg-context

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=d7299461-01b5-c1d8-41dc-3bd613a9fcc8@fiee.net \
    --to=ntg-context@ntg.nl \
    --cc=texml@fiee.net \
    /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).