summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/metapost/base/TEX.mp
blob: 06a0b451f4fd374cee3e247d5fac1a12badb875e (plain)
1
2
3
4
5
6
7
8
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;