ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: Change the default text colour for entire document
Date: Mon, 27 Jan 2014 00:24:03 +0100	[thread overview]
Message-ID: <92E6A896-65FC-43CB-96A4-7ABCD066B240@gmail.com> (raw)
In-Reply-To: <CAANrE7orBuPL5GO9e35t6cfMfAgqK0=yCmz3fNWCoPwLe4WLmw@mail.gmail.com>


Am 22.01.2014 um 02:15 schrieb Thangalin <thangalin@gmail.com>:

> Hi,
> 
> In ConTeXt to change the default text colour for the entire document,
> there are at least two settings that need to be configured:
> 
>  \setupcolors[textcolor=red]
>  \setupinmargin[line=13,color=red,style=slanted,]
> 
> The border colour for tables remains black:
> 
> \setupcolors[textcolor=red]
> \setupinmargin[color=red]
> 
> \starttext
> {\bTABLE
> \bTR \bTD One \eTD \bTD Two \eTD \eTR
> \eTABLE}
> \stoptext
> 
> How can you override *all* instances of black? (Ideally there would be
> a single setting that is inherited by all.) That is, it is difficult
> to know all the various aspects of a ConTeXt document that use the
> default black colour -- margins, body text, table borders, and
> possibly more that I don't know about.

Notes (local notes excluded because they use a different placement system)
and margin texts ignore the global text color because both mechanism reset
colors and many other settings to avoid unwanted output from local changes
in the main text etc.

Even though there is a comment about this problem for margin notes in
the source it wasn’t fixed yet but I think it makes sense to to so.


The problem with the black frames for natural tables are a result of the explicit
framecolor setup for it (I guess to avoid problems when you use metapost
backgrounds which use the framecolor value). A possible way to fix this is to
add a framecolor setup to \setupcolors which argument is now used as default
color for the frame of natural tables, this way can use this color also in other
commands (core functions as well as third party modules) to set a default value.

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


  reply	other threads:[~2014-01-26 23:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-22  1:15 Thangalin
2014-01-26 23:24 ` Wolfgang Schuster [this message]
2014-01-27 11:10   ` Hans Hagen
2014-01-27 11:30     ` Keith J. Schultz
2014-01-27 11:45       ` Thangalin

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=92E6A896-65FC-43CB-96A4-7ABCD066B240@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).