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). I saw also that, as you mention, context has a \frac: http://wiki.contextgarden.net/Math_with_newmat I tried then to simply add \usemodule[newmat] and compile with context, but did not work... Code below, error message below below... Thanks a lot!!!! Matthieu Code: \usemodule[newmat] \starttext \setupMPpage[offset=1pt] \switchtobodyfont[10pt] % Beginning MetaPost graphic \startMPpage label.top(btex 1.4 etex scaled 1.00, (10, 10)); label.top(btex $\sigma_t$ etex scaled 1.00, (0, 10)); label.top(btex $\displaystyle \frac{\sigma_t}{a}$ etex scaled 1.00, (0, 10)); \stopMPpage \stoptext Error: ! Math error: parameter \Umathfraction_del_size\displaystyle is not set. l.3 ...t{411}{$\displaystyle \frac {\sigma _t}{a}$ } <inserted text> ...ore.mp ; fi ; ;;;]===], false)} \processMPgraphic ...s ;\!!es , \MPaskedfigure )}} \egroup \global \MPinstanc... \dostartMPpage ...??mg ][#1]\processMPgraphic {#3} \dostopfittingpage l.26 \stopMPpage Le 26/04/2011 10:37, Hans Hagen a écrit :
On 25-4-2011 8:33, mat wrote:
Any idea how I should do? Find below minimal example, that does not work on my computer when compiling with context...
best use textext ...
label.top(textext("1.4") scaled 1.00, (10, 10)); label.top(textext("$\sigma_t$") scaled 1.00, (0, 10)); label.top(textext("$\displaystyle \frac{\sigma_t}{a}$") scaled 1.00, (1, 1));
works ok (only tested mkiv); also \frac is available in context
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------