Add boxedgraphic macro to display a metapost graphic with a border.
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 1 Oct 2009 14:00:53 +0000 (16:00 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Thu, 1 Oct 2009 14:00:53 +0000 (16:00 +0200)
Utils/Lambda.tex

index b300b3524a10921c845c35d27bc97283a04ffbb8..2172bbc38d0c1c42a1b01c255fe5b2a4c0d82146 100644 (file)
@@ -70,3 +70,11 @@ draw b;
   % Reset the typing options
   \setuptyping[option=none,style=\tttf]
 }
+
+% Display a useMPgraphic in a pretty box
+\define[1]\boxedgraphic{
+  \startboxed
+  \useMPgraphic{#1}
+  \stopboxed
+}
+