projects
/
matthijs
/
master-project
/
report.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29d388c
)
Add a midpoint Metapost macro.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Wed, 30 Sep 2009 15:10:31 +0000
(17:10 +0200)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Wed, 30 Sep 2009 15:10:31 +0000
(17:10 +0200)
Utils/Metapost.tex
patch
|
blob
|
history
diff --git
a/Utils/Metapost.tex
b/Utils/Metapost.tex
index 7caa6e0275c53ab2d20413697e18e8c42151fd65..e0177804afb2b8a55881c29be0151545fc80cf58 100644
(file)
--- 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.