9srv Manual Collection/plan9/mp(1) | 9srv Manual Collection/plan9/mp(1) |
---|
The commands given on the command line to mp are passed to it as the first input line. The first line should begin with a filename, a control sequence, or &memname.
The normal usage is to say mp figs to process the file figs.mp. The basename of figs becomes the ``jobname'', and is used in forming output file names. If no file is named, the jobname becomes mpout. The default extension, .mp, can be overridden by specifying an extension explicitly.
There is normally one output file for each picture generated, and the output files are named jobname.nnn, where nnn is a number passed to the beginfig macro. The output file name can also be jobname.ps if this number is negative.
The output files can be used as figures in a tex(1) document by including \special{psfile=jobname.nnn} in the TX document. Alternatively, one can \input epsf.tex and then use the macro \epsfbox{jobname.nnn} to produce a box of the appropriate size containing the figure.
Since most tex fonts have to be downloaded as bitmaps, the btex feature works best when the output of mp is to be included in a tex document so that dvips (see tex(1)) can download the fonts. For self-contained PostScript output that can be used directly or included in a troff document, start your input file with the command prologues:=1 and stick to standard PostScript fonts. Tex and mp use the names in the third column of the file trfonts.map, which can be found in the directories with support files for mp.
Mp output can be included in a troff document via the mpictures(6) macro package. In this case mp should be invoked with the -T flag so that the commands between btex and etex or between verbatimtex and etex are interpreted as troff instead of tex. (This automatically sets prologues:=1).
If the environment variable TEXMFOUTPUT is set, mp attempts to put its output files in it, if they cannot be put in the current directory.
Here is a list of the environment variables affect the behavior of mp:
A .mem file is a binary file that permits fast loading of macro packages. Mp reads the default plain.mem unless another .mem file is specified at the start of the first line with an & just before it. There is also an that simulates plain MetaFont so that mp can read .mf fonts.
Experts can create .mem files be invoking inimpost and giving macro definitions followed by a dump command.
The MetaPost language is similar to MetaFont, but the manual A User's Manual for MetaPost assumes no knowledge of MetaFont. Mp does not have bitmap output commands or MetaFont's online display mechanism.
9srv Manual Collection/plan9/mp(1) | Rev: Sun Mar 26 19:24:41 BST 2000 |