Команда troff

Typeset or format documents.

Синтаксис

troff [-a] [-f] [-Fdir] [-i] [-mname] [-nN] [-olist] [-raN] [-sN] [-Tdest] [-uN] [-z] [-q] [filename]

-aSend an ASCII approximation of formatted output to standard output. (Note: a rough ASCII version can also be printed out on ordinary terminals with an old and rarely used command, /usr/bin/ta.)
-fDo not print a trailer after the final page of output or cause the postprocessor to relinquish control of the device.
-FdirSearch directory dir for font width or terminal tables instead of the system default directory.
-iRead standard input after all input files are exhausted.
-mnamePrepend the macro file /usr/share/lib/tmac/name to the input filenames. Note: most references to macro packages include the leading m as part of the name; for example, the man macros reside in /usr/share/lib/tmac/an. The macro directory can be changed by setting the TROFFMACS environment variable to a specific path. Be certain to include the trailing '/' (slash) at the end of the path.
-nNNumber the first generated page N.
-olistPrint only pages whose page numbers appear in the comma-separated list of numbers and ranges. A range N-M means pages N through M; an initial -N means from the beginning to page N; and a final N- means from N to the end.
-raNSet register a (one-character names only) to N.
-sNStop the phototypesetter every N pages. On some devices, troff produces a trailer so you can change cassettes; resume by pressing the typesetter's start button.
-TdestPrepare output for typesetter dest. The following values can be supplied for dest:

post - A PostScript printer; this is the default value. The output of the -T option must go through dpost before it is sent to a PostScript printer to obtain the proper output.

aps - Autologic APS-5.

-uNSet the emboldening factor for the font mounted in position 3 to N. If N is missing, then set the emboldening factor to 0.
-zSuppress formatted output. Only diagnostic messages and messages output using the .tm request are output.
-qQuiet mode in nroff ; ignored in troff .
filenameThe file containing text to be processed by troff.

Примеры

troff myfile - would run troff through the file myfile.

Обратно к списку команд