From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68004 Path: news.gmane.org!not-for-mail From: Andreas Harder Newsgroups: gmane.comp.tex.context Subject: Re: Context and metapost: using \frac Date: Tue, 26 Apr 2011 16:33:28 +0200 Message-ID: <20D329EF-9BF9-4660-A709-DC69B4C9E42E@uni-koblenz.de> References: <4DB5BE96.60201@gmail.com> <4DB68454.8060906@wxs.nl> <4DB6983F.7070404@gmail.com> <4DB6A022.9040503@wxs.nl> <4DB6AE53.8020603@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1303828433 5056 80.91.229.12 (26 Apr 2011 14:33:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2011 14:33:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 26 16:33:49 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 1QEjKl-0002FU-8f for gctc-ntg-context-518@m.gmane.org; Tue, 26 Apr 2011 16:33:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BF465CAC4E; Tue, 26 Apr 2011 16:33:46 +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 8M93IbVGJ3AF; Tue, 26 Apr 2011 16:33:44 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EFFB9CAC49; Tue, 26 Apr 2011 16:33:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3688FCABB6 for ; Tue, 26 Apr 2011 16:33:42 +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 1yNHc3SDHowk for ; Tue, 26 Apr 2011 16:33:30 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 8C44FCAC49 for ; Tue, 26 Apr 2011 16:33:30 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de (deliver.uni-koblenz.de [141.26.64.15]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p3QEXTAs020409 for ; Tue, 26 Apr 2011 16:33:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 7FAFF7818F30 for ; Tue, 26 Apr 2011 16:33:29 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18932-03 for ; Tue, 26 Apr 2011 16:33:28 +0200 (CEST) X-CHKRCPT: Envelopesender vrfy aharder@uni-koblenz.de Original-Received: from [192.168.1.112] (88-134-86-12-dynip.superkabel.de [88.134.86.12]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTP id A29837818F33 for ; Tue, 26 Apr 2011 16:33:28 +0200 (CEST) In-Reply-To: <4DB6AE53.8020603@gmail.com> X-Mailer: Apple Mail (2.1084) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.26.64.15; country=DE; region=08; city=Koblenz; latitude=50.3500; longitude=7.6000; http://maps.google.com/maps?q=50.3500,7.6000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05EAextJl - 6d9c8a600d14 - 20110426 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:68004 Archived-At: Am 26.04.2011 um 13:36 schrieb Matthieu Stigler: > = > Le 26/04/2011 12:36, Hans Hagen a =E9crit : >> On 26-4-2011 12:02, Matthieu Stigler wrote: >>> Dear Hans >>> = >>> Thanks for your quick answer! I was however not able to produce the >>> graph with the textext code... Should I actually then use another >>> compiler? I tried with context and texexec (I thought texexec is the >>> compiler for mkiv, right? I'm on linux ubuntu). >> = >> no, use the 'context' command as texexec is for mkii >> = > ok, so I was using the right compiler.... I get a mystake while trying to= compile a file with the code you sent... you didn't? Would you be so nice = and send complete file, so I can check what is wrong? > = > = >>> I saw also that, as you mention, context has a \frac: >>> http://wiki.contextgarden.net/Math_with_newmat >> = >> indeed, \frac is already there for a long time (ams compatible command) > = >> btw, in mkiv there is no m-newmath >> = >>> I tried then to simply add \usemodule[newmat] and compile with context, >>> but did not work... Code below, error message below below... >>> ! Math error: parameter \Umathfraction_del_size\displaystyle is not set. >>> l.3 ...t{411}{$\displaystyle \frac {\sigma _t}{a}$ >>> } >>> ...ore.mp ; fi ; ;;;]=3D=3D=3D], false)} >> = >> make sure that a font is loaded that has math before \starttext is seen >> = >> (try with \setupbodyfont[palatino] at the top of your file) >> = > this does not work neither.... I still get error message with this code: > = > \usemodule[newmat] > = > \setupbodyfont[palatino] > = > \starttext > = > \startMPpage > = > label.top(textext("$ \frac{\sigma_t}{a}$") scaled 1.00, (1, 1)); > = > %label.top(btex $ \frac{\sigma_t}{a}$ etex, (0, 10)); > = > %label.top(textext( $\displaystyle \frac{\sigma_t}{a}$ ) scaled 1.00, (= 1, 1)); > = > \stopMPpage > = > \stoptext Hi, this works for me. \setupbodyfont[palatino] \startMPpage[offset=3D1ex] u :=3D cm ; label.top(textext("$ \frac{\sigma_t}{a}$") scaled 2, origin); label.top(textext("$ \frac{\sigma_t}{a}$"), (u,u)); label.top(textext("$\dfrac{\sigma_t}{a}$") scaled .5, (u,0)); \stopMPpage Greeting Andreas ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________