From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68324 Path: news.gmane.org!not-for-mail From: =?ISO-8859-2?Q?Michal_Kvasni=E8ka?= Newsgroups: gmane.comp.tex.context Subject: mtxrun --script metapost and fonts? Date: Tue, 10 May 2011 15:29:55 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1500949296==" X-Trace: dough.gmane.org 1305034228 3140 80.91.229.12 (10 May 2011 13:30:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 May 2011 13:30:28 +0000 (UTC) To: ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Tue May 10 15:30:20 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 1QJn11-0006k7-A2 for gctc-ntg-context-518@m.gmane.org; Tue, 10 May 2011 15:30:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EEE1BCACD4; Tue, 10 May 2011 15:30:15 +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 Jaj-pgCAQ099; Tue, 10 May 2011 15:30:12 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 98DB9CACD1; Tue, 10 May 2011 15:30:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8186FCACD1 for ; Tue, 10 May 2011 15:30:11 +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 e0SqpHb4csTd for ; Tue, 10 May 2011 15:29:57 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 802CDCACCC for ; Tue, 10 May 2011 15:29:57 +0200 (CEST) Original-Received: from mail-vx0-f169.google.com (mail-vx0-f169.google.com [209.85.220.169]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4ADTugD010507 for ; Tue, 10 May 2011 15:29:56 +0200 Original-Received: by vxk20 with SMTP id 20so10073239vxk.14 for ; Tue, 10 May 2011 06:29:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=BJ61A3ozp1vXUbIOYxFfXoEnOJVrSXhtwIdT+QVF+4E=; b=krnk7Zu5ExEr4xAlzf9pFfn/0snTb9vvnC3BoLNiAgP2pqOrqjC1SZkHO2XlUY9hMz 4ZKHR5gEaWKRCVODUf1sGb73Yv8iZp45uoMCuzKPxnob38GFK26nUUNwExFbriWbTK/4 UG9YuVxYVkipD3yusYuPM3kk10cwVT9hd1hKM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=KRreU0pNTke5F508itf9+mtcx5CrhcwPG7bPy4DEk9x5CmQJkJ0fei4F4RNHJWxPSX 9UF7g9r+d1+WOUa14DWzOIL8K34E8o1aZlIy/sfcecBabYAZkajN/Tc2IBfQZcVGnZK8 jYSkAUlnZ5NnkuuhdWgngIPHMasBhWu/z7hsQ= Original-Received: by 10.220.63.135 with SMTP id b7mr1925739vci.72.1305034195440; Tue, 10 May 2011 06:29:55 -0700 (PDT) Original-Received: by 10.220.167.131 with HTTP; Tue, 10 May 2011 06:29:55 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.169; 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: 0rEFNtUhD - ab7b096e8e56 - 20110510 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:68324 Archived-At: --===============1500949296== Content-Type: multipart/alternative; boundary=e0cb4e88768ba3951c04a2ebf36d --e0cb4e88768ba3951c04a2ebf36d Content-Type: text/plain; charset=ISO-8859-1 Hallo. I've got a problem with metapost -> pdf translation. Since mptopdf is still broken in the last ConTeXt beta in the minimal distribution, I use "mtxrun --script metapost --split". It works well, only it ignores font setting. My code is like this: verbatimtex \definetypeface [times] [rm] [serif] [times] [default] [encoding=ec] \definetypeface [times] [mm] [math] [times] [default] [encoding=ec] \setupbodyfont [times,10pt] etex; beginfig(1); label(btex A $a_i$ etex,origin); endfig; end. I believe that the code in the verbatimtex ... etex environment should switch the major font to Times (it works with "texexec --mptex"). However, it is ignored by the "mtxrun --script metapost --split" script---Computer Modern in 12pt is used instead of Times in 10pt. Is there any way around this problem? Many thanks for your help. Best wishes, Michal Kvasnicka --e0cb4e88768ba3951c04a2ebf36d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hallo.

I've got a problem with metapost -> pdf tr= anslation. Since mptopdf is still broken in the last ConTeXt beta in the mi= nimal distribution, I use "mtxrun --script metapost --split". It = works well, only it ignores font setting. My code is like this:


verbatimtex
=A0 \definety= peface [times] [rm] [serif] [times] [default] [encoding=3Dec]
=A0= \definetypeface [times] [mm] [math] [times] [default] =A0[encoding=3Dec]
=A0 \setupbodyfont [times,10pt]
etex;

be= ginfig(1);
=A0 label(btex A $a_i$ etex,origin);
endfig;=

end.


I believe that the code in the verbatimtex ... etex environment should swit= ch the major font to Times (it works with "texexec --mptex"). How= ever, it is ignored by the=A0"mtxrun --script metapost --split" s= cript---Computer Modern in 12pt is used instead of Times in 10pt. Is there = any way around this problem?=A0Many thanks for your help.

Best wishes,
Michal Kvasnicka

<= /div> --e0cb4e88768ba3951c04a2ebf36d-- --===============1500949296== 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 ___________________________________________________________________________________ --===============1500949296==--