From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72852 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Math in metapost Date: Wed, 30 Nov 2011 20:59:34 +0100 Message-ID: <4CE3DFA5-9A15-4AC5-81F2-EF3F4A620691@xs4all.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1322683263 29549 80.91.229.12 (30 Nov 2011 20:01:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2011 20:01:03 +0000 (UTC) To: ConTeXt NTG Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 30 21:00:58 2011 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 1RVqKw-0001R0-5v for gctc-ntg-context-518@m.gmane.org; Wed, 30 Nov 2011 21:00:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 761C0CB10E; Wed, 30 Nov 2011 21:00:57 +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 r-9Tcq9aDadn; Wed, 30 Nov 2011 21:00:51 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C1FD9CB109; Wed, 30 Nov 2011 21:00:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3CA4ECB109 for ; Wed, 30 Nov 2011 21:00:50 +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 2aQWopQcrPP1 for ; Wed, 30 Nov 2011 21:00:36 +0100 (CET) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by balder.ntg.nl (Postfix) with ESMTP id 6B0C3CB04D for ; Wed, 30 Nov 2011 21:00:36 +0100 (CET) Original-Received: from smtp-vbr18.xs4all.nl (smtp-vbr18.xs4all.nl [194.109.24.38]) by filter4-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pAUK0Zns030516 for ; Wed, 30 Nov 2011 21:00:35 +0100 Original-Received: from elhalyn-ethernet.fritz.box (a82-95-102-36.adsl.xs4all.nl [82.95.102.36]) (authenticated bits=0) by smtp-vbr18.xs4all.nl (8.13.8/8.13.8) with ESMTP id pAUJxZMt000668 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 30 Nov 2011 20:59:35 +0100 (CET) (envelope-from havdmeer@xs4all.nl) X-Mailer: Apple Mail (2.1251.1) X-Virus-Scanned: by XS4ALL Virus Scanner X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=194.109.24.38; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04G3w0zsf - 0187e7d06b64 - 20111130 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 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:72852 Archived-At: I would like to put some math in metapost pictures. For the moment I am using textext for the typesetting in my metapost macro: pic := textext("\setbox0=\hbox{\color["&textcolor&"]"&labeltext&"}\dp0=0pt\box0"); picture pic will be placed in the metapost figure. Simple math like $p=2$ works fine, but the system chokes on something like the following matrix: $\pmatrix{p_{0|0}\cr}$ (it does fine in ConTeXt itself). The error is: ! Only one # is allowed per tab. system > tex > error on line 6 in file Info/kanaalmatrix.tex: Only one # is allowed per tab ... Perhaps I am too optimistic about textext's possibilities. But how can I accomplish the placement of these and more elaborate formulae in metapost pictures using ConTeXt? It is of the essence for a series of Powerpoint slides I am preparing, wheein these formulae must be placed as individual pictures. Hans van der Meer ___________________________________________________________________________________ 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 ___________________________________________________________________________________