MPOST(1)
π MPOST(1) π
okay bestie, gather round, because we're talking about mpost β that's the MetaPost situation, plus its lil siblings pmpost and upmpost (the graphics-making girlies), and also r-mpost, r-pmpost, r-upmpost which are the restricted</> versions. no cap. π
β¨ SYNOPSIS β¨
mpost [options] [commands]
mpost --dvitomp dvifile[.dvi] [mpxfile[.mpx]]
πΈ DESCRIPTION πΈ
So MetaPost reads the MetaPost language and spits out PostScript (EPS) or Scalable Vector Graphics (SVG) pictures. literally making art out of text. π¦
The MetaPost language is similar to Knuth's Metafont, except it also has extra features for including tex(1) or troff(1) commands and for reaching into PostScript features that Metafont simply doesn't have. glow-up fr fr. β¨
MetaPost is normally used with a set of basic macros, and here's the cute part: it uses its own executable name as the name of the preload file to use. so like, when you call it as mpost, the mpost.mp file gets used, which just reads plain.mp. iconic behaviour honestly. but when you pass the --ini option, preloading does not happen. noted. π
Any commands you give on the command line get passed to MetaPost as the first input line. (tho ngl it's often easier to just type your extended arguments as the first input line, because UNIX shells love to gobble up or misinterpret MetaPost's fave symbols β like semicolons β unless you quote them. the way shells do that... π)
Normal usage is saying mpost figs to process the file figs.mp. The basename figs becomes the ``jobname'', and it's used in forming output file names. If no file is named, the jobname becomes mpout. and the default extension .mp can be overridden by specifying an extension explicitly. easy. π
When the --dvitomp option is given, MetaPost acts as a DVI-to-MPX converter only. see dvitomp(1) for details. π
The pmpost program is a variant with Japanese support, and upmpost has Unicode-enabled Japanese support β analogous to ptex and uptex. π
All three variants are also installed with an r- prefix, so: r-mpost, r-pmpost, r-upmpost. These implicitly specify the --restricted option, which makes MetaPost safe to run on unknown input β the tex, makempx, and editor commands are disabled. safety first bestie π«Ά
This manual page is a mere skeleton. For a list of ALL command line options, run --help. no fr, go run it.
The main documentation for this version of MetaPost lives in the User Manual that should've been installed along with the program, and it's also available from https://tug.org/metapost. π
The MetaPost language is similar to Metafont, but the manual assumes no knowledge of Metafont. Also, MetaPost does not have bitmap output commands or Metafont's online display mechanism. just so you know. π
π FILES π
plain.mpβ the standard preload file. the blueprint bestie. β¨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 includedtexandtroff.$TEXMFMAIN/metapost/support/trfonts.mapβ table of corresponding font names fortroffand PostScript.psfonts.mapβ table of corresponding font names fortexand PostScript.$TEXMFMAIN/doc/metapost/*β the MetaPost manual and tutorial source, also including sample figures. study material slay π
π 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).
π₯ SEE ALSO π₯
dvitomp(1), epstopdf(1), mf(1), mptopdf(1), tex(1), MetaPost home page β¨https://tug.org/metapost/β©.
π AUTHORS π
MetaPost was created 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. the lore is real.
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. king behaviour π
The primary author of the current MetaPost was Taco Hoekwater, with assistance from Hans Hagen and many others. It is currently maintained by Luigi Scarso. π
π BUGS π
The MetaPost home page is https://tug.org/metapost. that's it, that's the bug section. go there. π
Web2C 2025 Β· 31 December 2018 β and that's the whole MPOST(1) page bestie!! you ate this. go make some graphics π
β¨π¦π
π¦ where this page comes from
- alpine 3.24: texlive-doc 2026.0-r0 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 44: texlive-metapost 12:svn77830-105.fc44 Β· LGPL-2.1-or-later
- fedora 44: texlive-metapost 12:svn77830-111.fc44 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: texlive-metapost-doc 2025.221.svn73850-160000.3.1 Β· LGPL-2.1-or-later
- ubuntu resolute: texlive-binaries 2025.20250727.75242+ds-5build1 Β· TeX-Live
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms