MS(7)
π MS β macros for formatting manuscripts
okay bestie, gather round, because this one is a whole vibe. The manual page name is ms (under MS(7), in the Miscellaneous Information Manual section), and it's basically a whole canned formatting situation for nroff and troff. It's giving "senior researcher who does their own typesetting" energy and honestly? iconic.
β¨ SYNOPSIS β¨
nroff -ms [ options ] file ...
troff -ms [ options ] file ...
that's it. that's the whole invocation. you just slap -ms on and let the macros carry you π
πΈ DESCRIPTION πΈ
So this package of nroff and troff(1) macro definitions gives you a canned formatting facility for technical papers in various formats. Like, pre-packaged glow-up for your document. no cap.
The macro requests are defined below (scroll down, there are so many, we love a comprehensive queen π). Real talk though: many nroff and troff requests are unsafe in conjunction with this package β but the following requests may be used with impunity after the first .PP:
Output of the eqn(1), tbl(1), pic(1) and grap(1) preprocessors for equations, tables, pictures, and graphs is acceptable as input. so yes, you can absolutely bring your equation friends and your table friends to the party π«Ά
π FILES π
/tmac/tmac.s
that's the whole file list. one file. minimal. she's low maintenance.
π¦ SEE ALSO π¦
- M. E. Lesk, ``Typing Documents on the UNIX System: Using the -ms Macros with Troff and Nroff'', Unix Research System Programmer's Manual, Tenth Edition, Volume 2.
eqn(1),troff(1),tbl(1),pic(1)
the Lesk paper is the reading, fr fr. go read it, it's the moment.
π₯ REQUESTS π₯
okay this is the main character section. every request has an initial value (what it's set to before you touch it) and a cause break (whether it yeets you to a new line). - means there's no initial value listed, k? don't come for me, that's just what the page says π
.1Cβ initial value: yes, causes break: yes β one column format on a new page..2Cβ initial value: no, causes break: yes β two column format..ABβ initial value: no, causes break: yes β begin abstract..AEβ initial value:-, causes break: yes β end abstract..AIβ initial value: no, causes break: yes β author's institution follows. suppressed in.TM..ATβ initial value: no, causes break: yes β printAttachedand turn off line filling..AU x yβ initial value: no, causes break: yes β author's name follows.xis location andyis extension, ignored except in TM..B x yβ initial value: no, causes break: no β printxin boldface, appendy; if there's no argument, switch to boldface..B1β initial value: no, causes break: yes β begin text to be enclosed in a box..B2β initial value: no, causes break: yes β end boxed text..BI x yβ initial value: no, causes break: no β printxin bold italic and appendy; if there's no argument, switch to bold italic..BT dateβ initial value:date, causes break: no β bottom title, automatically invoked at the foot of the page. may be redefined..BX xβ initial value: no, causes break: no β printxin a box..CW x yβ initial value: no, causes break: no β constant width font forx, appendy; if there's no argument, switch to constant width..CTβ initial value: no, causes break: yes β printCopies toand turn off line filling..DA xβ initial value: nroff, causes break: no β theDate lineat the bottom of the page isx. default is today..DEβ initial value:-, causes break: yes β end displayed text. implies.KE..DS xβ initial value: no, causes break: yes β start of displayed text, to appear verbatim line-by-line: indented (default), left-justified, centered, (block) centered with straight left margin. implies.KS..EGβ initial value: no, causes break:-β print document in BTL format forEngineer's Notes.must be first..ENβ initial value:-, causes break: yes β space after equation produced byneqnoreqn(1)..EQ x yβ initial value:-, causes break: yes β display equation. equation number isy. optionalxisI,L,Cas in.DS..FEβ initial value:-, causes break: yes β end footnote..FP xβ initial value:-, causes break: no β set font positions for a family, e.g.,.FSβ initial value: no, causes break: no β start footnote. the note will be moved to the bottom of the page..HOβ initial value:-, causes break: no βBell Laboratories, Holmdel, New Jersey 07733..I x yβ initial value: no, causes break: no β italicizex, appendy; if there's no argument, switch to italic..IHβ initial value: no, causes break: no βBell Laboratories, Naperville, Illinois 60540..IMβ initial value: no, causes break: no β print document in BTL format for an internal memorandum. must be first..IP x yβ initial value: no, causes break: yes β start indented paragraph, with hanging tagx. indentation isyens (default 5)..KEβ initial value:-, causes break: yes β end keep. put kept text on next page if not enough room..KFβ initial value: no, causes break: yes β start floating keep. if the kept text must be moved to the next page, float later text back to this page..KSβ initial value: no, causes break: yes β start keeping following text..LGβ initial value: no, causes break: no β make letters larger..LPβ initial value: yes, causes break: yes β start left-blocked paragraph..LTβ initial value: no, causes break: yes β start a letter; a non-empty first argument produces a full Lucent letterhead, a second argument is a room number, a third argument is a telephone number..MFβ initial value:-, causes break:-β print document in BTL format forMemorandum for File.must be first..MHβ initial value:-, causes break: no βBell Laboratories, Murray Hill, New Jersey 07974..MRβ initial value:-, causes break:-β print document in BTL format forMemorandum for Record.must be first..ND dateβ initial value: troff, causes break: no β use date supplied (if any) only in special BTL format positions; omit from page footer..NH nβ initial value:-, causes break: yes β same as.SH, with automatic section numbers like1.2.3;nis subsection level (default 1)..NLβ initial value: yes, causes break: no β make letters normal size..P1β initial value:-, causes break: yes β begin program display in constant width font..P2β initial value:-, causes break: yes β end program display..PEβ initial value:-, causes break: yes β end picture; seepic(1)..PFβ initial value:-, causes break: yes β end picture; restore vertical position..PPβ initial value: no, causes break: yes β begin paragraph. first line indented..PS h wβ initial value:-, causes break: yes β start picture; height and width in inches..PYβ initial value:-, causes break: no βBell Laboratories, Piscataway, New Jersey 08854..QEβ initial value:-, causes break: yes β end quoted material..QPβ initial value:-, causes break: yes β begin quoted paragraph (indent both margins)..QSβ initial value:-, causes break: yes β begin quoted material (indent both margins)..Rβ initial value: yes, causes break: no β roman text follows..REβ initial value:-, causes break: yes β end relative indent level..RPβ initial value: no, causes break:-β cover sheet and first page for released paper. must precede other requests..RSβ initial value:-, causes break: yes β start level of relative indentation from which subsequent indentation is measured..SG xβ initial value: no, causes break: yes β insert signature(s) of author(s), ignored except in.TMand.LT.xis the reference line (initials of author and typist)..SHβ initial value:-, causes break: yes β section head follows, font automatically bold..SMβ initial value: no, causes break: no β make letters smaller..TA x...β initial value:5..., causes break: no β set tabs in ens. default is5 10 15 ....TEβ initial value:-, causes break: yes β end table; seetbl(1)..THβ initial value:-, causes break: yes β end heading section of table..TLβ initial value: no, causes break: yes β title follows..TM x...β initial value: no, causes break:-β print document in BTL technical memorandum format. arguments are TM number, (quoted list of) case number(s), and file number. must precede other requests..TR xβ initial value:-, causes break:-β print in BTL technical report format; report number isx. must be first..TS xβ initial value:-, causes break: yes β begin table; ifxisH, table heading is repeated on new pages..UL xβ initial value:-, causes break: no β underline argument (even in troff)..UX y zβ initial value:-, causes break: no βzUNIXy; first use gives registered trademark notice..WHβ initial value:-, causes break: no βBell Laboratories, Whippany, New Jersey 07981.
β οΈ bestie read the fine print:.EG,.IM,.MF,.MR,.TM, and.TRall say must be first (and.RPmust precede other requests). don't be the person who puts them in the middle, okay? that's not the vibe π
okay and that's the whole page!! huge shoutout to whoever typed this up β it lives in the Miscellaneous Information Manual and the page itself is MS(7). periodt. go format something gorgeous, you got this π§π
π¦ 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