Le 26/04/2011 12:36, Hans Hagen a écrit :
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}$ } <inserted text> ...ore.mp ; fi ; ;;;]===], 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 Thanks a lot for your help!!!! Matthieu
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 -----------------------------------------------------------------