Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

Linux / Unix troff command

Quick links

About troff
Syntax
Examples
Related commands
Linux / Unix main page

About troff

Typeset or format documents.

Syntax

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

-a Send 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.)
-f Do not print a trailer after the final page of output or cause the postprocessor to relinquish control of the device.
-Fdir Search directory dir for font width or terminal tables instead of the system default directory.
-i Read standard input after all input files are exhausted.
-mname Prepend 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.
-nN Number the first generated page N.
-olist Print 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.
-raN Set register a (one-character names only) to N.
-sN Stop 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.
-Tdest Prepare 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.

-uN Set the emboldening factor for the font mounted in position 3 to N. If N is missing, then set the emboldening factor to 0.
-z Suppress formatted output. Only diagnostic messages and messages output using the .tm request are output.
-q Quiet mode in nroff ; ignored in troff .
filename The file containing text to be processed by troff.

Examples

troff myfile - would run troff through the file myfile.

Related commands

checknr
col
dpost
eqn
lp
man
nroff
tbl

Index

Category:
Linux / Unix

Companies:
Click here

Related Pages:

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope