.\" -*- nroff -*- .\" define a string tx for the TeX logo .ie t .ds tx T\h'-.1667m'\v'.224m'E\v'-.224m'\h'-.125m'X .el .ds tx TeX .de TQ .br .ns .TP \\$1 .. .\" Like TP, but if specified indent is more than half .\" the current line-length - indent, use the default indent. .de Tp .ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP .el .TP "\\$1" .. .\" The BSD man macros can't handle " in arguments to font change macros, .\" so use \(ts instead of ". .tr \(ts" .TH TROFF 1 "1 April 1993" "Groff Version 1.08" .SH NAME troff \- format documents .SH SYNOPSIS .nr a \n(.j .ad l .nr i \n(.i .in +\w'\fBtroff 'u .ti \niu .B troff .de OP .ie \\n(.$-1 .RI "[\ \fB\\$1\fP" "\\$2" "\ ]" .el .RB "[\ " "\\$1" "\ ]" .. .OP \-abivzCER .OP \-w name .OP \-W name .OP \-d cs .OP \-f fam .OP \-m name .OP \-n num .OP \-o list .OP \-r cn .OP \-T name .OP \-F dir .OP \-M dir .RI "[\ " files\|.\|.\|. "\ ]" .br .ad \na .SH DESCRIPTION This manual page describes the GNU version of .BR troff , which is part of the groff document formatting system. It is highly compatible with Unix troff. Usually it should be invoked using the groff command, which will also run preprocessors and postprocessors in the appropriate order and with the appropriate options. .SH OPTIONS .TP \w'\-dname=s'u+2n .B \-a Generate an .SM ASCII approximation of the typeset output. .TP .B \-b Print a backtrace with each warning or error message. This backtrace should help track down the cause of the error. The line numbers given in the backtrace may not always correct: troff's idea of line numbers gets confused by .B as or .B am requests. .TP .B \-i Read the standard input after all the named input files have been processed. .TP .B \-v Print the version number. .TP .BI \-w name Enable warning .IR name . Available warnings are described in the Warnings subsection below. Multiple .B \-w options are allowed. .TP .BI \-W name Inhibit warning .IR name . Multiple .B \-W options are allowed. .TP .B \-E Inhibit all error messages. .TP .B \-z Suppress formatted output. .TP .B \-C Enable compatibility mode. .TP .BI \-d cs .TQ .BI \-d name = s Define .I c or .I name to be a string .IR s ; .I c must be a one letter name. .TP .BI \-f fam Use .I fam as the default font family. .TP .BI \-m name Read in the file .BI tmac. name\fR. Normally this will be searched for in /usr/share/tmac. .TP .B \-R Don't load .BR troffrc . .TP .BI \-n num Number the first page .IR num . .TP .BI \-o list Output only pages in .IR list , which is a comma-separated list of page ranges; .I n means print page .IR n , .IB m \- n means print every page between .I m and .IR n , .BI \- n means print every page up to .IR n , .IB n \- means print every page from .IR n . .TP .BI \-r cn .TQ .BI \-r name = n Set number register .I c or .I name to .IR n ; .I c must be a one character name; .I n can be any troff numeric expression. .TP .BI \-T name Prepare output for device .IR name , rather than the default .BR ps . .TP .BI \-F dir Search .I dir for subdirectories .BI dev name .RI ( name is the name of the device) for the .B DESC file and font files before the normal .BR /usr/share/groff_font . .TP .BI \-M dir Search directory .I dir for macro files before the normal .BR /usr/share/tmac . .SH USAGE Only the features not in Unix troff are described here. .SS Long names The names of number registers, fonts, strings/macros/diversions, special characters can be of any length. In escape sequences, where you can use .BI ( xx for a two character name, you can use .BI [ xxx ] for a name of arbitrary length: .TP .BI \e[ xxx ] Print the special character called .IR xxx . .TP .BI \ef[ xxx ] Set font .IR xxx . .TP .BI \e*[ xxx ] Interpolate string .IR xxx . .TP .BI \en[ xxx ] Interpolate number register .IR xxx . .SS Fractional pointsizes A .I scaled point is equal to 1/sizescale points, where sizescale is specified in the .B DESC file (1 by default.) There is a new scale indicator .B z which has the effect of multiplying by sizescale. Requests and escape sequences in troff interpret arguments that represent a pointsize as being in units of scaled points, but they evaluate each such argument using a default scale indicator of .BR z . Arguments treated in this way are the argument to the .B ps request, the third argument to the .B cs request, the second and fourth arguments to the .B tkf request, the argument to the .B \eH escape sequence, and those variants of the .B \es escape sequence that take a numeric expression as their argument. .LP For example, suppose sizescale is 1000; then a scaled point will be equivalent to a millipoint; the request .B .ps 10.25 is equivalent to .B .ps 10.25z and so sets the pointsize to 10250 scaled points, which is equal to 10.25 points. .LP The number register .B \en(.s returns the pointsize in points as decimal fraction. There is also a new number register .B \en[.ps] that returns the pointsize in scaled points. .LP It would make no sense to use the .B z scale indicator in a numeric expression whose default scale indicator was neither .B u nor .BR z , and so .B troff disallows this. Similarily it would make no sense to use a scaling indicator other than .B z or .B u in a numeric expression whose default scale indicator was .BR z , and so .B troff disallows this as well. .LP There is also new scale indicator .B s which multiplies by the number of units in a scaled point. So, for example, .B \en[.ps]s is equal to .BR 1m . Be sure not to confuse the .B s and .B z scale indicators. .SS Numeric expressions .LP Spaces are permitted in a number expression within parentheses. .LP .B M indicates a scale of 100ths of an em. .TP .IB e1 >? e2 The maximum of .I e1 and .IR e2 . .TP .IB e1