From: Pétiard François <petiard.francois@fr...>  20080929 19:20:15

Le 29/09/2008 17:54, Pierre Vinet a écrit : > A couple of years ago, I had enough of MS Word and decided it was > time for me to learn LaTex. I downloaded the then current version of > Miktex (???) and started up the learning curve. I was soon ecstatic. > A very heavy user of AMSLatex and METAPOST, I always found a way to > work around any problem I encountered. > > Then last week I opted to upgrade to Miktex 2.7. And found out that > my beloved mptopdf executable no longer worked! > > I spent DAYS searching the Net for a solution. Nothing worked. I > tried installing Miktek 2.6 with no success. I was willing to regress > as far back as necessary but versions Miktek 2.5 and below are no > longer downloadable from the Miktex organisation. > > Although this issue has been debated at some length, there still > exists the need for a CLEAR and EFFICIENT fix (I am running Windows > XP). > > If you are running Miktex 2.7 on Windows XP and CAN get a pdf by > executing mptopdf example.mp (or mptopdf example.1), PLEASE be kind > enough to describe the exact steps involved in recreating the > necessary context environment. You will make many many people very > happy. Note to the why don't you try this crowd: please refrain. Why do you want to have a PDF ? If you add these 2 lines : filenametemplate "%j.mps"; prologues:=3; between etex and beginfig(1) in example.mp and if you compile with : mpost tex=latex example.mp then you'll have a file example.mps than you can include in your tex document with \includegraphics{example} And you can see the file example.mps with GSView. And if you want a PDF file then run: epstopdf example.mps > example.mp : > > verbatimtex > %&latex > \documentclass{article} > \usepackage[latin9]{inputenc} > \usepackage[T1]{fontenc} > \usepackage{amsmath,amssymb} > \begin{document} > etex > beginfig(1) > a := 4cm; b := 2cm; > phi := angle(a,b); > draw (1/2cm,0)(a+1/2cm,0); % horizontal axis > draw (0,b1/2cm)(0,b+1/2cm); % vertical axis > draw (0,b)(a,b)(a,0)(a,b)(0,b) dashed evenly; > draw origin(a,b); > draw origin(a,b); > label.llft(btex $0$ etex, (0,0)); > label.lrt(btex $a$ etex, (a,0)); > label.lft(btex $ib$ etex, (0,b)); > label.lft(btex $ib$ etex, (0,b)); > label.rt(btex plan d'Argand etex, (0.7cm,b+1/2cm)); > label.top(btex $\mathbb{ C}$ etex, (a/2,b)); > label.rt(btex $z$ etex, (a,b)); > label.rt(btex $z^*$ etex, (a,b)); > label(btex $z$ etex, 1/2(a,b) + dir(90+phi)*2.5mm); > label(btex $z^*$ etex, 1/2(a,b)  dir(90+phi)*2.5mm +(3.5mm,0)); > drawarrow (1/2cm,0){up}..1/2cm*dir(phi){dir(90+phi)}; > drawarrow (1/2cm,0){down}..1/2cm*dir(phi){dir(phi90)}; > label(btex $\varphi$ etex, 9.5mm*dir(phi/2)); > label(btex $\varphi$ etex, 8.5mm*dir(phi/2)); > > draw unitsquare scaled 5cm shifted (6cm, 2.5cm) withcolor .7white; > %fontscalec:= 10pt/fontstyle; > label.rt(btex (1) \quad $z=a+ib;\;z^*=aib$ etex,(6cm,2.2cm)); > %draw (6.5cm,2.2cm)(6.5cm,2.2cm) withcolor .7white; > label.rt(btex (2) \quad $z = z^* = \sqrt{a2+b2}$ etex,(6cm.,2.3cm) > shifted (0,.75cm)); > label.rt(btex (3) \quad $\varphi = \arctan \biggl( \dfrac{b}{a} > \biggr)$ etex,(6cm,2.3cm) shifted (0,1.5cm)); > label.rt(btex (4) \quad $a=\Re{(z)}= z \cos \varphi$ > etex,(6cm,2.3cm) shifted (0,2.25cm)); > label.rt(btex (5) \quad $b=\Im{(z)}= z \sin \varphi$ > etex,(6cm,2.3cm) shifted (0,3cm)); > label.rt(btex (6) \quad $z=z e^{i \varphi}; \; z^*=z e^{i > \varphi}$ etex,(6cm,2.3cm) shifted (0,3.75cm)); > label.rt(btex (7) \quad $zz^*=z^2$ etex,(6cm,2.3cm) shifted > (0,4.5cm)); > endfig; > > end; > > François Pétiard 