However, only [MP] showed in the pdf.
I used Texstudio with Miktex29 (also tested with Texlive, same error).
I saw a message "mpost is not recognized as an internal or external command...". But I did configure the mpost in /miktex/bin/mpost and added the option "-enable-write18" for pdflatex.
Can someone get me out of this?
Code: Select all
\documentclass[a4paper,11pt]{article}
\usepackage[shellescape,latex]{gmp}
\begin{document}
\begin{figure}
\centering
\begin{mpost}[mpsettings=input metauml;]
Class.A("A")()();
Class.B("B")()();
B.e = A.w + (-20, 0);
drawObjects(A, B);
link(inheritance)(B.e -- A.w);
\end{mpost}
\caption{A class diagram}
\end{figure}
\end{document}