* \setupTABLE: framecolor @ 2023-03-25 5:45 jbf via ntg-context 2023-03-25 9:48 ` Henning Hraban Ramm via ntg-context 2023-03-25 16:28 ` Bruce Horrocks via ntg-context 0 siblings, 2 replies; 4+ messages in thread From: jbf via ntg-context @ 2023-03-25 5:45 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: jbf [-- Attachment #1.1: Type: text/plain, Size: 1223 bytes --] 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. Julian [-- Attachment #1.2: Type: text/html, Size: 2175 bytes --] [-- Attachment #2: Type: text/plain, Size: 496 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \setupTABLE: framecolor 2023-03-25 5:45 \setupTABLE: framecolor jbf via ntg-context @ 2023-03-25 9:48 ` Henning Hraban Ramm via ntg-context 2023-03-25 21:35 ` jbf via ntg-context 2023-03-25 16:28 ` Bruce Horrocks via ntg-context 1 sibling, 1 reply; 4+ messages in thread From: Henning Hraban Ramm via ntg-context @ 2023-03-25 9:48 UTC (permalink / raw) To: jbf via ntg-context; +Cc: Henning Hraban Ramm 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \setupTABLE: framecolor 2023-03-25 9:48 ` Henning Hraban Ramm via ntg-context @ 2023-03-25 21:35 ` jbf via ntg-context 0 siblings, 0 replies; 4+ messages in thread From: jbf via ntg-context @ 2023-03-25 21:35 UTC (permalink / raw) To: Henning Hraban Ramm via ntg-context; +Cc: jbf, mailing list for ConTeXt users Thanks for this Hraban. I had come to the conclusion that there was no possibility of a 'bottomframecolor' option, and as TABLE is one of the older commands and important for XML, I assume it won't change much (though the option of different colours for frame sides would be good, and may not affect TABLE as such since it is \framed we are talking about really). Bruce's suggestion of a dummy row is a simple one, and it works. But I will also look at your solution too. Am always keen to have more than one arrow in the quiver! Julian On 25/3/23 20:48, Henning Hraban Ramm via ntg-context wrote: > 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 > ___________________________________________________________________________________ > ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \setupTABLE: framecolor 2023-03-25 5:45 \setupTABLE: framecolor jbf via ntg-context 2023-03-25 9:48 ` Henning Hraban Ramm via ntg-context @ 2023-03-25 16:28 ` Bruce Horrocks via ntg-context 1 sibling, 0 replies; 4+ messages in thread From: Bruce Horrocks via ntg-context @ 2023-03-25 16:28 UTC (permalink / raw) To: ntg-context mailing list; +Cc: Bruce Horrocks > On 25 Mar 2023, at 05:45, jbf via ntg-context <ntg-context@ntg.nl> wrote: > > 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. > Julian One way to achieve what you want is to have a dummy last row. \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,22][frame=on, framecolor=lightgray] \setupTABLE[row] [last] [topframe=on,framecolor=black, height=0pt] \starttext \bTABLE \dorecurse{22}{ \bTR\bTD Row #1 column 1 \eTD\bTD Row #1 column 2 \eTD\eTR } % Dummy last row \bTR \eTR \eTABLE \stoptext — Bruce Horrocks Hampshire, UK ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-03-25 21:35 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-03-25 5:45 \setupTABLE: framecolor jbf via ntg-context 2023-03-25 9:48 ` Henning Hraban Ramm via ntg-context 2023-03-25 21:35 ` jbf via ntg-context 2023-03-25 16:28 ` Bruce Horrocks via ntg-context
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).