From: Matthijs Kooijman Date: Wed, 30 Sep 2009 15:10:31 +0000 (+0200) Subject: Add a midpoint Metapost macro. X-Git-Tag: final-thesis~234 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=d8e8089acc900edd45b9f3345d1ec35cb9d47e01;p=matthijs%2Fmaster-project%2Freport.git Add a midpoint Metapost macro. --- diff --git a/Utils/Metapost.tex b/Utils/Metapost.tex index 7caa6e0..e017780 100644 --- a/Utils/Metapost.tex +++ b/Utils/Metapost.tex @@ -94,6 +94,8 @@ define_global_boolean_option("labels"); setObjectDefaultOption("Reg")("reflect")(false); setObjectDefaultOption("Reg")("labels")(false); +def midpoint(expr a, b) = ((a + b) / 2) enddef; + \stopMPinclusions % Make \overrightarrow "unexpanded", to make it work within metapost.