From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83988 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: textext sync problem? Date: Wed, 28 Aug 2013 17:08:13 -0400 (EDT) Message-ID: 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 1377724114 1298 80.91.229.3 (28 Aug 2013 21:08:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Aug 2013 21:08:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 28 23:08:37 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 1VEmyj-0003yc-Kr for gctc-ntg-context-518@m.gmane.org; Wed, 28 Aug 2013 23:08:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6559C10218; Wed, 28 Aug 2013 23:07:16 +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 j4xqOYxBb-nn; Wed, 28 Aug 2013 23:07:14 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3BA0610214; Wed, 28 Aug 2013 23:07:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 36D3E10214 for ; Wed, 28 Aug 2013 23:07:13 +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 FQkschtGnzro for ; Wed, 28 Aug 2013 23:07:02 +0200 (CEST) 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 69B7C10213 for ; Wed, 28 Aug 2013 23:07:02 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter2-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r7SLA3Po007580 for ; Wed, 28 Aug 2013 23:10:05 +0200 Original-Received: FROM adi-netbook (modemcable032.27-201-24.mc.videotron.ca [24.201.27.32]) By hackers.mr.itd.umich.edu ID 521E66C0.86DA3.2409 ; Authuser adityam; 28 Aug 2013 17:08:16 EDT In-Reply-To: <8F9D20A5-00D1-4509-9F1C-8E5B0D1EB55B@uva.nl> User-Agent: Alpine 2.03 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04Kila31V - 6410af4fc2dd - 20130828 (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.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:83988 Archived-At: On Wed, 28 Aug 2013, 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. The example below illustrates what is happening: \starttext \startMPcode newpicture p; drawoptions (withcolor red); p := image (addto currentpicture doublepath unitsquare scaled 1cm ); drawoptions (); draw p; \stopMPcode \stoptext drawoptions() are used only when you use draw or fill (look up their definition in mp-base.mpiv). textext does not use draw or fill. If you want drawoptions to be honored, you can do something as follows: \starttext \startMPcode newpicture p; drawoptions (withcolor red); p := image (draw textext("\tfd text")); drawoptions (); draw p; \stopMPcode \stoptext Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________