ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: next beta
Date: Wed, 18 Apr 2018 08:34:04 +0200	[thread overview]
Message-ID: <DB0378A0-FA08-4BA7-9E6F-DD7F63961762@gmail.com> (raw)
In-Reply-To: <1baa8bef-2e16-88bf-aa64-a99384330411@xs4all.nl>

Hi Hans,

Thanks for the new feature for row backgrounds, which I tested: it works (though see below) and it is another great feature!
I wanted to add the information on the wiki, but thought it would be better to explain the meanings of \ND and \NL: is the following correct:

\NC = New Column
\NR = New Row
\NL = New Line ?
\ND = ??

Also it seems that when one encloses the tabulated lines into a \startplacetable...\stopplacetable pair, the coloring of the background does not work. Please see below an example.

Best regards: OK

%%% begin row-background.tex
\setuptabulate[backgroundcolor=lightgray]

\starttext

\starttabulate[|||]
   \ND First name \NC Family name\NC \NR
   \NC Hans \NC Hagen \NC \NR
   \NL[darkgray] Wolfgang \NC Schuster \NC \NR
   \NC Aditya \NC Mahajan \NC \NR
   \ND Pablo \NC Rodriguez \NC \NR
\stoptabulate

\startplacetable[title=A nice table, but where are the colors?]
\starttabulate[|||]
   \ND First name \NC Family name\NC \NR
   \NC Hans \NC Hagen \NC \NR
   \NL[darkgray] Wolfgang \NC Schuster \NC \NR
   \NC Aditya \NC Mahajan \NC \NR
   \ND Pablo \NC Rodriguez \NC \NR
\stoptabulate
\stopplacetable

\stoptext
%%% end row-background.tex


> On 14 Apr 2018, at 18:51, Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
> Hi,
> 
> The next beta will have:
> 
> % row backgrounds:
> 
> \setuptabulate[backgroundcolor=darkred]
> 
> \starttext
> 
> \starttabulate[|||]
>    \NC foo \NC bar \NC \NR
>    \ND foo \NC bar \NC \NR
>    \NC foo \NC bar \NC \NR
>    \NC foo \NC bar \NC \NR
>    \ND foo \NC bar \NC \NR
> \stoptabulate
> 
> \starttabulate[|||]
>    \NC          foo \NC bar \NC \NR
>    \NL[magenta] foo \NC bar \NC \NR
>    \NL[yellow]  foo \NC bar \NC \NR
>    \NL[cyan]    foo \NC bar \NC \NR
>    \NL[gray]    foo \NC bar \NC \NR
> \stoptabulate
> 
> \starttabulate
>    \NL[red]     foo \NC bar \NC \NR
>    \NL[green]   foo \NC bar \NC \NR
>    \NC          foo \NC bar \NC \NR
>    \NL[blue]    foo \NC \input tufte  \NC \NR
>    \NL[gray]    foo \NC bar \NC \NR
>    \NL[yellow]  foo \NC bar \NC \NR
> \stoptabulate
> 
> \stoptext
> 
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>       tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2018-04-18  6:34 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-14 16:51 Hans Hagen
2018-04-18  6:34 ` Otared Kavian [this message]
     [not found] <mailman.575.1497365252.2080.ntg-context@ntg.nl>
2017-06-17 13:48 ` Jeong Dal
2017-06-18 11:00   ` Hans Hagen
2017-06-18 15:39     ` Jeong Dal
2017-06-18 22:56     ` Henri Menke
2017-06-19  7:36       ` Hans Hagen
2017-06-19  7:44         ` Aditya Mahajan
  -- strict thread matches above, loose matches on Subject: below --
2017-06-12 15:25 Hans Hagen
2017-06-12 15:56 ` Mathias Schickel
2017-06-12 16:17   ` Hans Hagen
2017-06-13 11:18     ` Mathias Schickel
2017-06-13 14:46       ` Hans Hagen
2017-06-13 15:52         ` Mohammad Hossein Bateni
2017-06-13 16:18         ` Aditya Mahajan
2017-06-14  9:33         ` Mathias Schickel
2017-06-14 11:23           ` Hans Hagen
2017-06-13  6:06 ` Aditya Mahajan
2017-06-13  8:05   ` Hans Hagen
2017-06-13 12:47 ` Hans Åberg
2017-01-15 16:19 Hans Hagen
2017-01-17 19:13 ` Henri Menke
2017-01-17 19:23   ` Hans Hagen
2017-01-17 19:27     ` Henri Menke
2017-01-17 19:51       ` Hans Hagen
2016-06-27  8:38 Hans Hagen
2016-06-27 10:28 ` Meer, Hans van der
2016-03-03 17:34 Hans Hagen
2016-02-25 10:47 Hans Hagen
2015-04-15  9:05 Hans Hagen
2013-05-28 11:07 Hans Hagen
2013-03-19 22:00 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
2015-04-15 17:08 ` Aditya Mahajan
2015-04-16 12:45   ` Hans Hagen

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=DB0378A0-FA08-4BA7-9E6F-DD7F63961762@gmail.com \
    --to=otared@gmail.com \
    --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).