When I try to compile a MetaUML program on Windows, I get the following error:
Font ptmr8r not usable: TFM file not found
I Googled this error, and I found that I have to install texlive-fonts-recommended. However, I cannot find any way to install this package on Windows. I am using TeX Live 2010. I am able to compile MetaPost programs without problems.
This isn't a LaTeX document but a MetaPost program that uses the MetaUML library. I wasn't sure about the best place to put this. Here is the code. It is an example from the MetaUML SourceForge site
input metauml.mp beginfig(1); % had forgotten this Class.P("Person")()(); Class.C("Company")()(); leftToRight(150)(P, C); drawObjects(P, C); clink(association)(P, C); item(iAssoc)("employee")(obj.sw = P.e); item(iAssoc)("1..*")(obj.nw = P.e); item(iAssoc)("employer")(obj.se = C.w); item(iAssoc)("0..*")(obj.ne = C.w); item(iAssoc)("works for")(obj.s =.5[P.e,C.w]); % and these endfig; end
To compile I do:
Ok, I installed Tex Live 2012, and the problem I had originally went away. I think the issue I had originally was because I did not have the recommended fonts installed (it's an option in the installer and increases the size of the download significantly, and I probably unselected it).
Now when I compile, I see the following:
mpost test.mp This is MetaPost, version 1.504 (kpathsea version 6.1.0) (mpost.mp (c:/texlive/2012/texmf-dist/metapost/base/plain.mp Preloading the plain mem file, version 1.004)) (./test.mp (c:/texlive/2012/../texmf-local/metapost/local/metauml/metauml.mp (c:/texlive/2012/../texmf-local/metapost/local/metauml/util_infrastructure.mp ... (c:/texlive/2012/../texmf-local/metapost/local/metauml/metauml_templates.mp))) * (Please type a command or say `end') *end Transcript written on test.log.
I don't see any errors. test.log only has the output that was displayed, which consisted of files from the MetaUML library. No other files are generated.
I have other MetaPost code that uses my own included libraries, and I don't see this problem.
The problem was that I didn't have the
end. This is MetaPost 101, but I had copied and pasted from the website. I've updated the code.