From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61125 Path: news.gmane.org!not-for-mail From: Oliver Buerschaper Newsgroups: gmane.comp.tex.context Subject: Re: textext vs. btex ... etex Date: Sat, 21 Aug 2010 16:24:09 +0200 Message-ID: References: <21CE9841-242A-4F91-B2DF-FBB8722FB5C9@mpq.mpg.de> <4C6AAC09.3080405@wxs.nl> <4C6BEF5D.3040004@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1282400675 28111 80.91.229.12 (21 Aug 2010 14:24:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 Aug 2010 14:24:35 +0000 (UTC) Cc: mailing ConTeXt users list for To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 21 16:24:32 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Omozn-0003fq-AD for gctc-ntg-context-518@m.gmane.org; Sat, 21 Aug 2010 16:24:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 10729CA592; Sat, 21 Aug 2010 16:24:30 +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 pUe+Ex+RWJj8; Sat, 21 Aug 2010 16:24:26 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 16275CA57A; Sat, 21 Aug 2010 16:24:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5F944CA57A for ; Sat, 21 Aug 2010 16:24:24 +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 I5LA3lmWT5EC for ; Sat, 21 Aug 2010 16:24:12 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 634E1CA567 for ; Sat, 21 Aug 2010 16:24:12 +0200 (CEST) Original-Received: from post.rzg.mpg.de (post.rzg.mpg.de [130.183.30.42]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7LEOA2T030735 for ; Sat, 21 Aug 2010 16:24:11 +0200 Original-Received: from [192.168.0.2] (g229013174.adsl.alicedsl.de [92.229.13.174]) (authenticated bits=0) by post.rzg.mpg.de (8.14.3/8.14.3) with ESMTP id o7LEO9M0954880 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 21 Aug 2010 16:24:10 +0200 In-Reply-To: <4C6BEF5D.3040004@wxs.nl> X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=130.183.30.42; country=DE; region=02; city=Garching; latitude=48.2500; longitude=11.6500; http://maps.google.com/maps?q=48.2500,11.6500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0xCV2oa7R - e270bafeb11a - 20100821 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:61125 Archived-At: >>> so, if in mkiv you want pieces, you need to textext each snippet that you want as such >> >> Alright... in that case how would I make sure that all glyph positions are kept if my TeX material is, say, some complex formula? How could I find the baseline with textext? > > see mp.mplib for all those anchor points OK. I found in mp-mplib.mp that rawtextext() does what I was looking for... the baseline is anchored to the current point: --- \setupbodyfont[10pt] \starttext \startMPinclusions pickup pencircle scaled 0.05pt; defaultpen := savepen; picture crosshair; crosshair := image(draw fullcircle scaled 2pt; draw (0,-2pt)--(0,2pt); draw (-2pt,0)--(2pt,0); ); bboxmargin := 0; \stopMPinclusions \startMPpage for item within rawtextext("$(h,g)$"): draw bbox item withcolor 0.8white; draw item; endfor; draw crosshair; \stopMPpage \stoptext --- This solves step one! Now onto step two: how can I typeset each glyph in the formula individually such that it appears precisely in the right location? Thanks, Oliver ___________________________________________________________________________________ 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 ___________________________________________________________________________________