Set up MetaPost and MetaObj for drawing diagrams.
[matthijs/master-project/report.git] / Utils / Metapost.tex
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