From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72853 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: Math in metapost Date: Wed, 30 Nov 2011 22:19:01 +0100 Message-ID: <85FD30D9-AB62-49ED-9077-8232B8EAC752@gmail.com> References: <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: multipart/mixed; boundary="===============1731009252==" X-Trace: dough.gmane.org 1322687968 32464 80.91.229.12 (30 Nov 2011 21:19:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2011 21:19:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 30 22:19:23 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 1RVrYp-0006Io-F9 for gctc-ntg-context-518@m.gmane.org; Wed, 30 Nov 2011 22:19:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5DE2FCB113; Wed, 30 Nov 2011 22:19:22 +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 fxQ2AOOFiZ2T; Wed, 30 Nov 2011 22:19:19 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A0500CB10A; Wed, 30 Nov 2011 22:19:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 00857CB10A for ; Wed, 30 Nov 2011 22:19:18 +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 z6sOA9CuMPcc for ; Wed, 30 Nov 2011 22:19:06 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 4F96DCB0FF for ; Wed, 30 Nov 2011 22:19:06 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pAULJ4pt021193 for ; Wed, 30 Nov 2011 22:19:04 +0100 Original-Received: by bke17 with SMTP id 17so1748192bke.14 for ; Wed, 30 Nov 2011 13:19:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; bh=uDQLc/2zQVr9EcYa4l22VxjJ3HYFJFTB5lveykdgGmU=; b=VbakBAVWgUin5geRbUXWhZGiI+BrPqExWaBWoCq/U3P6vxAOmIQuHVhoihCVogSyXA fWK1T65eP+iXuOibhWY7PntVH4nc7zTvybcDTN1wlOGwX1/cNg7VBchUr8O3NJdXu3VG DDKjS7m4MHXiAJ88lSB6IypQf9T0MRC76yhII= Original-Received: by 10.204.154.137 with SMTP id o9mr4073700bkw.80.1322687944384; Wed, 30 Nov 2011 13:19:04 -0800 (PST) Original-Received: from [192.168.0.11] (seg75-6-82-236-32-4.fbx.proxad.net. [82.236.32.4]) by mx.google.com with ESMTPS id c4sm6616367bkk.13.2011.11.30.13.19.02 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Nov 2011 13:19:03 -0800 (PST) In-Reply-To: <4CE3DFA5-9A15-4AC5-81F2-EF3F4A620691@xs4all.nl> X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03G3xj4sl - c44569e1241c - 20111130 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:72853 Archived-At: --===============1731009252== Content-Type: multipart/alternative; boundary="Apple-Mail=_D98C816A-A194-4E54-A7AD-D597BA1D3E67" --Apple-Mail=_D98C816A-A194-4E54-A7AD-D597BA1D3E67 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Hi, I am not a specialist, but I use the =AB btex etex =BB commands, such as dotlabel.bot (btex \switchtobodyfont[10pt] \strut $R$ etex, z1) I just tested with the latest beta, and everything works fine, but not = the \pmatrix construct (I tried also with ${k}\choose{n}$, which works = fine too.=20 I put my test file in which some maths is used in a MetaPost graphic = here: http://dl.dropbox.com/u/4316076/test-graphique.tex http://dl.dropbox.com/u/4316076/test-graphique.pdf Best regards: OK On 30 nov. 2011, at 20:59, Hans van der Meer wrote: > 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 :=3D = textext("\setbox0=3D\hbox{\color["&textcolor&"]"&labeltext&"}\dp0=3D0pt\bo= x0"); > picture pic will be placed in the metapost figure. >=20 > Simple math like $p=3D2$ works fine, but the system chokes on = something like the following matrix: > $\pmatrix{p_{0|0}\cr}$ (it does fine in ConTeXt itself). >=20 > 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 ... >=20 > 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. >=20 > Hans van der Meer >=20 >=20 >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ %%%%%%%%%%%%%%%%%% Otared Kavian D=E9partement de Math=E9matiques Universit=E9 de Versailles Saint-Quentin B=E2timent Fermat 45 avenue des Etats Unis 78035 Versailles cedex T=E9l=E9phone: +33 1 39 25 46 42 Secr=E9tariat: +33 1 39 25 46 44=20 Secr=E9tariat: +33 1 39 25 46 46 e-mail: Otared.Kavian@math.uvsq.fr --Apple-Mail=_D98C816A-A194-4E54-A7AD-D597BA1D3E67 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 dotlabel.bot (btex = \switchtobodyfont[10pt] \strut $R$ etex, = z1)

I just tested with the latest beta, = and everything works fine, but not the \pmatrix construct (I tried also = with ${k}\choose{n}$, which works fine too. 
I put my = test file in which some maths is used in a MetaPost graphic = here:


<= br>
Best regards: OK

On 30 nov. 2011, = at 20:59, Hans van der Meer wrote:

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 :=3D = textext("\setbox0=3D\hbox{\color["&textcolor&"]"&labeltext&= ;"}\dp0=3D0pt\box0");
picture pic will be placed in the metapost = figure.

Simple math like $p=3D2$ 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.sup= elec.fr/projects/contextrev/
wiki     : http://contextgarden.net
________= __________________________________________________________________________= _

%%%%%%%%%%%%%%%%%%
Otared = Kavian
D=E9partement de Math=E9matiques
Universit=E9 = de Versailles Saint-Quentin
B=E2timent Fermat
45 = avenue des Etats Unis
78035 Versailles = cedex

T=E9l=E9phone: +33 1 39 25 46 = 42
Secr=E9tariat: +33 1 39 25 46 = 44 
Secr=E9tariat: +33 1 39 25 46 = 46




= --Apple-Mail=_D98C816A-A194-4E54-A7AD-D597BA1D3E67-- --===============1731009252== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1731009252==--