You have to run this from s console window (Command Prompt on Windows.) Go to the start menu and look for "Command Prompt" (usually in Accessories.) You will see a command prompt like this
C:\Documents\username> or something similar This is where you can type commands. The "C:\Documents\..." is the name of the folder where you are currently. You have to navigate to the directory where you saved your metapost file. This is done with the command "cd" (for change directory.) type something like this in the prompt: cd C:\<directory where you have your file> Directory (aka folder) names are separated with backslash \ so for example it is cd C:\Documents\username\MyFiles\MyPaper If the folder has spaces in the full name, it must be enclosed in quotes. cd "C:\Documents\username\My Files\My Paper" After executing cd, the prompt will show the directory where you moved to. Once in your target folder, you run metapost on the file. For example, type mpost figure.mp this generates a file "figure.0" or "figure.1" in that same folder. To use it in LyX, you can simply rename it to "figure.mps", and add it to your lyx document with "insert graphics." Use the pdflatex option to generate the PDF file (rather than the dvipds of ps2pdf options.) The figure will show an error message in the LyX editing window, but it should appear OK in the generated PDF. On Mon, Sep 22, 2008 at 12:09 PM, econkramer <[EMAIL PROTECTED]> wrote: > > Dear all, > > I did not understand how to use metapost. I have created a .fig file in > Winfig and I have exported as .mmp (to get a dynamic graphic). Now, to > import it in Lyx I have got that I have to convert this .mmp in .0 .1 .2 and > so on files. But, I do not know how to do. I have read there should be > someway to run mpost figure.mmp and to get the figure.0 > figure.1...files...but I don't know how to do it. Where should I run it? How > should I run it? > > Can someone help me? > > many thanks > -- > View this message in context: > http://n2.nabble.com/Metapost-conversion-tp1109998p1109998.html > Sent from the LyX - Users mailing list archive at Nabble.com. > > -- Ernesto Posse Applied Formal Methods Group - Software Technology Lab School of Computing Queen's University - Kingston, Ontario, Canada
