TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to make the MPost command in Texmaker work. I am using the Texmaker in windows 7 with miktex.

So far I used the example document below. When using the windows console I was able to use following command for convertnig the .mp file to a pdf (a frient told me to rename the pdf because the previewer of texmaker only reads pdfs with the same name as the input file):

mptopdf testfile.m && ren testfile-mps.pdf testfile.pdf

This command works great in the console, but when I tried to use it in Texmaker it didn't work anymore:

mptopdf %.mp && ren %-mps.pdf %.pdf 

When using just

mptopdf %.mp

The pdf testfile-mps.pdf is being generated but when pressing "view PDF" texmaker says 'file not found'.

To my questions:

  • So how can I make the rename command work properly?
  • Or can I make texmaker showing the *-mps.pdf file?
  • What is the command for automatically showing a pdf in texmaker? (So you only have to press one button for compiling and previewing)

Here my testdocument testfile.mp

label.ulft(btex $A$ etex, .5[z1,z2]);
share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.