From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83989 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: textext sync problem? Date: Wed, 28 Aug 2013 23:11:16 +0200 Message-ID: <521E6774.6060000@wxs.nl> References: <465819E1-5E48-488E-8586-6ECC76F8546F@uva.nl> <8BC334F4-5634-4EEC-90F8-A746274B16EC@umich.edu> <8F9D20A5-00D1-4509-9F1C-8E5B0D1EB55B@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1377724305 3628 80.91.229.3 (28 Aug 2013 21:11:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Aug 2013 21:11:45 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 28 23:11:49 2013 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 1VEn1o-0006W5-FY for gctc-ntg-context-518@m.gmane.org; Wed, 28 Aug 2013 23:11:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8661110222; Wed, 28 Aug 2013 23:10:27 +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 SNpu9itV5Wsb; Wed, 28 Aug 2013 23:10:26 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3268C10216; Wed, 28 Aug 2013 23:10:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8F9E810216 for ; Wed, 28 Aug 2013 23:10:25 +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 GMPZzhzE+SSG for ; Wed, 28 Aug 2013 23:10:24 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id CA03110214 for ; Wed, 28 Aug 2013 23:10:24 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r7SLBhgb005256 for ; Wed, 28 Aug 2013 23:11:44 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.104; Original-Received: from [10.100.1.104] (unverified [10.100.1.104]) by pragma-net.nl (SurgeMail 6.3c2) with ESMTP id 3210-1713362 for ; Wed, 28 Aug 2013 23:11:43 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <8F9D20A5-00D1-4509-9F1C-8E5B0D1EB55B@uva.nl> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=15; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08KilbI3R - 5f2ba7b6509d - 20130828 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:83989 Archived-At: On 8/28/2013 10:12 PM, Meer, H. van der wrote: > Do I understand ypu correctly then that: > > (1) textext delivers a picture containing what it did typeset, regardless of the setting of drawop > (2) drawoptions (withcolor red) then applies the color to that picture? > > But then there is a complication. > On input textext("\tfb text") the above seems to apply, but submitting textext("\orange\tfb text") makes the text orange coloured in spit of the drawoptions setting. Thus textext seems to behave differently for getting an explicit color for its content or not. > > Before ripping the program for a minimal example I would like to first have a clear understanding of the functioning of textext in relation to metapost. It seems that as yet I do not have a clear enough picture of that process. even then, as aditya mentioned, a minimal example is needed as now i had to made one myself anyhow, textext is not a real picture in the sense that it only carries around dimensions and the text string dealing with color is already somewhat complex and the 'current' color of the picture is taken into account, so with "draw somepic withcolor red" the color gets applied to all picture components and drawoptions are also applied (part of the draw definition) i made a patch that also carries some extra color info but i'm not sure how robust it is (i also did some further optimization) btw, we do have a 'named properties' feature in metafun: \startMPpage property p[] ; p1 = properties(withcolor blue) ; p2 = properties(withcolor red) ; % fill fullcircle scaled 2cm withproperties p1 ; picture pic ; pic := textext("one") ; draw pic withproperties p1 ; draw pic shifted (1cm,0) withproperties p2 ; drawoptions(withcolor red); pic := textext("one") shifted (1cm,0) ; drawoptions(); draw pic ; drawoptions(withcolor green); draw textext("one") shifted (2cm,0) ; drawoptions(); \stopMPpage Hans (in flu-mode so more bugs than usual) ----------------------------------------------------------------- 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! 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 ___________________________________________________________________________________