summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/metapost/base/format.mp
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/metapost/base/format.mp')
-rw-r--r--Master/texmf-dist/metapost/base/format.mp17
1 files changed, 12 insertions, 5 deletions
diff --git a/Master/texmf-dist/metapost/base/format.mp b/Master/texmf-dist/metapost/base/format.mp
index 6a636c62ad9..84e4376a44e 100644
--- a/Master/texmf-dist/metapost/base/format.mp
+++ b/Master/texmf-dist/metapost/base/format.mp
@@ -1,3 +1,6 @@
+% $Id: format.mp,v 1.2 2004/09/19 21:47:10 karl Exp $
+% Public domain.
+
% Macros for generating typeset pictures of computed numbers
% format(f,x) typeset generalized number x using format string f
@@ -89,11 +92,15 @@ vardef Fsci_o_(expr x, e) =
enddef;
-% Assume prologues=1 implies troff mode. TeX users who what prologues on
-% should use some other positive value. The mpx file mechanism requires
-% separate input files here.
-if prologues=1: input troffnum
-else: input texnum
+% Assume troffmode=1 implies troff mode. This internal is present
+% since version 0.99, and should be set in the change file.
+% As a default, fall back to the previous 'prologues=1' test.
+% The mpx file mechanism requires separate input files here.
+if troffmode=1: input troffnum
+else:
+ if prologues=1: input troffnum
+ else: input texnum
+ fi
fi