Changes between Initial Version and Version 1 of MetapostPlugin


Ignore:
Timestamp:
May 21, 2010, 9:20:29 PM (14 years ago)
Author:
seas
Comment:

New hack MetapostPlugin, created by seas

Legend:

Unmodified
Added
Removed
Modified
  • MetapostPlugin

    v1 v1  
     1[[PageOutline(2-5,Contents,pullout)]]
     2
     3= MetapostPlugin =
     4
     5== Description ==
     6
     7Plugin for embedding Metapost diagrams into Wiki-pages.
     8
     9== Bugs/Feature Requests ==
     10
     11Existing bugs and feature requests for MetapostPlugin are
     12[report:9?COMPONENT=MetapostPlugin here].
     13
     14If you have any issues, create a
     15[http://trac-hacks.org/newticket?component=MetapostPlugin&owner=seas new ticket].
     16
     17== Download ==
     18
     19Download the zipped source from [download:metapostplugin here].
     20
     21== Source ==
     22
     23You can check out MetapostPlugin from [http://trac-hacks.org/svn/metapostplugin here] using Subversion, or [source:metapostplugin browse the source] with Trac.
     24
     25== Example ==
     26
     27#!metapost
     28input metauml;
     29beginfig(1);
     30
     31Begin.b;
     32Activity.eat("Eat something good", "from the kitchen");
     33Branch.enough;
     34Fork.fork("h", 50);
     35Activity.read("Read a book");
     36Activity.listen("Listen to music", "(and ignore it)");
     37Fork.join("h", 50);
     38End.e;
     39
     40leftToRight.top(10)(read, listen);
     41Group.readListen(read, listen);
     42
     43leftToRight(30)(b, eat);
     44topToBottom(20)(eat, enough, fork, readListen, join, e);
     45
     46drawObjects(b, eat, enough, fork, readListen, join, e);
     47
     48clink(transition)(b, eat);
     49clink(transition)(eat, enough);
     50link(transition)(pathStepX(enough.e, eat.e, 80));
     51clink(transition)(enough, fork);
     52clink(transition)(fork, read);
     53clink(transition)(fork, listen);
     54clink(transition)(read, join);
     55clink(transition)(listen, join);
     56clink(transition)(join, e);
     57
     58item(iGuard)("still hungry")(obj.sw = enough.e + (20, 0));
     59item(iGuard)("had enough")(obj.nw = enough.s + (0, -4));
     60
     61endfig;
     62end
     63
     64== Recent Changes ==
     65
     66[[ChangeLog(metapostplugin, 3)]]
     67
     68== Author/Contributors ==
     69
     70'''Author:''' [wiki:seas] [[BR]]
     71'''Maintainer:''' [wiki:seas] [[BR]]
     72'''Contributors:'''