Set up MetaPost and MetaObj for drawing diagrams.
authorMatthijs Kooijman <matthijs@stdin.nl>
Wed, 23 Sep 2009 13:40:22 +0000 (15:40 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Wed, 23 Sep 2009 13:40:22 +0000 (15:40 +0200)
Report.tex
Utils/Metapost.tex [new file with mode: 0644]

index 367d0935be5f1da9e3bec3afea84405b8d8faf05..40b94b66e55a0a0e9d858cd3f58195c68487a60d 100644 (file)
@@ -5,6 +5,7 @@
 \input Utils/Formats
 \input Utils/Lambda
 \input Utils/Shortcuts
 \input Utils/Formats
 \input Utils/Lambda
 \input Utils/Shortcuts
+\input Utils/Metapost
 
 \usetypescript [Custom]
 
 
 \usetypescript [Custom]
 
diff --git a/Utils/Metapost.tex b/Utils/Metapost.tex
new file mode 100644 (file)
index 0000000..cac69dd
--- /dev/null
@@ -0,0 +1,19 @@
+% Some setup for metapost
+\startMPinclusions 
+
+% Use metaobj for drawing objects
+input metaobj; 
+
+% Set some defaults for pretty pictures
+setObjectDefaultOption("Box")("framewidth")(.75mm);
+setObjectDefaultOption("Circle")("framewidth")(.75mm);
+setObjectDefaultOption("Circle")("circmargin")(3mm);
+%ahlength := 1.5mm;
+ahangle := 60;
+
+setCurveDefaultOption("linewidth",.75mm);
+% Add a nodesep that's equal to the linewidth, since the linewidth isn't
+% included in the bounding box for line cutoff.
+setCurveDefaultOption("nodesep",curve_linewidth_default);
+
+\stopMPinclusions