From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89156 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Strange behavior with the command \color[]{} Date: Thu, 06 Nov 2014 22:14:43 +0100 Message-ID: <545BE4C3.6010104@wxs.nl> References: <545B3996.7070908@wxs.nl> <545BC2E0.8000100@wanadoo.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060006040103090909060100" X-Trace: ger.gmane.org 1415308533 31944 80.91.229.3 (6 Nov 2014 21:15:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Nov 2014 21:15:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 06 22:15:28 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 1XmUOt-0008Gy-IT for gctc-ntg-context-518@m.gmane.org; Thu, 06 Nov 2014 22:15:27 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0B02310225 for ; Thu, 6 Nov 2014 22:15:27 +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 Drsr3T3KNUwJ for ; Thu, 6 Nov 2014 22:15:26 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0159210231 for ; Thu, 6 Nov 2014 22:14:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B9739101E7 for ; Thu, 6 Nov 2014 22:14:51 +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 xaEBU33VOD4V for ; Thu, 6 Nov 2014 22:14:46 +0100 (CET) Original-Received: from filter2-utr.mf.surf.net (filter2-utr.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 0CE43101E3 for ; Thu, 6 Nov 2014 22:14:46 +0100 (CET) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sA6LVdFB017854 for ; Thu, 6 Nov 2014 22:31:40 +0100 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.103; Original-Received: from [10.100.1.103] (unverified [10.100.1.103]) by pragma-net.nl (SurgeMail 6.5a2) with ESMTP id 5316-1713362 for ; Thu, 06 Nov 2014 22:14:43 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=Provincie Overijssel; city=Zwartsluis; latitude=52.6408; longitude=6.0694; http://maps.google.com/maps?q=52.6408,6.0694&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04NclvDhu - 26e00589ff03 - 20141106 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:89156 Archived-At: This is a multi-part message in MIME format. --------------060006040103090909060100 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/6/2014 8:57 PM, luigi scarso wrote: > > > On Thu, Nov 6, 2014 at 7:50 PM, Fabrice > wrote: > > Hi Hans, > It's true, I'm a little confused. In fact, the problem is the \ > starttikzpicture \ endtikzpicture. > > \usemodule[tikz] > \usetikzlibrary[calc] > \usetikzlibrary[3d] > \usetikzlibrary[arrows.meta] > \usetikzlibrary[positioning] > \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00] > \definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00] > > \tikzset{% > cube join/.style={ > thick, -{Stealth}, > }, > cube face/.style={ > minimum size=1cm, outer sep=0pt, > draw=white, thick, line join=round, > shading=ball, > text=white, > }, > face color/.style={cube face/.append style={ball color=#1}}, > pics/cube/.style args={#1 with #2}{ > code={ > \node [cube face, label={[name=-label]below:#2}] (-front) {#1}; > \node [cube face] (-top) at (-front.north west) [anchor=south west, > xslant=1, yscale=1/3] {}; > \node [cube face] (-side) at (-front.south east) [anchor=south west, > yslant=1, xscale=1/3] {}; > }} > } > \starttext > \startsetups[table:initialize] > \setupTABLE[height=2cm,align={middle,lohi}] > \setupTABLE[column][1][[width=4cm,align={right,lohi},frame=on,framecolor=H1prime] > \setupTABLE[column][2][[width=5cm,align={middle,lohi},frame=off] > \setupTABLE[column][3][[width=9cm,align={right,lohi},frame=off] > \setupTABLE[1][1][frame=off] > \stopsetups > \bTABLE[setups=table:initialize] > \switchtobodyfont[10pt] > \bTR > \bTD \eTD > \eTR > \bTR > \bTD $A$ prend la valeur $3$ \eTD > \bTD > %\starttikzpicture > %\pic [cube face/.append style={ball color=green}] at (-1, 1) {cube=3 with > %$A$};\pic [cube face/.append style={ball color=red}] at ( 1, 1) {cube={} > %with $B$}; > %\stoptikzpicture > \eTD > \bTD La valeur de $A$ est \color[green]{3} et $B$ n'a pas encore de valeur > \eTD > \eTR > \eTABLE{} the color mechanisms probably interfere ... attached is a t-tikz.tex that behaves a bit better ... if it works out ok: feel free to make sure that it ends up someplace distributable Hans ----------------------------------------------------------------- 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 ----------------------------------------------------------------- --------------060006040103090909060100 Content-Type: application/x-tex; name="t-tikz.tex" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="t-tikz.tex" % Copyright 2006 by Till Tantau % % This file may be distributed and/or modified % % 1. under the LaTeX Project Public License and/or % 2. under the GNU Public License. % % See the file doc/generic/pgf/licenses/LICENSE for more details. % ConTeXt module tikz. \writestatus{loading}{ConTeXt User Module / tikz} \unprotect \input t-pgf.tex \input t-pgffor.tex \edef\tikzatcode {\the\catcode`\@} \edef\tikzbarcode {\the\catcode`\|} \edef\tikzexclaimcode{\the\catcode`\!} \catcode`\@=11 \catcode`\|=12 \catcode`\!=12 \input tikz.code.tex \catcode`\@=\tikzatcode \catcode`\|=\tikzbarcode \catcode`\!=\tikzexclaimcode \ifdefined\forcecolorhack \unexpanded\def\starttikzpicture {\dontleavehmode \forcecolorhack \tikzpicture} \unexpanded\def\stoptikzpicture {\endtikzpicture} \else \let\starttikzpicture\tikzpicture \let\stoptikzpicture \endtikzpicture \fi \protect \endinput --------------060006040103090909060100 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= --------------060006040103090909060100--