[metapost] String as macro parameter

Taco Hoekwater taco at elvenkind.com
Sat Mar 3 11:22:33 CET 2007


Hi Oliver,

Oliver Heck wrote:
> Hi there, I'm quite new to MetaPost, so sorry, if this is easy, but I 
> couldn't find it in the manual:
> 
> I wrote a macro that should draw a rectangle with dimensions <breit> and 
> <hoch>, filled with color <farbe> and there should be a text <whatever> 
> in the lower right corner of it. Unfortunately I could not figure out 
> how to pass the text inside that macro. Is it possible?

Not like this. You should check out the 'latexmp' package:

http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/latexmp

Cheers,

Taco


More information about the metapost mailing list