summaryrefslogtreecommitdiff
path: root/metapost
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2010-12-13 22:20:15 +0200
committerMarius <mariausol@gmail.com>2010-12-13 22:20:15 +0200
commit7c318ca9064f51e8b438791b98dd552327bb7a00 (patch)
tree5d25960e97cbe9b56c81868e5383244369441b98 /metapost
parent0146de7d78f6f4a964d77530c01a517566e12234 (diff)
downloadcontext-7c318ca9064f51e8b438791b98dd552327bb7a00.tar.gz
beta 2010.12.13 20:58
Diffstat (limited to 'metapost')
-rw-r--r--metapost/context/base/mp-form.mp6
-rw-r--r--metapost/context/base/mp-grid.mp7
2 files changed, 9 insertions, 4 deletions
diff --git a/metapost/context/base/mp-form.mp b/metapost/context/base/mp-form.mp
index a65ab6d73..1a80d618c 100644
--- a/metapost/context/base/mp-form.mp
+++ b/metapost/context/base/mp-form.mp
@@ -78,8 +78,8 @@ begingroup interim warningcheck := 0 ;
%%% Load auxiliary macros.
-input string
-input marith
+input string ;
+input marith ;
%%% Choosing the Layout %%%
@@ -318,7 +318,7 @@ enddef ;
% round and typeset a quantity z in exponent form.
%
% e scientific, p significant figures
-% p decimal, p digits right of the point
+% f decimal, p digits right of the point
% g decimal or scientific, p sig. figs.
% G decimal or scientific, p digits
diff --git a/metapost/context/base/mp-grid.mp b/metapost/context/base/mp-grid.mp
index f6e843489..c87df821c 100644
--- a/metapost/context/base/mp-grid.mp
+++ b/metapost/context/base/mp-grid.mp
@@ -107,7 +107,12 @@ def do_initialize_numbers =
textext.raw("${\times}10$") ,
textext.raw("${}^-$") ,
textext.raw("${}^2$") ) ;
- numbers_initialized := true ;
+ if unknown _trial_run_ :
+ numbers_initialized := true ;
+ else :
+ % no reset, otherwise textexts get out of sync
+ % slows down graphics a bit but not much
+ fi ;
fi ;
enddef ;