Friday, November 26, 2010

update to latest metauml

The metauml package contained in the default texlive installation on ubuntu is the old version 0.2.3. This version doesn't support component diagram. I have to update to latest version manually. Here is how:

  1. backup /usr/share/texmf-texlive/metapost/metauml
  2. download metauml here
  3. extract and copy everything under metauml/inputs to /usr/share/texmf-texlive/metapost/metauml
  4. run "sudo texhash" to refresh texmf database, so that new version will be recognized

Now try the following diagram, it should compile fine.
1 input metauml;
2   beginfig(1);
3
4   Component.C("ComponentAAA")();
5   drawObject(C);
6
7   endfig;
8 end

No comments: