summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/metapost/base/TEX.mp
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/metapost/base/TEX.mp')
-rw-r--r--Master/texmf-dist/metapost/base/TEX.mp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Master/texmf-dist/metapost/base/TEX.mp b/Master/texmf-dist/metapost/base/TEX.mp
new file mode 100644
index 00000000000..06a0b451f4f
--- /dev/null
+++ b/Master/texmf-dist/metapost/base/TEX.mp
@@ -0,0 +1,9 @@
+% This file defines TEX <string_primary> to return the picture
+% resulting from running the string through tex. It is slow,
+% but more general than the standard btex..etex construction
+
+vardef TEX primary s =
+ write "btex "&s&" etex" to "mptextmp.mp";
+ write EOF to "mptextmp.mp";
+ scantokens "input mptextmp"
+enddef;