ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Border in xtable
@ 2019-09-01 10:34 Fabrice Couvreur
  2019-09-02 17:50 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Couvreur @ 2019-09-01 10:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1389 bytes --]

Hello,
In the table below, why the border of the first line is not drawn ?
Thank you
Fabrice

\definecolor[ColorA][0.8(white)]

\definecolor[ColorB][0.9(white)]
\starttext
\startxtable
    [align={lohi,middle},
     width=2cm,bodyfont=11pt]

\startxrow[background=color,backgroundcolor=ColorA,foregroundstyle=white]
        \startxcell[width=10cm,nc=4]
         Variété A
        \stopxcell
      \stopxrow
        \startxrow[background=color,backgroundcolor=ColorB]
          \startxcell[width=4cm]
           Âge (en jours)
          \stopxcell
          \startxcell[background=color,backgroundcolor=white]
            12
          \stopxcell
          \startxcell[background=color,backgroundcolor=white]
            20
          \stopxcell
          \startxcell[background=color,backgroundcolor=white]
            38
          \stopxcell
        \stopxrow
        \startxrow[background=color,backgroundcolor=ColorB]
          \startxcell[width=4cm]
           Hauteur (en cm)
          \stopxcell
          \startxcell[background=color,backgroundcolor=white]
            11
          \stopxcell
          \startxcell[background=color,backgroundcolor=white]
            15
          \stopxcell
          \startxcell[background=color,backgroundcolor=white]
            24
          \stopxcell
        \stopxrow
    \stopxtable
\stoptext

[-- Attachment #1.2: Type: text/html, Size: 2305 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Border in xtable
  2019-09-01 10:34 Border in xtable Fabrice Couvreur
@ 2019-09-02 17:50 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2019-09-02 17:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Fabrice Couvreur


[-- Attachment #1.1: Type: text/plain, Size: 448 bytes --]

Fabrice Couvreur schrieb am 01.09.2019 um 12:34:
> Hello,
> In the table below, why the border of the first line is not drawn ?
There is a border around the first row but you can't see it because the 
color of the frame is white.

The reason for this is the "foregroundstyle=white" setting you have for 
the first row which should be "foregroundcolor=white". You mixed the 
keys for the style and color setting for the text in the cell.

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1192 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-02 17:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-01 10:34 Border in xtable Fabrice Couvreur
2019-09-02 17:50 ` Wolfgang Schuster

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).