mpost
MetaPost, a system for creating graphics
see also :
dvitomp - mf - mptopdf - tex
Synopsis
mpost
[options] [commands]
mpost
--dvitomp dvifile[.dvi]
[mpxfile[.mpx]]
add an example, a script, a trick and tips
examples
source
mpost abstract_factory.mp
mv abstract_factory.1 abstract_factory.mps
mpost components.mp
mv components.1 components.mps
mv components.1 components.mps
mpost acomponents.mp
mv acomponents.1 acomponents.mps
source
mpost tools.mp
mv tools.1 tools.mps
mpost linetool.mp
mv linetool.1 linetool.mps
mpost state.mp
mv state.1 state.mps
mv state.1 state.mps
mpost tcpconnection.mp
mv tcpconnection.1 tcpconnection.mps
pdflatex state.tex
source
mpost strategy.mp
mv strategy.1 strategy.mps
mpost connect_strategy.mp
mv connect_strategy.1 connect_strategy.mps
source
mpost visitor.mp
mv visitor.1 visitor.mps
mpost shape_visitor.mp
mv shape_visitor.1 shape_visitor.mps
source
mpost observer.mp
mv observer.1 observer.mps
mpost line_observer.mp
mv line_observer.1 line_observer.mps
source
cd figs
mpost -interaction=nonstopmode
circnomeansym.mp
mpost -interaction=nonstopmode
rotatedpic.mp
mpost -interaction=nonstopmode
rotatedpic.mp
mpost -interaction=nonstopmode
wrappeduniform_var0p08.mp
mpost -interaction=nonstopmode
VonMisesSumUnif_0p3.mp
source
cd plots
mpost -interaction=nonstopmode
circstatfigcube.mp
mpost -interaction=nonstopmode
circstatfigquad.mp
mpost -interaction=nonstopmode
circstatfigquad.mp
mpost -interaction=nonstopmode
circstatfig.mp
mpost -interaction=nonstopmode
circstatfigzero.mp
source
latex test.tex
mpost fmftempl.mp
latex test.tex
dvipdfm test.dvi
source
cd plots
mpost -interaction=nonstopmode
peplots.mp
cd ..
cd figs
mpost -interaction=nonstopmode
cuberothex.mp
mpost -interaction=nonstopmode
cuberothex.mp
mpost -interaction=nonstopmode
hexlatfig.mp
cd ..
pdflatex paper.tex
bibtex paper
pdflatex paper.tex
description
MetaPost
interprets the MetaPost language and produces PostScript
(EPS) or Scalable Vector Graphics (SVG) pictures. The
MetaPost language is similar to Knuth’s Metafont with
additional features for including tex(1) or
troff(1) commands and accessing features of
PostScript not found in Metafont.
MetaPost is
normally used with some preloaded macros, and it will use
its executable name as the name of the preload file to use.
For example, when called as mpost the mpost.mp
file is used, which is identical to plain.mp. When
the --ini option is given, preloading does not
happen.
The
commands given on the command line to the MetaPost
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
MetaPost’s favorite symbols, like semicolons, unless
you quote them.) The normal usage is to say mpost
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.
When the
--dvitomp option is given, MetaPost 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 MetaPost 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 MetaPost
language is similar to Metafont, but the manual assumes no
knowledge of Metafont. MetaPost does not have bitmap output
commands or Metafont’s online display mechanism.
files
plain.mp
The standard preload file.
mfplain.mp
The Metafont-compatible preload file.
$TEXMFMAIN/metapost/base/*.mp
The standard MetaPost macros included in the original
distribution.
$TEXMFMAIN/metapost/support/*
Various tables for handling included tex and troff.
$TEXMFMAIN/metapost/support/trfonts.map
Table of corresponding font names for troff and
PostScript.
psfonts.map
Table of corresponding font names for tex and PostScript.
$TEXMFMAIN/doc/metapost/*
The MetaPost manual and tutorial source, also including sample
figures
suggested reading
Donald E. Knuth, The Metafontbook (Volume C of
Computers and Typesetting), Addison-Wesley, 1986, ISBN
0-201-13445-4.
TUGboat (the journal of the TeX Users Group).
bugs
Email bug
reports to metapost[:at:]tug[:dot:]org.
see also
dvitomp ,
epstopdf, mf , mptopdf ,
tex ,
MetaPost source
code 〈 URL:
http://foundry.supelec.fr/gf/project/metapost/ 〉 .
MetaPost home page 〈 URL: http://tug.org/metapost/
〉 .
authors
MetaPost was
designed by John D. Hobby, incorporating algorithms from
Metafont by Donald E. Knuth. It was originally implemented
on Unix, incorporating system-dependent routines from
web2c, while not relying on it except for the actual
Web-to-C translator.
Ulrik Vieth
adapted MetaPost to take advantage of the advanced path
searching features in more recent versions of web2c
and worked towards fully integrating MetaPost into the
canonical Unix TeX 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.