mpost - MetaPost, a system for creating graphics
2. SYNOPSIS ▲
mpost [ options ] [ commands ]
--dvitomp dvifile [.dvi] [ mpxfile [.mpx]]
3. DESCRIPTION ▲
\*(MP interprets the \*(MP language and produces PostScript (EPS) or Scalable Vector Graphics (SVG) pictures. The \*(MP language is similar to Knuth's \*(MF with additional features for including
R tex (1) or
R troff (1) commands and accessing features of PostScript not found in \*(MF.
Like \*(TX and \*(MF, \*(MP is normally used with a large body of precompiled macros. When the
--ini option is given, it can be used to precompile macros into a .memfile. When called without that option, \*(MP will use its executable name as the name of the mem to use. For example, when called as
mpost the mpostmem is used, which is identical to the plainmem.
The commandsgiven on the command line to the \*(MP program are passed to it as the first input line. (But it is often easier to type extended arguments as the first input line, since UNIX shells tend to gobble up or misinterpret \*(MP's favorite symbols, like semicolons, unless you quote them.) The normal usage is to say mpost figsto process the file figs.mp . The basename of figsbecomes 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.
--dvitomp option is given, \*(MP acts as DVI-to-MPX converter only. See dvitomp (1) for details.
This manual page is not meant to be exhaustive. The complete documentation for this version of \*(MP can be found in the User Manual that should have been installed along with the program and is also available from http://tug.org/metapost. See the FILES section below.
The \*(MP language is similar to \*(MF, but the manual assumes no knowledge of \*(MF. \*(MP does not have bitmap output commands or \*(MF's online display mechanism.
4. FILES ▲
Predigested \*(MP mem files.
The standard mem file.
The \*(MF-compatible mem file.
The standard \*(MP macros included in the original distribution.
Various tables for handling included texand troff .
Table of corresponding font names for troffand PostScript.
Table of corresponding font names for texand PostScript.
The \*(MP manual and tutorial source, also including sample figures
5. SUGGESTED READING ▲
Donald E. Knuth, "The \*(MFbook"(Volume C of "Computers and Typesetting" ), Addison-Wesley, 1986, ISBN 0-201-13445-4.
TUGboat(the journal of the \*(TX Users Group).
6. SEE ALSO ▲
R dvitomp (1),
R epstopdf (1),
R mf (1),
R mptopdf (1),
R tex (1),
.URL "http://foundry.supelec.fr/gf/project/metapost/" "MetaPost source code" .
R .URL "http://tug.org/metapost/" "MetaPost home page" .
7. AUTHORS ▲
\*(MP was designed by John D. Hobby, incorporating algorithms from \*(MF by Donald E. Knuth. It was originally implemented on Unix, incorporating system-dependent routines from
R web2c , while not relying on it except for the actual \*(WB-to-C translator.
Ulrik Vieth adapted \*(MP to take advantage of the advanced path searching features in more recent versions of
web2c and worked towards fully integrating \*(MP into the canonical Unix \*(TX distribution.
The current, CWEB based version of MetaPost is maintained by Taco Hoekwater.
The manual and tutorial are maintained by Stephan Hennig and Troy Henderson.
8. BUGS ▲
Email bug reports to .