From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86106 Path: news.gmane.org!not-for-mail From: "Keith J. Schultz" Newsgroups: gmane.comp.tex.context Subject: Re: Change the default text colour for entire document Date: Mon, 27 Jan 2014 12:30:31 +0100 Message-ID: <17542E07-8FBF-4253-8649-D438DA9E3F5F@uni-trier.de> References: <92E6A896-65FC-43CB-96A4-7ABCD066B240@gmail.com> <52E63E95.4000808@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: multipart/mixed; boundary="===============1783916169==" X-Trace: ger.gmane.org 1390822240 14145 80.91.229.3 (27 Jan 2014 11:30:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jan 2014 11:30:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 27 12:30:48 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W7kOt-0003TS-I4 for gctc-ntg-context-518@m.gmane.org; Mon, 27 Jan 2014 12:30:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CCDE4101E1; Mon, 27 Jan 2014 12:30:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id S3BNBk-nZ-dT; Mon, 27 Jan 2014 12:30:41 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 17270101E6; Mon, 27 Jan 2014 12:30:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7BC5A101E6 for ; Mon, 27 Jan 2014 12:30:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id NJkAfvUdCGyZ for ; Mon, 27 Jan 2014 12:30:33 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id BEC56101E1 for ; Mon, 27 Jan 2014 12:30:33 +0100 (CET) Original-Received: from mx2.uni-trier.de (mx2.uni-trier.de [136.199.224.18]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0RBUWc1026409 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 27 Jan 2014 12:30:32 +0100 X-IronPort-AV: E=Sophos;i="4.95,728,1384297200"; d="scan'208,217";a="9044880" Original-Received: from rzmail.uni-trier.de ([136.199.8.220]) by mx2i.uni-trier.de with ESMTP; 27 Jan 2014 12:30:32 +0100 Original-Received: from [10.0.62.6] (dslb-084-058-225-056.pools.arcor-ip.net [84.58.225.56]) by rzmail.uni-trier.de (Postfix) with ESMTPA id 168544081E for ; Mon, 27 Jan 2014 12:30:32 +0100 (CET) In-Reply-To: <52E63E95.4000808@wxs.nl> X-Mailer: Apple Mail (2.1827) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=136.199.224.18; country=DE; region=08; city=Trier; latitude=49.7500; longitude=6.6333; http://maps.google.com/maps?q=49.7500,6.6333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QLiXuwDf - 82a61658384a - 20140127 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86106 Archived-At: --===============1783916169== Content-Type: multipart/alternative; boundary="Apple-Mail=_625A688E-AC1E-4D44-B8D3-AE94B8AF6354" --Apple-Mail=_625A688E-AC1E-4D44-B8D3-AE94B8AF6354 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi Everybody, If I remember right colors can be defined in ConTeXt, right? So why not just redefine black! If this is stupid, the defaults get initialize before a redefined = occurs! forget it! Just a stupid simplistic idea! regards Keith. =20 Am 27.01.2014 um 12:10 schrieb Hans Hagen : > On 1/27/2014 12:24 AM, Wolfgang Schuster wrote: >>=20 >> Am 22.01.2014 um 02:15 schrieb Thangalin : >>=20 >>> Hi, >>>=20 >>> In ConTeXt to change the default text colour for the entire = document, >>> there are at least two settings that need to be configured: >>>=20 >>> \setupcolors[textcolor=3Dred] >>> \setupinmargin[line=3D13,color=3Dred,style=3Dslanted,] >>>=20 >>> The border colour for tables remains black: >>>=20 >>> \setupcolors[textcolor=3Dred] >>> \setupinmargin[color=3Dred] >>>=20 >>> \starttext >>> {\bTABLE >>> \bTR \bTD One \eTD \bTD Two \eTD \eTR >>> \eTABLE} >>> \stoptext >>>=20 >>> 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. >>=20 >> 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. >>=20 >> Even though there is a comment about this problem for margin notes in >> the source it wasn=92t fixed yet but I think it makes sense to to so. >=20 > \appendtoks > \inheritmaintextcolor > \to \everybeforenoteinsert >=20 > \appendtoks > \inheritmaintextcolor > \to \everymargindatacontent >=20 > could work, but it needs testing as we cannot predict side effects >=20 >> 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. >=20 > needs some thinking >=20 > \setupTABLE > [framecolor=3D\maintextcolor] >=20 > some settings date from mkii times but again we need to think of side = effects >=20 > Hans >=20 > ----------------------------------------------------------------- > 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! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_625A688E-AC1E-4D44-B8D3-AE94B8AF6354 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Hi = Everybody,

If I remember right colors can be defined = in ConTeXt, right?

So why not just redefine = black!

If this is stupid, the defaults get = initialize before a redefined occurs!

forget = it!

Just a stupid simplistic = idea!

regards
= Keith.
 
Am 27.01.2014 um 12:10 = schrieb Hans Hagen <pragma@wxs.nl>:

On = 1/27/2014 12:24 AM, Wolfgang Schuster wrote:

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=3Dred]
 \setupinma= rgin[line=3D13,color=3Dred,style=3Dslanted,]

The border colour = for tables remains = black:

\setupcolors[textcolor=3Dred]
\setupinmargin[color=3Dred]=

\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=92t fixed yet but I think it makes sense = to to = so.

\appendtoks
   \inheritmaintextc= olor
\to = \everybeforenoteinsert

\appendtoks
   \inheritmai= ntextcolor
\to \everymargindatacontent

could work, but it = needs testing as we cannot predict side effects

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.

needs some = thinking

\setupTABLE
 [framecolor=3D\maintextcolor]

= some settings date from mkii times but again we need to think of side = effects

Hans

-----------------------------------------------= ------------------
        &nbs= p;            =             &n= bsp;       Hans Hagen | PRAGMA = ADE
           &= nbsp; Ridderstraat 27 | 8061 GH Hasselt | The = Netherlands
   tel: 038 477 53 69 | voip: 087 875 68 = 74 | www.pragma-ade.com
  =             &n= bsp;           &nbs= p;            =      | 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.sup= elec.fr/projects/contextrev/
wiki     : http://contextgarden.net
________= __________________________________________________________________________= _

= --Apple-Mail=_625A688E-AC1E-4D44-B8D3-AE94B8AF6354-- --===============1783916169== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1783916169==--