* next beta @ 2013-03-19 22:00 Hans Hagen 2013-03-19 22:46 ` Sietse Brouwer 2015-04-15 17:08 ` next beta Aditya Mahajan 0 siblings, 2 replies; 11+ messages in thread From: Hans Hagen @ 2013-03-19 22:00 UTC (permalink / raw) To: mailing list for ConTeXt users Hi The next beta will have this (I needed it for a manual): \starttext \starttabulate[||CL{darkred}|CM{darkgreen}CT{white}|CR{darkblue}||] \NC first \NC left \NC middle \NC right \NC last \NC \NR \NC first \NC \color[white]{left} \NC middle \NC \color[white]{right} \NC last \NC \NR \NC first \NC left \NC middle \NC right \NC last \NC \NR \stoptabulate \stoptext i.e. we already had CL CM and CR, so CT is new .. should be wikified. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: next beta 2013-03-19 22:00 next beta Hans Hagen @ 2013-03-19 22:46 ` Sietse Brouwer 2013-03-19 23:03 ` Hans Hagen ` (2 more replies) 2015-04-15 17:08 ` next beta Aditya Mahajan 1 sibling, 3 replies; 11+ messages in thread From: Sietse Brouwer @ 2013-03-19 22:46 UTC (permalink / raw) To: mailing list for ConTeXt users > i.e. we already had CL CM and CR, so CT is new .. should be wikified. The wiki [1] describes these \C* commands: \CR color is applied to the background of the text and the remaining space on the right; \CC color is applied to the background of the text only; \CM color is applied to the background of the text and the remaining space on both sides; \CL color is applied to the background of the text and the remaining space on the left. [1] http://wiki.contextgarden.net/Tabulate What does CT do differently than CC? It's not quite clear from the example. Cheers, Sietse ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: next beta 2013-03-19 22:46 ` Sietse Brouwer @ 2013-03-19 23:03 ` Hans Hagen 2013-03-20 7:14 ` Keith J. Schultz 2013-03-20 7:24 ` next beta (tabulate) Alan BRASLAU 2 siblings, 0 replies; 11+ messages in thread From: Hans Hagen @ 2013-03-19 23:03 UTC (permalink / raw) To: mailing list for ConTeXt users On 3/19/2013 11:46 PM, Sietse Brouwer wrote: >> i.e. we already had CL CM and CR, so CT is new .. should be wikified. > > The wiki [1] describes these \C* commands: > > \CR color is applied to the background of the text and the remaining > space on the right; > \CC color is applied to the background of the text only; > \CM color is applied to the background of the text and the remaining > space on both sides; > \CL color is applied to the background of the text and the remaining > space on the left. > > [1] http://wiki.contextgarden.net/Tabulate > > What does CT do differently than CC? It's not quite clear from the example. CT is the text color (foreground so to say) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: next beta 2013-03-19 22:46 ` Sietse Brouwer 2013-03-19 23:03 ` Hans Hagen @ 2013-03-20 7:14 ` Keith J. Schultz 2013-03-20 8:43 ` Hans Hagen 2013-03-20 7:24 ` next beta (tabulate) Alan BRASLAU 2 siblings, 1 reply; 11+ messages in thread From: Keith J. Schultz @ 2013-03-20 7:14 UTC (permalink / raw) To: mailing list for ConTeXt users Hi Hans, All, I find this nomenclature confusing and a little confusing from a design standpoint! 1) Color of the text background should be separate from the rest of the cell background 2) the names should reflect to what they apply That said we should have: CTBGC == Cell text background color CTC == Cell text color CBGC == Cell background color or CC == Cell color CBGCR == Cell background color in the space right of text CBGCM == Cell background color in space middle of cell( above below text) CBGCL == Cell background color in the space right of text True, these are a lot of options/parameters, yet it offers the most flexibility and a cleaner interface. Furthermore, one can understand the names of the parameters. Another, advantage is that one could and at a later point a feature for inverting the color of the text according cell color and/or text background color. regards Keith. Am 19.03.2013 um 23:46 schrieb Sietse Brouwer <sbbrouwer@gmail.com>: >> i.e. we already had CL CM and CR, so CT is new .. should be wikified. > > The wiki [1] describes these \C* commands: > > \CR color is applied to the background of the text and the remaining > space on the right; > \CC color is applied to the background of the text only; > \CM color is applied to the background of the text and the remaining > space on both sides; > \CL color is applied to the background of the text and the remaining > space on the left. > > [1] http://wiki.contextgarden.net/Tabulate > > What does CT do differently than CC? It's not quite clear from the example. > > Cheers, > ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: next beta 2013-03-20 7:14 ` Keith J. Schultz @ 2013-03-20 8:43 ` Hans Hagen 2013-03-20 16:36 ` Jonathan Barchi 0 siblings, 1 reply; 11+ messages in thread From: Hans Hagen @ 2013-03-20 8:43 UTC (permalink / raw) To: mailing list for ConTeXt users On 3/20/2013 8:14 AM, Keith J. Schultz wrote: > Hi Hans, All, > > I find this nomenclature confusing and a little confusing from a design standpoint! > > 1) Color of the text background should be separate from the rest > of the cell background > > 2) the names should reflect to what they apply > > That said we should have: > CTBGC == Cell text background color > CTC == Cell text color > > CBGC == Cell background color > or > CC == Cell color > > CBGCR == Cell background color in the space right of text > CBGCM == Cell background color in space middle of cell( above below text) > CBGCL == Cell background color in the space right of text > > True, these are a lot of options/parameters, yet it offers the most flexibility and > a cleaner interface. Furthermore, one can understand the names of the parameters. preamble scanning is already quite tricky and there was already CR CM CL so adding CT was a few lines of extra code (i will probably make a key/val based variant some day but that is no fun either ... 10 lines of setup per table instead of a one line preeamble) (and i'm forbidden to fundamentally change an important mechanism like tabulate right now as for sure it will break some things) > Another, advantage is that one could and at a later point a feature for inverting the > color of the text according cell color and/or text background color. > > regards > Keith. > > Am 19.03.2013 um 23:46 schrieb Sietse Brouwer <sbbrouwer@gmail.com>: > >>> i.e. we already had CL CM and CR, so CT is new .. should be wikified. >> >> The wiki [1] describes these \C* commands: >> >> \CR color is applied to the background of the text and the remaining >> space on the right; >> \CC color is applied to the background of the text only; >> \CM color is applied to the background of the text and the remaining >> space on both sides; >> \CL color is applied to the background of the text and the remaining >> space on the left. >> >> [1] http://wiki.contextgarden.net/Tabulate >> >> What does CT do differently than CC? It's not quite clear from the example. >> >> Cheers, >> > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ > -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: next beta 2013-03-20 8:43 ` Hans Hagen @ 2013-03-20 16:36 ` Jonathan Barchi 2013-03-20 20:27 ` Hans Hagen 0 siblings, 1 reply; 11+ messages in thread From: Jonathan Barchi @ 2013-03-20 16:36 UTC (permalink / raw) To: mailing list for ConTeXt users On Wed, Mar 20, 2013 at 4:43 AM, Hans Hagen <pragma@wxs.nl> wrote: > On 3/20/2013 8:14 AM, Keith J. Schultz wrote: >> >> Hi Hans, All, >> >> I find this nomenclature confusing and a little confusing from a design >> standpoint! >> >> 1) Color of the text background should be separate from the rest >> of the cell background >> >> 2) the names should reflect to what they apply >> >> That said we should have: >> CTBGC == Cell text background color >> CTC == Cell text color >> >> CBGC == Cell background color >> or >> CC == Cell color >> >> CBGCR == Cell background color in the space right of text >> CBGCM == Cell background color in space middle of cell( above >> below text) >> CBGCL == Cell background color in the space right of text >> >> True, these are a lot of options/parameters, yet it offers the most >> flexibility and >> a cleaner interface. Furthermore, one can understand the names of the >> parameters. > > > preamble scanning is already quite tricky and there was already CR CM CL so > adding CT was a few lines of extra code > > (i will probably make a key/val based variant some day but that is no fun > either ... 10 lines of setup per table instead of a one line preeamble) > > (and i'm forbidden to fundamentally change an important mechanism like > tabulate right now as for sure it will break some things) Further, the declaration of a tabulate environment already tends to be pretty tight on space, so IMO a little bit of obscurity in these parameters - provided they stay documented - is an acceptable price to pay for keeping the keys to two letters (three would probably be OK too, esp. for less frequently used ones). >> Another, advantage is that one could and at a later point a feature for >> inverting the >> color of the text according cell color and/or text background color. >> >> regards >> Keith. >> >> Am 19.03.2013 um 23:46 schrieb Sietse Brouwer <sbbrouwer@gmail.com>: >> >>>> i.e. we already had CL CM and CR, so CT is new .. should be wikified. I've added this to the wiki. Just to be clear: CT provides an alternate method to colorize the text, instead of using the standard \color[foo]{bar} - right? There is already a section on using the \color command to colorize the text, so I want to make sure I'm adding this correctly as a complementary mechanism, or fix it if I misunderstood. - Jon >>> The wiki [1] describes these \C* commands: >>> >>> \CR color is applied to the background of the text and the remaining >>> space on the right; >>> \CC color is applied to the background of the text only; >>> \CM color is applied to the background of the text and the remaining >>> space on both sides; >>> \CL color is applied to the background of the text and the remaining >>> space on the left. >>> >>> [1] http://wiki.contextgarden.net/Tabulate >>> >>> What does CT do differently than CC? It's not quite clear from the >>> example. >>> >>> Cheers, >>> >> >> >> ___________________________________________________________________________________ >> 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 >> >> ___________________________________________________________________________________ >> > > > -- > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > ___________________________________________________________________________________ > 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: next beta 2013-03-20 16:36 ` Jonathan Barchi @ 2013-03-20 20:27 ` Hans Hagen 0 siblings, 0 replies; 11+ messages in thread From: Hans Hagen @ 2013-03-20 20:27 UTC (permalink / raw) To: mailing list for ConTeXt users On 3/20/2013 5:36 PM, Jonathan Barchi wrote: > Just to be clear: CT provides an alternate method to colorize the > text, instead of > using the standard \color[foo]{bar} - right? There is already a > section on using > the \color command to colorize the text, so I want to make sure I'm adding this > correctly as a complementary mechanism, or fix it if I misunderstood. indeed, a quick way to color a whole column Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: next beta (tabulate) 2013-03-19 22:46 ` Sietse Brouwer 2013-03-19 23:03 ` Hans Hagen 2013-03-20 7:14 ` Keith J. Schultz @ 2013-03-20 7:24 ` Alan BRASLAU 2013-03-20 9:42 ` Hans Hagen 2 siblings, 1 reply; 11+ messages in thread From: Alan BRASLAU @ 2013-03-20 7:24 UTC (permalink / raw) To: mailing list for ConTeXt users On Tue, 19 Mar 2013 23:46:35 +0100 Sietse Brouwer <sbbrouwer@gmail.com> wrote: > [1] http://wiki.contextgarden.net/Tabulate There is \starttabulate and \starttable. I understand that they use different mechanisms, even though their syntax are parallel. The wiki page [1] warns against the use of macros in tabulate, but this seems a bit obscure. Also, Tables_Overview recommends tabulate for simple tables and flags both table and tables as depreciated. I hesitate to add this information at the top of the wiki pages: Tabulate, Table and Tables as I am not clear about the status of these three mechanisms... One question: is it possible to span columns using tabulate as in table: \Use{n}[format]{data}? Alan ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: next beta (tabulate) 2013-03-20 7:24 ` next beta (tabulate) Alan BRASLAU @ 2013-03-20 9:42 ` Hans Hagen 0 siblings, 0 replies; 11+ messages in thread From: Hans Hagen @ 2013-03-20 9:42 UTC (permalink / raw) To: mailing list for ConTeXt users On 3/20/2013 8:24 AM, Alan BRASLAU wrote: > On Tue, 19 Mar 2013 23:46:35 +0100 > Sietse Brouwer <sbbrouwer@gmail.com> wrote: > >> [1] http://wiki.contextgarden.net/Tabulate > > There is \starttabulate and \starttable. > I understand that they use different mechanisms, even though their > syntax are parallel. The wiki page [1] warns against the use of macros > in tabulate, but this seems a bit obscure. Also, Tables_Overview > recommends tabulate for simple tables and flags both table and tables as > depreciated. I hesitate to add this information at the top of the wiki > pages: Tabulate, Table and Tables as I am not clear about the status > of these three mechanisms... The obscurity comes from the fact that a tabulate is typeset multipass so macro definitions might have changed between first and last columns / rows. This is probably less of an issu ein mkiv. > One question: is it possible to span columns using tabulate as in > table: \Use{n}[format]{data}? no. okay, I sometimes cheat: \rlap{data} works out well ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: next beta 2013-03-19 22:00 next beta Hans Hagen 2013-03-19 22:46 ` Sietse Brouwer @ 2015-04-15 17:08 ` Aditya Mahajan 2015-04-16 12:45 ` Hans Hagen 1 sibling, 1 reply; 11+ messages in thread From: Aditya Mahajan @ 2015-04-15 17:08 UTC (permalink / raw) To: mailing list for ConTeXt users On Tue, 19 Mar 2013, Hans Hagen wrote: > \starttext > > \starttabulate[||CL{darkred}|CM{darkgreen}CT{white}|CR{darkblue}||] > \NC first \NC left \NC middle \NC right \NC last \NC > \NR > \NC first \NC \color[white]{left} \NC middle \NC \color[white]{right} > \NC last \NC \NR > \NC first \NC left \NC middle \NC right \NC last \NC > \NR > \stoptabulate > > \stoptext > > i.e. we already had CL CM and CR, so CT is new .. should be wikified. I am using a two-week old beta (2015.04.03). CL has the same alignment as r and CR has the same aligned as l. I understand the historic reason for the difference between left and flushleft, but shouldn't the alignment keys within the same mechanism have the same meaning? (Or was this a bug that has been corrected in the current beta). Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: next beta 2015-04-15 17:08 ` next beta Aditya Mahajan @ 2015-04-16 12:45 ` Hans Hagen 0 siblings, 0 replies; 11+ messages in thread From: Hans Hagen @ 2015-04-16 12:45 UTC (permalink / raw) To: mailing list for ConTeXt users On 4/15/2015 7:08 PM, Aditya Mahajan wrote: > On Tue, 19 Mar 2013, Hans Hagen wrote: > >> \starttext >> >> \starttabulate[||CL{darkred}|CM{darkgreen}CT{white}|CR{darkblue}||] >> \NC first \NC left \NC middle \NC right \NC >> last \NC \NR >> \NC first \NC \color[white]{left} \NC middle \NC >> \color[white]{right} \NC last \NC \NR >> \NC first \NC left \NC middle \NC right \NC >> last \NC \NR >> \stoptabulate >> >> \stoptext >> >> i.e. we already had CL CM and CR, so CT is new .. should be wikified. > > I am using a two-week old beta (2015.04.03). CL has the same alignment > as r and CR has the same aligned as l. > > I understand the historic reason for the difference between left and > flushleft, but shouldn't the alignment keys within the same mechanism > have the same meaning? (Or was this a bug that has been corrected in the > current beta). this doesn't look that unnatural does it? \starttext \starttabulate[|l|lCL{darkred}|CM{darkgreen}CT{white}|rCR{darkblue}|r|] \NC first 1 \NC left 1 \NC middle \NC right 1 \NC last 1 \NC \NR \NC first 22 \NC \color[white]{left 22} \NC middle \NC \color[white]{right 22} \NC last 22 \NC \NR \NC first 333\NC left 333 \NC middle \NC right 333 \NC last 333 \NC \NR \stoptabulate \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2015-04-16 12:45 UTC | newest] Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-03-19 22:00 next beta Hans Hagen 2013-03-19 22:46 ` Sietse Brouwer 2013-03-19 23:03 ` Hans Hagen 2013-03-20 7:14 ` Keith J. Schultz 2013-03-20 8:43 ` Hans Hagen 2013-03-20 16:36 ` Jonathan Barchi 2013-03-20 20:27 ` Hans Hagen 2013-03-20 7:24 ` next beta (tabulate) Alan BRASLAU 2013-03-20 9:42 ` Hans Hagen 2015-04-15 17:08 ` next beta Aditya Mahajan 2015-04-16 12:45 ` Hans Hagen
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).