From: Matthijs Kooijman Date: Wed, 23 Sep 2009 13:40:22 +0000 (+0200) Subject: Set up MetaPost and MetaObj for drawing diagrams. X-Git-Tag: final-thesis~256 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=48cad63619d532983939384e62e0921003a5a1cb;p=matthijs%2Fmaster-project%2Freport.git Set up MetaPost and MetaObj for drawing diagrams. --- diff --git a/Report.tex b/Report.tex index 367d093..40b94b6 100644 --- a/Report.tex +++ b/Report.tex @@ -5,6 +5,7 @@ \input Utils/Formats \input Utils/Lambda \input Utils/Shortcuts +\input Utils/Metapost \usetypescript [Custom] diff --git a/Utils/Metapost.tex b/Utils/Metapost.tex new file mode 100644 index 0000000..cac69dd --- /dev/null +++ b/Utils/Metapost.tex @@ -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