MPICTURES(7)
MPICTURES(7) β picture inclusion macros π¦
okay so bestie, this is the Miscellaneous Information Manual page for mpictures, aka the picture inclusion macros. We're inserting PostScript pictures into troff(1) documents and honestly? it's giving main-character energy. iconic. π
β¨
NAME π
mpictures β picture inclusion macros. That's the name, no cap. periodt.
SYNOPSIS β¨
troff -mpictures [ options ] file ...
DESCRIPTION π¦
Mpictures macros insert PostScript pictures into troff(1) documents. The macros are literally right here:
.BP source height width position offset flags labelβ define a frame and place a picture in it. Null arguments, represented by"", are interpreted as defaults (so if you leave a blank, the default vibe steps in). The arguments are:sourceβ name of a PostScript picture file, optionally suffixed with(n)to select page numbernfrom the file (first page by default).heightβ vertical size of the frame, default3.0i.widthβ horizontal size of the frame, current line length by default.positionβ(default), or to left-justify, center, or right-justify the frame.offsetβ move the frame horizontally from the original position by this amount, default0i.flagsβ one or more of:adβ rotate the picture clockwiseddegrees, defaultd=90.oβ outline the picture with a box.sβ freely scale both picture dimensions.wβ white out the area to be occupied by the picture.l,r,t,bβ attach the picture to the left right, top, or bottom of the frame.
labelβ placelabelat distance1.5vbelow the frame.
If there's room, .BP fills text around the frame. Everything destined for either side of the frame goes into a diversion to be retrieved when the accumulated text sweeps past the trap set by .BP or when the diversion is explicitly closed by .EP.
.PI source height,width,yoffset,xoffset flags.β this low-level macro, used by.BP, can help do more complex things β lowkey the backstage pass. The two arguments not already described are:xoffsetβ offset the frame from the left margin by this amount, default0i.yoffsetβ offset the frame from the current baseline, measuring positive downward, default0i.
.EPβ end a picture started by.BP;.EPis usually called implicitly by a trap at frame bottom. automatic-ish, iykyk.
If a PostScript file lacks page-delimiting comments, the entire file is included β the whole thing, bestie. If no %%BoundingBox comment is present, the picture is assumed to fill an 8.5Γ11-inch page. Nothing prevents the picture from being placed off the page, so yeah, off-page is absolutely possible. π
SEE ALSO π₯
troff(1)β the reference, the icon, the only SEE ALSO entry. periodt.
DIAGNOSTICS π©Ί
A picture file that can't be read by the PostScript postprocessor is replaced by white space. not the glow-up you wanted, but that's the diagnostic. π
BUGS π
okay bestie, this is the cautionary-tales section β read it, don't skip it, fr fr:
- A picture and associated text silently disappear if a diversion trap set by
.BPisn't reached β literally ghosting you. Call.EPat the end of the document to retrieve it. - Macros in other packages may break the adjustments made to the line length and indent when text is being placed around a picture. other packages? lowkey messy.
- A missing or improper
%%BoundingBoxcomment may cause the frame to be filled incorrectly. the frame said "not today." π
that's a wrap on MPICTURES(7), bestie β the footer is just MPICTURES(7), no extra version/date drama. mwah πβ¨
π¦ where this page comes from
- alpine 3.24: plan9port-doc 0_git20260208-r0 Β· LPL-1.02
- arch rolling: plan9port 20261021-2 Β· custom
- nixos 26.05: plan9port 0-unstable-2025-11-10
- nixos 26.05: plan9port-wayland 0-unstable-2025-11-26
- nixpkgs unstable: plan9port 0-unstable-2025-11-10
- nixpkgs unstable: plan9port-wayland 0-unstable-2025-11-26
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms