This is an example from mpgraphics package documentation:
\documentclass{article}
\usepackage{mpgraphics}
\begin{document}
\begin{mpinline}
draw (20,20)--(0,0)--(0,30)--(30,0)--(0,0)
\end{mpinline}
\end{document}
I am getting something like this:
I'm using:
- mpost version 1.504 (MiKTeX 2.9)
- pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
- MiKTeX EPS-to-PDF Converter 2.9.3275 (MiKTeX 2.9)
I compile using wrige using TexMaker and compile by means of:
latexmk -e "$pdflatex=q/pdflatex -synctex=1 -shell-escape -interaction=nonstopmode/" -pdf %.tex
or
pdflatex -interaction=nonstopmode -synctex=1 -shell-escape %.tex
(result is the same)
What am I doing wrong?
You can find the log file here. Example compiled by: pdflatex -interaction=nonstopmode -enable-write18 -synctex=1 -shell-escape %.tex
Resulting pdf: link
EDIT:
I tried to compile it by a command line. This is what I got:
The whole folder with source and logs
--enable-write18
... see: docs.miktex.org/manual/pdftex.html or simpletexdoc pdftex
– Marco Daniel May 28 '12 at 19:02latexmk -e "$pdflatex=q/pdflatex -synctex=1 -shell-escape --enable-write18 -interaction=nonstopmode/" -pdf %.tex
and it still does not work. – Ichibann May 28 '12 at 19:05--shell-escape
isn't available for MikTeX. Please test it withpdflatex --enable-write18 --synctex=1 %.tex
. – Marco Daniel May 28 '12 at 19:06--shell-escape
not be avaliable when I do use it (without it my project wouldn't even compile)? Just triedpdflatex --enable-write18 --synctex=1 %.tex
. No change. – Ichibann May 28 '12 at 19:07