ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Martin Kolarík" <martin@mii.cz>
Subject: another problem with textbackground
Date: Sun, 17 Jul 2005 16:14:03 +0200	[thread overview]
Message-ID: <KIEIKGELKIBDPDAECJBIIECPCCAA.martin@mii.cz> (raw)
In-Reply-To: <42D9FB8E.7060007@elvenkind.com>

[-- Attachment #1: Type: text/plain, Size: 1004 bytes --]

Hi all,

I need to create document where all text is colored (e.g. gray). So I used
textbackground, and it works. But if I add some floating table into the
document, the text in the table is not colored corectly.

Small attached example show this, all texts should be red. The second table
has for the errorneous cell set [color=red] too, and neither this works.

Example is only an example -- real situation comes from XML document, which
is a bit more complicated and the color problems are a bit more complicated
too -- colors in the table (color and framecolor too) firstly appear after
the first in-cell color change, before this color change table is not
colored. But this I did not suceed simplify to the example.

Now it seems like textbackground affects floats too (why not) but with some
difficulties. One could expect some "renewing" of the backgrounds in the
floating table (again why not :-), but this does not work fully too.

Thanks for any hints or corrections,

have a nice day,

Martin

[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 3796 bytes --]

[-- Attachment #3: test.tex --]
[-- Type: application/octet-stream, Size: 724 bytes --]

\setupcolors
  [state=start]

\definetextbackground
  [textcolor]
  [color=red,
   frame=no,
   location=text,
   backgroundcolor=green]

\starttext

\starttextbackground[textcolor]

\placefloat
  [table]
  [force,here]
  {none}
  {\bTABLE
     \bTR\bTD One little indian\eTD\bTD Two little indians\eTD\eTR
     \bTR\bTD One little indian\eTD\bTD Two little indians\eTD\eTR
   \eTABLE}

\stoptextbackground

\starttextbackground[textcolor]

\placefloat
  [table]
  [force,here]
  {none}
  {\bTABLE
     \bTR\bTD[color=red] One little indian\eTD\bTD Two little indians\eTD\eTR
     \bTR\bTD One little indian\eTD\bTD Two little indians\eTD\eTR
   \eTABLE}

\stoptextbackground

\stoptext

[-- Attachment #4: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

  parent reply	other threads:[~2005-07-17 14:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-17  0:13 RFE: Better error messages for \usemodule Brooks Moses
2005-07-17  6:16 ` Taco Hoekwater
2005-07-17  6:45   ` Brooks Moses
2005-07-17 18:27     ` Hans Hagen
2005-07-17  6:16 ` Taco Hoekwater
2005-07-17  6:32   ` Taco Hoekwater
2005-07-17 14:13     ` another problem with textbackground Martin Kolarík
2005-07-17 14:14     ` Martin Kolarík [this message]
2005-07-17 21:43       ` Hans Hagen
2005-07-17  6:17 ` RFE: Better error messages for \usemodule Taco Hoekwater

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=KIEIKGELKIBDPDAECJBIIECPCCAA.martin@mii.cz \
    --to=martin@mii.cz \
    --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).