From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92089 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: Section heading colors lost with \startbodymatter Date: Mon, 27 Jul 2015 23:45:37 -0400 Message-ID: <55B6FAE1.1020302@rik.users.panix.com> References: <55B6BE8A.8080000@rik.users.panix.com> <55B6EE10.9000809@rik.users.panix.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0855199954==" X-Trace: ger.gmane.org 1438055195 8828 80.91.229.3 (28 Jul 2015 03:46:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jul 2015 03:46:35 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 28 05:46:20 2015 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 1ZJvqL-0005ux-Re for gctc-ntg-context-518@m.gmane.org; Tue, 28 Jul 2015 05:46:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 05F47101FC for ; Tue, 28 Jul 2015 05:46:17 +0200 (CEST) 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 uSonNfklIp9j for ; Tue, 28 Jul 2015 05:46:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E026210232 for ; Tue, 28 Jul 2015 05:45:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4EBD7101F9 for ; Tue, 28 Jul 2015 05:45:47 +0200 (CEST) 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 7C_Moz5IIIAE for ; Tue, 28 Jul 2015 05:45:46 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 85EC5101E6 for ; Tue, 28 Jul 2015 05:45:41 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter4-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t6S3jdZb030287 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 28 Jul 2015 05:45:40 +0200 Original-Received: from [192.168.9.13] (pool-71-183-246-38.nycmny.fios.verizon.net [71.183.246.38]) by mailbackend.panix.com (Postfix) with ESMTPSA id 742B9163BF for ; Mon, 27 Jul 2015 23:45:38 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 In-Reply-To: <55B6EE10.9000809@rik.users.panix.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=166.84.1.89; country=US; region=New York; city=New York; latitude=40.7553; longitude=-73.9924; http://maps.google.com/maps?q=40.7553,-73.9924&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01OVDJEFs - 5419ab2fa0c9 - 20150728 (trained as not-spam) Received-SPF: pass (filter4-ams.mf.surf.net: domain of context@rik.users.panix.com designates 166.84.1.89 as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=166.84.1.89; envelope-from=; helo=mailbackend.panix.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:92089 Archived-At: This is a multi-part message in MIME format. --===============0855199954== Content-Type: multipart/alternative; boundary="------------060001090304090605090301" This is a multi-part message in MIME format. --------------060001090304090605090301 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable On 2015-07-27 22:50, Rik Kabel wrote: > On 2015-07-27 19:28, Rik Kabel wrote: >> This worked (the numbers were darkgray and there was a red dot=20 >> separator) until the last beta or two. With the new betas, those=20 >> colors disappear in the bodymatter mode and in appendices mode >> >> % When start/stop bodymatter is enabled, the number color and >> % separator colors are lost. When they are disabled, all is >> % as expected >> % >> \defineseparatorset[reddot][][{\color[red]{=C2=B7}}] >> \setuphead[chapter][sectionseparatorset=3Dreddot,numbercolor=3Ddar= kgray] >> \setuphead[section][sectionseparatorset=3Dreddot,numbercolor=3Ddar= kgray] >> \starttext >> % \startbodymatter % enable and lose colors >> \startchapter[title=3D{Chapter}] >> \startsection[title=3D{Section}] >> \stopsection >> \stopchapter >> % \stopbodymatter % enable and lose colors >> \stoptext >> >> >> --=20 >> Rik > Duh! All color is gone, not just section heads. New MWE: > > \starttext > %\startbodymatter % enable and lose colors > Some text \color[red]{and some red text}. > %\stopbodymatter % enable and lose colors > \stoptext > > Actually, some color can come through, as in the following example. The=20 \setupmarginrules color remains even in bodymatter mode (the \setupbar=20 color does not). \setupmarginrules[rulethickness=3D1pt] \setupmarginrules[1][rulecolor=3Dred] \setupbar [overstrike][color=3Dred] \define[1]\RR {\startmarginrule[1]\RRR#1\stopmarginrule} \definehighlight [RRR][style=3D{\setbar[overstrike]}] \starttext % \startbodymatter % enable and lose colors Some text \color[red]{and some red text}.\par Here is some text that shows all color is not gone. \RR{Here is some text that shows all color is not gone. Here is some text that shows all color is not gone.} Here is some text that shows all color is not gone.\par % \stopbodymatter % enable and lose colors \stoptext --=20 RIk --------------060001090304090605090301 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On 2015-07-27 22:50, Rik Kabel wrote:<= br>
On 2015-07-27 19:28, Rik Kabel wrote= :
This worked (the numbers were darkgray and there was a red dot separator) until the last beta or two. With the new betas, those colors disappear in the bodymatter mode and in appendices mode
% When start/stop bodymatter is enabled, the number color and
%=C2=A0=C2=A0 separator colors are lost. When they are disa= bled, all is
%=C2=A0=C2=A0 as expected
%
\defineseparatorset[reddot][][{\color[red]{=C2=B7}}] \setuphead[chapter][sectionseparatorset=3Dreddot,numbercolo= r=3Ddarkgray]
\setuphead[section][sectionseparatorset=3Dreddot,numbercolo= r=3Ddarkgray]
\starttext
% \startbodymatter % enable and lose colors
=C2=A0=C2=A0=C2=A0 \startchapter[title=3D{Chapter}] =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \startsection[title=3D{Secti= on}]
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \stopsection
=C2=A0=C2=A0=C2=A0 \stopchapter
% \stopbodymatter=C2=A0 % enable and lose colors
\stoptext

--
Rik
Duh! All color is gone, not just section heads. New MWE:
\starttext
=C2=A0 %\startbodymatter % enable and lose colors
=C2=A0=C2=A0=C2=A0 Some text \color[red]{and some red text}.<= /tt>
=C2=A0 %\stopbodymatter=C2=A0 % enable and lose colors \stoptext

Actually, some color can come through, as in the following example. The \setupmarginrules color remains even in bodymatter mode (the \setupbar color does not).
\setupmarginrules[rulethickness=3D1pt]
\setupmarginrules[1][rulecolor=3Dred]
\setupbar=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [overs= trike][color=3Dred]
\define[1]\RR=C2=A0=C2=A0=C2=A0 {\startmarginrule[1]\RRR#1\stopmarginrule}
\definehighlight [RRR][style=3D{\setbar[overstrike]}]=
\starttext
% \startbodymatter % enable and lose colors
=C2=A0=C2=A0=C2=A0 Some text \color[red]{and some red text= }.\par
=C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Here is some text tha= t shows all color is not gone.
=C2=A0 \RR{Here is some text that shows all color is not g= one.
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Here is some text tha= t shows all color is not gone.}
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Here is some text tha= t shows all color is not gone.\par

% \stopbodymatter=C2=A0 % enable and lose colors<= br> \stoptext
--
RIk
--------------060001090304090605090301-- --===============0855199954== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0855199954==--