'\" e .TH groff_diff 7 "13 September 2023" "groff 1.23.0" .SH Name groff_diff \- differences between GNU .I roff and AT&T .I troff . . .\" ==================================================================== .\" Legal Terms .\" ==================================================================== .\" .\" Copyright (C) 1989-2023 Free Software Foundation, Inc. .\" .\" This file is part of groff, the GNU roff type-setting system. .\" .\" Permission is granted to copy, distribute and/or modify this .\" document under the terms of the GNU Free Documentation License, .\" Version 1.3 or any later version published by the Free Software .\" Foundation; with no Invariant Sections, with no Front-Cover Texts, .\" and with no Back-Cover Texts. .\" .\" A copy of the Free Documentation License is included as a file .\" called FDL in the main directory of the groff source package. . . .\" Save and disable compatibility mode (for, e.g., Solaris 10/11). .do nr *groff_groff_diff_7_man_C \n[.cp] .cp 0 . .\" Define fallback for groff 1.23's MR macro if the system lacks it. .nr do-fallback 0 .if !\n(.f .nr do-fallback 1 \" mandoc .if \n(.g .if !d MR .nr do-fallback 1 \" older groff .if !\n(.g .nr do-fallback 1 \" non-groff *roff .if \n[do-fallback] \{\ . de MR . ie \\n(.$=1 \ . I \%\\$1 . el \ . IR \%\\$1 (\\$2)\\$3 . . .\} .rr do-fallback . . .\" ==================================================================== .\" Local definitions .\" ==================================================================== . .\" 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 . . .\" from old groff_out.man .ie \n(.g \ . ds ic \/ .el \ . ds ic \^ . . .\" ==================================================================== .SH Description .\" ==================================================================== . The GNU .I roff text processing system, .IR groff , is an extension of AT&T .IR troff , \" AT&T the typesetting system originating in Unix systems of the 1970s. . .I groff removes many arbitrary limitations and adds features, both to the input language and to the page description language output by the .I troff \" generic formatter. . Differences arising from .IR groff 's implementation of AT&T .I troff \" AT&T features are also noted. . See .MR roff 7 for background. . . .\" ==================================================================== .SH Language .\" ==================================================================== . GNU .I troff \" GNU features identifiers of arbitrary length; supports color output, non-integral type sizes, and user-defined characters; adds more conditional expression operators; recognizes additional scaling units and numeric operators; enables general file I/O (in \[lq]unsafe mode\[rq] only); and exposes more formatter state. . . .\" ==================================================================== .SS "Long names" .\" ==================================================================== . GNU .I troff \" GNU introduces many new requests; with three exceptions .RB ( cp , .BR do , .BR rj ), they have names longer than two characters. . The names of registers, fonts, strings/\:macros/\:diversions, environments, special characters, streams, and colors can be of any length. . Anywhere AT&T .I troff \" AT&T supports a parameterized escape sequence that uses an opening parenthesis \[lq](\[rq] to introduce a two-character argument, .I groff supports a square-bracketed form \[lq][]\[rq] where the argument within can be of arbitrary length. . . .\" ==================================================================== .SS "Font families, abstract styles, and translation" .\" ==================================================================== . GNU .I troff \" GNU can group text typefaces into .I families containing each of the styles .RB \[lq] R \[rq], .RB \[lq] I \[rq], .RB \[lq] B \[rq], and .RB \[lq] BI \[rq]. . So that a document need not be coupled to a specific font family, an output device can associate a style in the abstract sense with a mounting position. . Thus the default family can be combined with a style dynamically, producing a .I "resolved font name." . A document can .I translate, or remap, fonts with the .B ftr request. . . .P Applying the requests .BR cs , .BR bd , .BR tkf , .BR uf , or .B \%fspecial to an abstract style affects the member of the default family corresponding to that style. . The default family can be set with the .B fam request or .B \-f command-line option. . The .B styles directive in the output device's .I DESC file controls which mounting positions (if any) are initially associated with abstract styles rather than fonts, and the .B sty request can update this association. . . .\" ==================================================================== .SS Colors .\" ==================================================================== . .I groff supports color output with a variety of color spaces and up to 16 bits per channel. . Some devices, particularly terminals, may be more limited. . When color support is enabled, two colors are current at any given time: the .I stroke color, with which glyphs, rules (lines), and geometric figures are drawn, and the .I fill color, which paints the interior of filled geometric figures. . The .BR color , .BR \%defcolor , .BR gcolor , and .B fcolor requests; .B \[rs]m and .B \[rs]M escape sequences; and .BR .color , .BR .m , and .B .M registers exercise color support. . . .\" ==================================================================== .SS "Fractional type sizes and new scaling units" .\" ==================================================================== . .\" BEGIN Keep (roughly) parallel with groff.texi node "Using Fractional .\" Type Sizes". AT&T .I troff \" AT&T interpreted all type size measurements in points. . Combined with integer arithmetic, this design choice made it impossible to support, for instance, ten and a half-point type. . In GNU .IR troff , \" GNU an output device can select a scaling factor that subdivides a point into \[lq]scaled points\[rq]. . A type size expressed in scaled points can thus represent a non-integral type size. . . .P A .I scaled point is equal to .RI 1/ sizescale points, where .I sizescale is specified in the device description file, .IR DESC , and defaults to\~1; see .MR groff_font 5 . . Requests and escape sequences in GNU .I troff \" GNU interpret arguments that represent a type size in points, which the formatter multiplies by .I sizescale and converts to an integer. . Arguments treated in this way comprise those to the escape sequences .B \[rs]H and .BR \[rs]s , to the request .BR ps , the third argument to the .B cs request, and the second and fourth arguments to the .B tkf request. . Scaled points may be specified explicitly with the .B z scaling unit. . In GNU .IR troff , \" GNU the register .B \[rs]n[.s] can interpolate a non-integral type size. . The register .B \[rs]n[.ps] interpolates the type size in scaled points. . . .P For example, if .I sizescale is\~1000, then a scaled point is one thousandth of a point. . Consequently, .RB \[lq] ".ps 10.5" \[rq] is synonymous with .RB \[lq] ".ps 10.5z" \[rq]; both set the type size to 10,500\~scaled points, or 10.5\~points. . . .P It makes no sense to use the .RB \[lq] z \[rq]\~scaling unit in a numeric expression whose default scaling unit is neither .RB \[lq] u \[rq] .RB nor\~\[lq] z \[rq], so GNU .I troff \" GNU disallows this. . Similarly, it is nonsensical to use a scaling unit other .RB than\~\[lq] z \[rq] .RB or\~\[lq] u \[rq] in a numeric expression whose default scaling unit .RB is\~\[lq] z \[rq], so GNU .I troff disallows this as well. . . .br .ne 2v .P Another new scaling unit, .RB \[lq] s \[rq], multiplies by the number of basic units in a scaled point. . Thus, .RB \[lq]\^ \[rs]n[.ps]s \[rq] is equal to .RB \[lq] 1m \[rq] by definition. . Do not confuse the .RB \[lq] s \[rq] and .RB \[lq] z \[rq] scaling units. . . .br .ne 2v .P Output devices may be limited in the type sizes they can employ. . The .B .s and .B .ps registers represent the type size as selected by the output driver as it understands a device's capability. . The last .I requested type size is interpolated in scaled points by the read-only register .B .psr and in points as a decimal fraction by the read-only string-valued register .BR .sr . . Both are associated with the environment. . For example, if a type size of 10.95\~points is requested, and the nearest size permitted by a .B sizes request (or by the .B sizes or .B \%sizescale directives in the device's .I DESC file) is 11\~points, the output driver uses the latter value. .\" END Keep (roughly) parallel with groff.texi node "Using Fractional .\" Type Sizes". . . .P A further two new measurement units available in .I groff are .RB \[lq] M \[rq], which indicates hundredths of an em, and .RB \[lq] f \^\[rq], which multiplies by 65,536. . The latter provides convenient fractions for color definitions with the .B \%defcolor request. . For example, 0.5f equals 32768u. . . .\" ==================================================================== .SS "Numeric expressions" .\" ==================================================================== . GNU .I troff \" GNU permits spaces in a numeric expression within parentheses, and offers three new operators. . . .TP .IB e1 >? e2 Interpolate the greater of .I e1 and .IR e2 . . . .TP .IB e1 } \&.class [prepunctx] \[rs]C\[aq][prepunct]\[aq] \ \[rs][u2013]\-\[rs][u2016] .EE .RE The class .RB \[lq] [prepunctx] \[rq] thus contains the contents of the class .RB \[lq] [prepunct] \[rq] and characters in the range U+2013\[en]U+2016. .RE . . .IP If you want to include .RB \[lq] \- \[rq] in a class, it must be the first character value in the argument list, otherwise it gets misinterpreted as part of the range syntax. . . .IP It is not possible to use class names as end points of range definitions. . . .IP A typical use of the .B class request is to control line-breaking and hyphenation rules as defined by the .B cflags request. . For example, to inhibit line breaks before the characters belonging to the .RB \[lq] [prepunctx] \[rq] class defined in the previous example, you can write the following. . .RS .RS .EX \&.cflags 2 \[rs]C\[aq][prepunctx]\[aq] .EE .RE .RE . . .TP .BI .close\~ stream Close the stream named .IR stream , invalidating it as an argument to the .B write request. . See .BR open . . . .TP .BI .composite\~ c1\~c2 Map character name .I c1 to character name .I c2 when .I c1 is a combining component in a composite glyph. . Typically, this remaps a spacing glyph to a combining one. . . .TP .B .continue Skip the remainder of a .RB \[lq] while \[rq] loop's body, immediately starting the next iteration. . See .BR break . . . .TP .BI .color\~ n If .I n is non-zero or missing, enable colors (the default), otherwise disable them. . . .TP .BI .cp\~ n If .I n is non-zero or missing, enable compatibility mode, otherwise disable it. . In compatibility mode, long names are not recognized, and the incompatibilities they cause do not arise. . . .TP .BI .defcolor\~ "ident scheme color-component\~\c" \&.\|.\|. Define a color named .I ident. . .I scheme identifies a color space and determines the number of required .IR color-component s; it must be one of .RB \[lq] rgb \[rq] (three components), .RB \[lq] cmy \[rq] (three components), .RB \[lq] cmyk \[rq] (four components), or .RB \[lq] gray \[rq] (one component). . .RB \[lq] grey \[rq] is accepted as a synonym of .RB \[lq] gray \[rq]. . The color components can be encoded as a hexadecimal value starting with .B # or .BR ## . . The former indicates that each component is in the range 0\[en]255 (0\[en]FF), the latter the range 0\[en]65535 (0\[en]FFFF). . Alternatively, each color component can be specified as a decimal fraction in the range 0\[en]1, interpreted using a default scaling unit .RB of\~\[lq] f \[rq], which multiplies its value by 65,536 (but clamps it at 65,535). . . .IP Each output device has a color named .RB \[lq] default \[rq], which cannot be redefined. . A device's default stroke and fill colors are not necessarily the same. . . .TP .BI .de1\~ name\~\c .RI [ end-name ] Define a macro to be interpreted with compatibility mode disabled. . When .I name is called, compatibility mode enablement status is saved; it is restored when the call completes. . . .TP .BI .dei\~ name\~\c .RI [ end-name ] Define macro indirectly, with the name of the macro to be defined in string .I name and the name of the end macro terminating its definition in string .IR end-name . . . .TP .BI .dei1\~ name\~\c .RI [ end-name ] As .BR dei , but compatibility mode is disabled while the definition of the macro named in string .I name is interpreted. . . .TP .BI .device\~ anything Write .IR anything , read in copy mode, to .I \%troff output as a device control command. . An initial neutral double quote is stripped to allow the embedding of leading spaces. . . .TP .BI .devicem\~ name Write contents of macro or string .I name to .I \%troff output as a device control command. . . .TP .BI .do\~ name\~\c .RI [ arg \~.\|.\|.] Interpret the string, request, diversion, or macro .I name (along with any arguments) with compatibility mode disabled. . Compatibility mode is restored (only if it was active) when the .I expansion of .I name is interpreted; that is, the restored compatibility state applies to the contents of the macro, string, or diversion .I name as well as data read from files or pipes if .I name is any of the .BR so , .BR soquiet , .BR mso , .BR msoquiet , or .B pso requests. . . .IP For example, .RS .RS \" one "extra" RS to get us inboard of this indented paragraph .EX \&.de mac1 FOO \&.. \&.de1 mac2 groff \&.mac1 \&.. \&.de mac3 compatibility \&.mac1 \&.. \&.de ma \[rs]\[rs]$1 \&.. \&.cp 1 \&.do mac1 \&.do mac2 \[rs]" mac2, defined with .de1, calls "mac1" \&.do mac3 \[rs]" mac3 calls "ma" with argument "c1" \&.do mac3 \[rs][ti] \[rs]" groff syntax accepted in .do arguments .EE .RE results in .RS .EX FOO groff FOO compatibility c1 \[ti] .EE .RE as output. .RE \" this "extra" RE avoids indentation of the remaining paragraphs . . .TP .BI .ds1\~ "name contents" As .BR ds , but compatibility mode is disabled while .I name is interpreted: a \[lq]compatibility save\[rq] token is inserted at the beginning of .IR contents , and a \[lq]compatibility restore\[rq] token after it. . . .TP .B .ecr Restore the escape character saved with .BR ecs , or set escape character to .RB \[lq]\| \[rs] \[rq] if none has been saved. . . .TP .B .ecs Save the current escape character. . . .TP .BI .evc\~ env Copy the properties of environment .I env to the current environment, except for the following data. . . .RS .IP \[bu] 2n a partially collected line, if present; . . .IP \[bu] the interruption status of the previous input line (due to use of the .B \[rs]c escape sequence); . . .IP \[bu] the count of remaining lines to center, to right-justify, or to underline (with or without underlined spaces)\[em]these are set to zero; . . .IP \[bu] the activation status of temporary indentation; . . .IP \[bu] input traps and their associated data; . . .IP \[bu] the activation status of line numbering (which can be reactivated with .RB \[lq] .nm\~+0 \[rq]); and . . .IP \[bu] the count of consecutive hyphenated lines (set to zero). .RE . . .TP .BR .fam\~ [\c .IR family ] Set default font family to .IR family . . If no argument is given, the previous font family is selected, or the formatter's default family if there is none. . The formatter's default font family is \[lq]T\[rq] (Times), but it can be overridden by the output device\[em]see .MR groff_font 5 . . The default font family is associated with the environment. . See .BR \[rs]F . . . .TP .BI .fchar\~ c\~contents Define fallback .RI character\~ c as .IR contents . . The syntax of this request is the same as the .B char request; the difference is that a character defined with .B char hides a glyph with the same name in the selected font, whereas characters defined with .B fchar are checked only if .I c isn't found in the selected font. . This test happens before special fonts are searched. . . .TP .BI .fcolor\~ color Set the fill color to .IR color . . Without an argument, the previous fill color is selected. . . .TP .BI .fschar\~ f\~c\~contents Define fallback special .RI character\~ c for font\~\c .I f as .IR contents . . A character defined by .B fschar is located after the list of fonts declared with .B \%fspecial is searched but before those declared with the .RB \%\[lq] special \[rq] request. . .TP .BI .fspecial\~ "f s1 s2\~"\c \&.\|.\|. When .RI font\~ f is selected, fonts .IR s1 , .IR s2 , \&.\|.\|.\& are treated as special; that is, they are searched for glyphs not found in .IR f . . Any fonts specified in the .RB \%\[lq] special \[rq] request are searched after .IR s1 , .IR s2 , and so on. . Without .I s arguments, .B \%fspecial clears the list of fonts treated as special when .I f is selected. . . .TP .BI .ftr\~ f\~g Translate .RI font\~ f .RI to\~ g . . Whenever a font .RI named\~ f is referred to in an .B \[rs]f escape sequence, in the .B F and .B S conditional expression operators, or in the .BR ft , .BR ul , .BR bd , .BR cs , .BR tkf , .BR \%special , .BR \%fspecial , .BR fp , or .B sty requests, .RI font\~ g is used. If .I g is missing or identical .RI to\~ f , then .RI font\~ f is not translated. . . .TP .BI .fzoom\~ f\~zoom Set zoom factor .I zoom for font\~\c .IR f . .I zoom must a non-negative integer multiple of 1/1000th. . If it is missing or is equal to zero, it means the same as 1000, namely no magnification. . .IR f \~\c must be a resolved font name, not an abstract style. .\" XXX: What about a mounting position? It's not rejected... . . .TP .BI .gcolor\~ color Set the stroke color to .IR color . . Without an argument, the previous stroke color is selected. . . .TP .BI .hcode\~ "c1 code1\~"\c .RI [ "c2 code2" "] .\|.\|." Set the hyphenation code of character .I c1 to .IR code1 , that of .I c2 to .IR code2 , and so on. . A hyphenation code must be an ordinary character (not a special character escape sequence) other than a digit. . The request is ignored if given no arguments. . . .IP For hyphenation to work, hyphenation codes must be set up. . At startup, .I groff assigns hyphenation codes to the letters \[lq]a\[en]z\[rq] (mapped to themselves), to the letters \[lq]A\[en]Z\[rq] (mapped to \[lq]a\[en]z\[rq]), and zero to all other characters. . Normally, hyphenation patterns contain only lowercase letters which should be applied regardless of case. . In other words, they assume that the words \[lq]ABBOT\[rq] and \[lq]Abbot\[rq] should be hyphenated exactly as \[lq]abbot\[rq] is. . .B hcode extends this principle to letters outside the Unicode basic Latin alphabet; without it, words containing such letters won't be hyphenated properly even if the corresponding hyphenation patterns contain them. . . .TP .BI .hla\~ lang Set the hyphenation language to .IR lang . . Hyphenation exceptions specified with the .B hw request and hyphenation patterns and exceptions specified with the .B hpf and .B hpfa requests are associated with the hyphenation language. . The .B hla request is usually invoked by a localization file, which is in turn loaded by the .I troffrc or .I troffrc\-end file; see the .B hpf request below. . The hyphenation language is associated with the environment. . . .TP .BR .hlm\~ [\c .IR n ] Set the maximum number of consecutive hyphenated lines .RI to\~ n . . If .I n is negative, there is no maximum. . If omitted, .I n is\~\-1. . This value is associated with the environment. . Only lines output from a given environment count towards the maximum associated with that environment. . Hyphens resulting from .B \[rs]% are counted; explicit hyphens are not. . . .TP .BI .hpf\~ pattern-file Read hyphenation patterns from .IR pattern-file . . This file is sought in the same way that macro files are with the .B mso request or the .BI \-m name command-line option to .MR groff 1 and .MR \%troff 1 . . . .IP The .I pattern-file should have the same format as (simple) \*[tx] pattern files. . The following scanning rules are implemented. . . .RS .IP \[bu] 2n A percent sign starts a comment (up to the end of the line) even if preceded by a backslash. . . .IP \[bu] \[lq]Digraphs\[rq] like .B \[rs]$ are not supported. . . .IP \[bu] .RB \[lq] \[ha]\[ha]\c .IR xx \[rq] (where each .I x is 0\[en]9 or a\[en]f) and .BI \[ha]\[ha] c .RI (character\~ c in the code point range 0\[en]127 decimal) are recognized; other uses .RB of\~ \[ha] cause an error. . . .IP \[bu] No macro expansion is performed. . . .IP \[bu] .B hpf checks for the expression .BR \[rs]patterns{ .\|.\|. } (possibly with whitespace before or after the braces). . Everything between the braces is taken as hyphenation patterns. . Consequently, .RB \[lq] { \[rq] and .RB \[lq] } \[rq] are not allowed in patterns. . . .IP \[bu] Similarly, .BR \[rs]hyphenation{ .\|.\|. } gives a list of hyphenation exceptions. . . .IP \[bu] .B \[rs]endinput is recognized also. . . .IP \[bu] For backwards compatibility, if .B \[rs]patterns is missing, the whole file is treated as a list of hyphenation patterns (but the .RB \[lq] % \[rq] character is still recognized as the start of a comment). .RE . . .IP Use the .B hpfcode request (see below) to map the encoding used in hyphenation pattern files to .IR groff 's input encoding. . . .IP The set of hyphenation patterns is associated with the hyphenation language set by the .B hla request. . The .B hpf request is usually invoked by a localization file loaded by the .I troffrc file. . By default, .I troffrc loads the localization file for English. . (As of .I groff 1.23.0, localization files for Czech .RI ( cs ), German .RI ( de ), English .RI ( en ), French .RI ( fr ), Japanese .RI ( ja ), Swedish .RI ( sv ), and Chinese .RI ( zh ) exist.) . For Western languages, the localization file sets the hyphenation mode and loads hyphenation patterns and exceptions. . . .IP A second call to .B hpf (for the same language) replaces the old patterns with the new ones. . . .IP Invoking .B hpf causes an error if there is no hyphenation language. . . .IP If no .B hpf request is specified (either in the document, in a file loaded at startup, or in a macro package), GNU .I troff \" GNU won't automatically hyphenate at all. . . .TP .BI .hpfa\~ pattern-file As .BR hpf , except that the hyphenation patterns and exceptions from .I pattern-file are appended to the patterns already applied to the hyphenation language of the environment. . . .TP .BI .hpfcode\~ "a b"\c .RI \~[ "c d" "] .\|.\|." Define mapping values for character codes in pattern files. . This is an older mechanism no longer used by .IR groff 's own macro files; for its successor, see .B hcode above. . .B hpf or .B hpfa apply the mapping after reading or appending to the active list of patterns. . Its arguments are pairs of character codes\[em]integers from 0 to\~255. . The request maps character .RI code\~ a to .RI code\~ b , .RI code\~ c to .RI code\~ d , and so on. . Character codes that would otherwise be invalid in .I groff can be used. . By default, every code maps to itself except those for letters \[lq]A\[rq] to \[lq]Z\[rq], which map to those for \[lq]a\[rq] to \[lq]z\[rq]. . . .TP .BR .hym\~ [\c .IR length ] Set the (right) hyphenation margin .RI to\~ length . . If the adjustment mode is not .RB \[lq] b \[rq] or .RB \[lq] n \[rq], the line is not hyphenated if it is shorter than .IR length . . Without an argument, the default hyphenation margin is reset to its default value, 0. . The default scaling unit .RB is\~\[lq] m \[rq]. . The hyphenation margin is associated with the environment. . A negative argument resets the hyphenation margin to zero, emitting a warning in category .RB \[lq] range \[rq]. . . .TP .BR .hys\~ [\c .IR hyphenation-space ] Suppress hyphenation of the line in adjustment modes .RB \[lq] b \[rq] or .RB \[lq] n \[rq], if it can be justified by adding no more than .I hyphenation-space extra space to each inter-word space. . Without an argument, the hyphenation space adjustment threshold is set to its default value, 0. . The default scaling unit .RB is\~\[lq] m \[rq]. . The hyphenation space adjustment threshold is associated with the current environment. . A negative argument resets the hyphenation space adjustment threshold to zero, emitting a warning in category .RB \[lq] range \[rq]. . . .TP .BI .itc\~ n\~name As .RB \[lq] it \[rq], but lines interrupted with the .B \[rs]c escape sequence are not applied to the line count. . . .TP .BI .kern\~ n If .I n is non-zero or missing, enable pairwise kerning (the default), otherwise disable it. . . .TP .BI .length\~ "reg anything" Compute the number of characters in .I anything and return the count in the register .IR reg . . If .I reg doesn't exist, it is created. . .I anything is read in copy mode. . . .RS .IP .EX .B .ds xxx abcd\eh\[aq]3i\[aq]efgh .B .length yyy \e*[xxx] .B \en[yyy] 14 .EE .RE . . .TP .BI .linetabs\~ n .RS If .I n is non-zero or missing, enable line-tabs mode, otherwise disable it (the default). . In this mode, tab stops are computed relative to the start of the pending output line, instead of the drawing position corresponding to the start of the input line. . Line-tabs mode is a property of the environment. . . .P For example, the following . . .RS .P .ne 6v+\n(.Vu .EX \&.ds x a\[rs]t\[rs]c \&.ds y b\[rs]t\[rs]c \&.ds z c \&.ta 1i 3i \&\[rs]*x \&\[rs]*y \&\[rs]*z .EE .RE . yields . .RS .EX a b c .EE .RE . whereas in line-tabs mode, the same input gives . .RS .EX a b c .EE .RE . instead. .RE . . .TP .BR .lsm\~ [\c .IR name ] Set the leading space macro (trap) to .IR name . . If there are leading space characters on an input line, .I name is invoked in lieu of the usual .I roff behavior; the leading spaces are removed. . The count of leading spaces on an input line is stored in .BR \[rs]n[lsn] , and the amount of corresponding horizontal motion in .BR \[rs]n[lss] , irrespective of whether a leading space trap is set. . When it is, the leading spaces are removed from the input line, and no motion is produced before calling .IR name . . If no argument is supplied, the default leading space behavior is (re-)established. . . .TP .BI .mso\~ file As .RB \[lq] so \[rq], except that .I file is sought in the same directories as arguments to the .MR groff 1 and .MR \%troff 1 .B \-m command-line option are (the \[lq]tmac path\[rq]). . If the file name to be interpolated has the form .IB name .tmac and it isn't found, .B mso tries to include .BI tmac. name instead and vice versa. . If .I file does not exist, a warning in category .RB \[lq] file \[rq] is emitted and the request has no other effect. . . .TP .BI .msoquiet\~ file As .BR mso , but no warning is emitted if .I file does not exist. . . .TP .BI .nop \~anything Interpret .I anything as if it were an input line. . .B nop resembles .RB \[lq] ".if 1" \[rq]; it puts a break on the output if .I anything is empty. . Unlike .RB \[lq]\| if \|\[rq], it cannot govern conditional blocks. . Its application is to maintain consistent indentation within macro definitions even when producing text lines. . . .TP .B .nroff Make the .B n conditional expression evaluate true and .B t false. . See .BR troff . . . .TP .BI .open\~ "stream file" Open .I file for writing and associate .I stream with it. . See .B write and .BR close . . . .TP .BI .opena\~ "stream file" As .BR open , but if .I file exists, append to it instead of truncating it. . . .TP .BI .output\~ contents Emit .IR contents , which are read in copy mode, to the formatter output; this is similar to .B \[rs]!\& used in the top-level diversion. . An initial neutral double quote in .I contents is stripped to allow the embedding of leading spaces. .\" XXX: useless request warning if no argument? . . .TP .B .pev Report the state of the current environment followed by that of all other environments to the standard error stream. . . .TP .B .pnr Write the names and values of all currently defined registers to the standard error stream. . . .TP .BI .psbb \~file Get the bounding box of a PostScript image .IR file . . This file must conform to Adobe's Document Structuring Conventions; the request attempts to extract the bounding box values from a .B \%%%BoundingBox comment. . After invocation, the .I x and .I y coordinates (in PostScript units) of the lower left and upper right corners can be found in the registers .BR \[rs]n[llx] , .BR \[rs]n[lly] , .BR \[rs]n[urx] , and .BR \[rs]n[ury] , respectively. . If an error occurs, these four registers are set to zero. . . .TP .BI .pso \~command As .RB \[lq] so \[rq], except that input comes from the standard output stream of .IR command . . . .TP .B .ptr Report the names and vertical positions of all page location traps to the standard error stream. . Empty slots in the list are shown as well, because they can affect the visibility of subsequently planted traps. . . .TP .BI .pvs \~\[+-]n Set the post-vertical line spacing .RI to\~ n ; default scaling unit .RB is\~\[lq] p \[rq]. . With no argument, the post-vertical line space is set to its previous value. . . .IP In GNU .IR troff , \" GNU the distance between text baselines consists of the extra pre-vertical line spacing set by the most negative .B \[rs]x argument on the pending output line, the vertical spacing .RB ( vs ), the extra post-vertical line spacing set by the most positive .B \[rs]x argument on the pending output line, and the post-vertical line spacing set by this request. . . .TP .BI .rchar\~ c\~\c \&.\|.\|. Remove definition of each ordinary or special character .IR c , undoing the effect of a .BR char , .BR fchar , or .B schar request. . Glyphs, which are defined by font description files, cannot be removed. . Spaces and tabs may separate .I c arguments. . . .TP .B .return Within a macro, return immediately. . If called with an argument, return twice, namely from the current macro and from the macro one level higher. . No effect otherwise. .\" XXX: useless request warning? . . .TP .BI .rfschar\~ "f c\~"\c \&.\|.\|. Remove each fallback special .RI character\~ c for font .IR f . . Spaces and tabs may separate .I c arguments. . See .BR fschar . . . .TP .BR .rj\~ [\c .IR n ] Right-align the .RI next\~ n input lines. . Without an argument, right-align the next input line. . .B rj implies .RB \[lq] ".ce 0" \[rq], and .B ce implies .RB \[lq] ".rj 0" \[rq]. . . .TP .BI .rnn \~r1\~r2 Rename register .I r1 to .IR r2 . . If .I r1 doesn't exist, the request is ignored. . . .TP .BI .schar\~ c\~contents Define global fallback character .I c as .IR contents . . See .BR char ; the distinction is that a character defined with .B schar is located after the list of fonts declared with the .B \%special request but before any mounted special fonts. . . .TP .BR .shc \~\c .RI [ c ] Set the soft hyphen character, inserted when a word is hyphenated automatically or at a hyphenation character, .RI to\~ c . . If .I c is omitted, the soft hyphen character is set to the default, .BR \[rs][hy] . . If the selected glyph does not exist in the font in use at a potential hyphenation point, then the line is not broken at that point. . Neither character definitions .RB ( char and similar) nor translations .RB ( tr and similar) are considered when assigning the soft hyphen character. . . .TP .BI .shift\~ n In a macro, shift the arguments by .I n positions: .RI argument\~ i becomes argument .IR i \|\-\| n ; arguments 1 .RI to\~ n are no longer available. . .RI If\~ n is missing, arguments are shifted by\~1. . No effect otherwise. .\" XXX: useless request warning? . . .TP .BI .sizes\~ "s1 s2\~"\c .RI .\|.\|.\~ sn\~\c .RB [ 0 ] Set the available type sizes to .IR s1 , .IR s2 , \&.\|.\|.\& .I sn scaled points. . The list of sizes can be terminated by an .RB optional\~\[lq] 0 \[rq]. . Each .I si can also be a range .IR m \(en n . . In contrast to the device description file directive of the same name (see .MR groff_font 5 ), the argument list can't extend over more than one line. . . .TP .BI .soquiet\~ file As .RB \[lq] so \[rq], but no warning is emitted if .I file does not exist. . . .TP .BI .special\~ f\~\c \&.\|.\|. Declare each font .I f as special, searching it for glyphs not found in the selected font. . Without arguments, this list of special fonts is made empty. . . .TP .BR .spreadwarn\~ [\c .IR limit ] Emit a .B break warning if the additional space inserted for each space between words in an output line adjusted to both margins with .RB \[lq] .ad\~b \[rq] is larger than or equal to .IR limit . . A negative value is treated as zero; an absent argument toggles the warning on and off without changing .IR limit . . The default scaling unit is .BR m . . At startup, .B spreadwarn is inactive and .I limit is 3\~m. . . .IP For example, .RB \[lq] ".spreadwarn 0.2m" \[rq] causes a warning if .B break warnings are not suppressed and .I \%troff must add 0.2\~m or more for each inter-word space in a line. . . .TP .BI .stringdown \~str .TQ .BI .stringup \~str Alter the string named .I str by replacing each of its bytes with its lowercase .RB ( down ) or uppercase .RB ( up ) version (if one exists). . Special characters (see .MR groff_char 7 ) will often transform in the expected way due to the regular naming convention for accented characters. . When they do not, use substrings and/or catenation. . . .IP .RS .RS .EX .B .ds resume R\e[\[aq]e]sum\e[\[aq]e]\e" .B \e*[resume] .B .stringdown resume .B \e*[resume] .B .stringup resume .B \e*[resume] R\['e]sum\['e] r\['e]sum\['e] R\['E]SUM\['E] .EE .RE .RE . . .TP .BI .sty\~ n\~s Associate abstract .RI style\~ s with font mounting .RI position\~ n . . . .TP .BI .substring\~ "string start\~"\c .RI [ end ] Replace the string named .I string with its substring bounded by the indices .I start and .IR end , inclusively. . The first character in the string has index\~0. . If .I end is omitted, it is implicitly set to the largest valid value (the string length minus one). . Negative indices count backwards from the end of the string: the last character has index\~\-1, the character before the last has index\~\-2, and so on. . . .RS .IP .EX .B .ds xxx abcdefgh .B .substring xxx 1 \-4 .B \e*[xxx] bcde .B .substring xxx 2 .B \e*[xxx] de .EE .RE . . .TP .BI .tkf\~ f\~s1\~n1\~s2\~n2 Enable track kerning for font\~\c .IR f . When the current font is\~\c .I f the width of every glyph is increased by an amount between .I n1 and .IR n2 ; when the current type size is less than or equal to .I s1 the width is increased by .IR n1 ; when it is greater than or equal to .I s2 the width is increased by .IR n2 ; when the type size is greater than or equal to .I s1 and less than or equal to .I s2 the increase in width is a linear function of the type size. . . .TP .BI .tm1\~ message As .B tm request, but strips a leading neutral double quote from .I message to allow the embedding of leading spaces. . . .TP .BI .tmc\~ message As .B tm1 request, but does not append a newline. . . .TP .BI .trf\~ file Transparently output the contents of file .IR file . . Each line is output as if preceded by .BR \[rs]! ; however, the lines are not subject to copy-mode interpretation. . If the file does not end with a newline, then a newline is added. . Unlike .BR cf , .I file cannot contain characters that are invalid as input to GNU .IR troff . \" GNU . . .IP For example, you can define a macro\~\c .I x containing the contents of file\~\c .IR f , using . . .RS .IP .ne 2v+\n(.Vu .EX \&.di x \&.trf f \&.di .EE .RE . . .TP .BI .trin\~ abcd This is the same as the .B tr request except that the .B asciify request uses the character code (if any) before the character translation. . Example: . . .RS .IP .EX \&.trin ax \&.di xxx \&a \&.br \&.di \&.xxx \&.trin aa \&.asciify xxx \&.xxx .EE .RE . . .IP The result is \[lq]x\~a\[rq]. . Using .BR tr , the result would be \[lq]x\~x\[rq]. . . .TP .BI .trnt\~ abcd This is the same as the .B tr request except that the translations do not apply to text that is transparently throughput into a diversion with .BR \[rs]! . For example, . . .RS .IP .EX \&.tr ab \&.di x \&\[rs]!.tm a \&.di \&.x .EE .RE . . .IP prints\~\c .BR b ; if .B trnt is used instead of .B tr it prints\~\c .BR a . . . .TP .B .troff Make the .B t conditional expression evaluate true and .B n false. . See .BR nroff . . . .TP .BI .unformat\~ div Unformat the diversion .IR div . . Unlike .BR asciify , .B unformat handles only tabs and spaces between words, the latter usually arising from spaces or newlines in the input. . Tabs are treated as input tokens, and spaces become adjustable again. . The vertical sizes of lines are not preserved, but glyph information (font, type size, space width, and so on) is retained. . . .TP .BI .vpt\~ n If .I n is non-zero or missing, enable vertical position traps (the default), otherwise disable them. . Vertical position traps are those set by the .BR ch , .BR wh , and .B dt requests. . . .TP .BR .warn\~ [\c .IR n ] Select the categories, or \[lq]types\[rq], of reported warnings. . .IR n \~is the sum of the numeric codes associated with each warning category that is to be enabled; all other categories are disabled. . The categories and their associated codes are listed in section \[lq]Warnings\[rq] of .MR \%troff 1 . .\" TODO: Maybe move that table to groff(7). . For example, .RB \[lq] ".warn 0" \[rq] disables all warnings, and .RB \[lq] ".warn 1" \[rq] disables all warnings except those about missing glyphs. . If no argument is given, all warning categories are enabled. . . .TP .BI .warnscale\~ si Set the scaling unit used in warnings to .IR si . . Valid values for .I si are .BR u , .B i (the default), .BR c , .BR p , .RB and\~ P . . . .TP .BI .while \~cond-expr\~anything Evaluate the conditional expression .IR cond-expr , and repeatedly execute .I anything unless and until .I cond-expr evaluates false. . .I anything, which is often a conditional block, is referred to as the .B while request's .I body. . . .IP .I \%troff treats the body of a .B while request similarly to that of a .B de request (albeit one not read in copy mode), but stores it under an internal name and deletes it when the loop finishes. . The operation of a macro containing a .B while request can slow significantly if the .B while body is large. . Each time the macro is executed, the .B while body is parsed and stored again. . An often better solution\[em]and one that is more portable, since AT&T .I troff \" AT&T lacked the .B while request\[em]is to instead write a recursive macro. . It will be parsed only once (unless you redefine it). . To prevent infinite loops, the default number of available recursion levels is 1,000 or somewhat less (because things other than macro calls can be on the input stack). . You can disable this protective measure, or raise the limit, by setting the .B slimit register. . See section \[lq]Debugging\[rq] below. . . .IP If a .B while body begins with a conditional block, its closing brace must end an input line. . . .IP The .B break and .B continue requests alter a .B while loop's flow of control. . . .TP .BI .write\~ stream\~anything Write .I anything to .IR stream , which must previously have been the subject of an .B open request, followed by a newline. . .I anything is read in copy mode. . An initial neutral double quote in .I anything is stripped to allow the embedding of leading spaces. . . .TP .BI .writec\~ stream\~anything As .BR write , but without a trailing newline. . . .TP .BI .writem\~ "stream name" Write the contents of the macro or string .I name to .IR stream , which must previously have been the subject of an .B open request. . .I name is read in copy mode. . . .br .ne 6v .\" ==================================================================== .SS "Extended requests" .\" ==================================================================== . .\" XXX: .cf might better belong in "Implementation differences". .TP .BI .cf\~ file In a diversion, embed an object which, when reread, will cause the contents of .I file to be copied verbatim to the output. . In AT&T .IR troff , the contents of .I file are immediately copied to the output regardless of whether a diversion is being written to; this behavior is so anomalous that it must be considered a bug. . . .TP .BI .de\~ name\~\c .RI [ end-name ] .TQ .BI .am\~ name\~\c .RI [ end-name ] .TQ .BI .ds\~ name\~\c .RI [ contents ] .TQ .BI .as\~ name\~\c .RI [ contents ] In compatibility mode, these requests behave similarly to .BR de1 , .BR am1 , .BR ds1 , and .BR as1 , respectively: a \[lq]compatibility save\[rq] token is inserted at the beginning, and a \[lq]compatibility restore\[rq] token at the end, with compatibility mode switched on during execution. . . .TP .BI .hy\~ n New values 16 and\~32 are available; the former enables hyphenation before the last character in a word, and the latter enables hyphenation after the first character in a word. . . .TP .BI .ss\~ word-space-size\~\c .RI [ additional-sentence-space-size ] A second argument sets the amount of additional space separating sentences on the same output line. . If omitted, this amount is set to .IR word-space-size . . Both arguments are in twelfths of current font's space width (typically one-fourth to one-third em for Western scripts; see .MR groff_font 5 ). . The default for both parameters is\~12. . Negative values are erroneous. . . .TP .BR .ta\~ [[\c .IR "n1 n2\~" .\|.\|.\~ nn \~]\c .BR T \~\c \" space in roman because we must use 2-font macro with \c .IR "r1 r2\~" .\|.\|.\~ rn ] .I groff supports an extended syntax to specify repeating tab stops after the .RB \[lq] T \[rq] mark. . These values are always taken as relative distances from the previous tab stop. . This is the idiomatic way to specify tab stops at equal intervals in .IR groff . . . .IP The syntax summary above instructs .I groff to set tabs at positions .IR n1 , .IR n2 , \&.\|.\|.\|, .IR nn , then at .IR nn \|+\| r1 , .IR nn \|+\| r2 , \&.\|.\|.\|, .IR nn \|+\| rn , then at .IR nn \|+\| rn \|+\| r1 , .IR nn \|+\| rn \|+\| r2 , \&.\|.\|.\|, .IR nn \|+\| rn \|+\| rn , and so on. . . .\" ==================================================================== .SS "New registers" .\" ==================================================================== . GNU .I troff \" GNU exposes more formatter state via many new read-only registers. . Their names often correspond to the requests that affect them. . . .TP 12n .B \[rs]n[.br] Within a macro call, interpolate\~1 if the macro is called with the \[lq]normal\[rq] control character (\[lq].\[rq] by default), and\~0 otherwise. . This facility allows the reliable modification of requests. . Using this register outside of a macro definition makes no sense. . . .RS .IP .ne 6v+\n(.Vu .EX \&.als bp*orig bp \&.de bp \&.tm before bp \&.ie \[rs]\[rs]n[.br] .bp*orig \&.el \[aq]bp*orig \&.tm after bp \&.. .EE .RE . . .TP .B \[rs]n[.C] Interpolate 1\~if compatibility mode is in effect, 0\~otherwise. . See .BR cp . . . .TP .B \[rs]n[.cdp] Interpolate depth of last glyph added to the environment. . It is positive if the glyph extends below the baseline. . . .TP .B \[rs]n[.ce] Interpolate number of input lines remaining to be centered. . . .TP .B \[rs]n[.cht] Interpolate height of last glyph added to the environment. . It is positive if the glyph extends above the baseline. . . .TP .B \[rs]n[.color] Interpolate 1\~if colors are enabled, 0\~otherwise. . . .TP .B \[rs]n[.cp] Within a .RB \[lq] do \[rq] request, interpolate the saved value of compatibility mode (see .B \[rs]n[.C] above). . . .TP .B \[rs]n[.csk] Interpolate skew of last glyph added to the environment. . The .I skew of a glyph is how far to the right of the center of a glyph the center of an accent over that glyph should be placed. . . .TP .B \[rs]n[.ev] Interpolate name of current environment. . This is a string-valued register. . . .TP .B \[rs]n[.fam] Interpolate name of default font family. . This is a string-valued register. . . .TP .B \[rs]n[.fn] Interpolate resolved name of the selected font. . This is a string-valued register. . . .TP .B \[rs]n[.fp] Interpolate next free font mounting position. . . .TP .B \[rs]n[.g] Interpolate\~1. . Test with .RB \[lq]\| if \|\[rq] or .B ie to check whether GNU .I troff \" GNU is the formatter. . . .TP .B \[rs]n[.height] Interpolate font height. . See .BR \[rs]H . . . .TP .B \[rs]n[.hla] Interpolate hyphenation language of the environment. . This is a string-valued register. . . .TP .B \[rs]n[.hlc] Interpolate count of immediately preceding consecutive hyphenated lines in the environment. . . .TP .B \[rs]n[.hlm] Interpolate maximum number of consecutive hyphenated lines allowed in the environment. . . .TP .B \[rs]n[.hy] Interpolate hyphenation mode of the environment. . . .TP .B \[rs]n[.hym] Inteprolate hyphenation margin of the environment. . . .TP .B \[rs]n[.hys] Interpolate hyphenation space adjustment threshold of the environment. . . .TP .B \[rs]n[.in] Interpolate indentation amount applicable to the pending output line. . . .TP .B \[rs]n[.int] Interpolate\~1 if the previous output line was interrupted (ended with .BR \[rs]c ), 0\~otherwise. . . .TP .B \[rs]n[.kern] Interpolate\~1 if pairwise kerning is enabled, 0\~otherwise. . . .TP .B \[rs]n[.lg] Interpolate ligature mode. . . .TP .B \[rs]n[.linetabs] Interpolate\~1 if line-tabs mode is enabled, 0\~otherwise. . . .TP .B \[rs]n[.ll] Interpolate line length applicable to the pending output line. . . .TP .B \[rs]n[.lt] Interpolate title line length. . . .TP .B \[rs]n[.m] Interpolate name of the selected stroke color. . This is a string-valued register. . . .TP .B \[rs]n[.M] Interpolate name of the selected fill color. . This is a string-valued register. . . .TP .B \[rs]n[.ne] Interpolate amount of space demanded by the most recent .B ne request that caused a page location trap to be sprung. . See .BR \[rs]n[.trunc] . . . .TP .B \[rs]n[.nm] Interpolate\~1 if output line numbering is enabled (even if temporarily suppressed), 0\~otherwise. . . .TP .B \[rs]n[.ns] Interpolate\~1 if no-space mode is enabled, 0\~otherwise. . . .TP .B \[rs]n[.O] Interpolate output suppression level. . See .BR \[rs]O . . . .TP .B \[rs]n[.P] Interpolate\~1 if the current page is selected for output. . See .B \-o command-line option to .MR \%troff 1 . . . .TP .B \[rs]n[.pe] Interpolate\~1 during page ejection, 0\~otherwise. . . .TP .B \[rs]n[.pn] Interpolate next page number (either that set by .BR pn , or that of the current page plus\~1). . . .TP .B \[rs]n[.ps] Interpolate type size in scaled points. . . .TP .B \[rs]n[.psr] Interpolate most recently requested type size in scaled points. . . .TP .B \[rs]n[.pvs] Interpolate post-vertical line spacing amount. . . .TP .B \[rs]n[.rj] Interpolate number of input lines remaining to be right-aligned. . . .TP .B \[rs]n[.slant] Interpolate font slant. . See .BR \[rs]S . . . .TP .B \[rs]n[.sr] Interpolate most recently requested type size in points as a decimal fraction. . This is a string-valued register. . . .TP .B \[rs]n[.ss] .TQ .B \[rs]n[.sss] Interpolate values of minimal inter-word space and additional inter-sentence space, respectively, in twelfths of the space width of the selected font. . . .TP .B \[rs]n[.sty] Interpolate selected abstract font style, if any. . This is a string-valued register. . . .TP .B \[rs]n[.tabs] Interpolate representation of the tab stop settings in a form suitable for passage to the .B ta request. . . .TP .B \[rs]n[.trunc] Interpolate amount of vertical space truncated by the most recently sprung page location trap, or, if the trap was sprung by an .B ne request, minus the amount of vertical motion produced by the .B ne request. . In other words, at the point a trap is sprung, .B \[rs]n[.trunc] represents the difference of what the vertical position would have been but for the trap, and what the vertical position actually is. . See .BR \[rs]n[.ne] . . . .TP .B \[rs]n[.U] Interpolate\~1 if in unsafe mode, 0\~otherwise. . See .B \-U command-line option to .MR \%troff 1 . . . .TP .B \[rs]n[.vpt] Interpolate\~1 if vertical position traps are enabled, 0\~otherwise. . . .TP .B \[rs]n[.warn] Interpolate warning mode. . See section \[lq]Warnings\[rq] of .MR \%troff 1 . .\" TODO: Maybe move that table to groff(7). . . .TP .B \[rs]n[.x] Interpolate major version number of the running .I \%troff formatter. . For example, if the version number is 1.23.0, then .B \[rs]n[.x] contains\~1. . . .TP .B \[rs]n[.y] Interpolate minor version number of the running .I \%troff formatter. . For example, if the version number is 1.23.0, then .B \[rs]n[.y] contains\~23. . . .TP .B \[rs]n[.Y] Interpolate revision number of the running .I \%troff formatter. . For example, if the version number is 1.23.0, then .B \[rs]n[.Y] contains\~0. . . .TP .B \[rs]n[.zoom] Interpolate magnification of font, in thousandths, or\~0 if magnification unused. . See .BR fzoom . . . .P The following (writable) registers are set by the .B psbb request. . . .TP .B \[rs]n[llx] .TQ .B \[rs]n[lly] .TQ .B \[rs]n[urx] .TQ .B \[rs]n[ury] Interpolate the (upper, lower, left, right) bounding box values (in PostScript units) of the most recently processed PostScript image. . . .P The following (writable) registers are set by the .B \[rs]w escape sequence. . . .TP 8n .B \[rs]n[rst] .TQ .B \[rs]n[rsb] Like .B \[rs]n[st] and .BR \[rs]n[sb] , but taking account of the heights and depths of glyphs. . In other words, these registers store the highest and lowest vertical positions attained by the argument formatted by the .B \[rs]w escape sequence, doing what AT&T .I troff \" AT&T documented .B \[rs]n[st] and .B \[rs]n[sb] as doing. . . .TP .B \[rs]n[ssc] The amount of horizontal space (possibly negative) that should be added to the last glyph before a subscript. . . .TP .B \[rs]n[skw] How far to right of the center of the last glyph in the .B \[rs]w argument, the center of an accent from a roman font should be placed over that glyph. . . .P Other writable registers are as follows. . Those relating to date and time are initialized using .MR localtime 3 at formatter startup. . . .\" The `c.` register was documented in the January 1981 "Addendum to .\" the Nroff/Troff User's Manual" (presumably by Kernighan), and is .\" widely supported by descendants of his device-independent troff, but .\" appears to have been overlooked in his 1992 revision of CSTR #54. .TP 12n .B \[rs]n[c.] Interpolate input line number. . .B \[rs]n[.c] is a read-only alias of this register. . . .TP .B \[rs]n[hours] Interpolate number of hours elapsed since midnight. . . .TP .B \[rs]n[hp] Interpolate horizontal position relative to that at the start of the input line. . . .br .ne 3v .TP .B \[rs]n[lsn] .TQ .B \[rs]n[lss] Interpolate count of leading spaces on input line and amount of corresponding horizontal motion, respectively. . . .TP .B \[rs]n[minutes] Interpolate number of minutes elapsed in the hour. . . .TP .B \[rs]n[seconds] Interpolate number of seconds elapsed in the minute. . . .TP .B \[rs]n[systat] Interpolate return value of .MR system 3 function executed by most recent .B sy request. . . .TP .B \[rs]n[slimit] Interpolates maximum quantity of objects on .IR \%troff 's internal input stack (default: 1000). . If non-positive, there is no limit: recursion can continue until program memory is exhausted. . . .TP .B \[rs]n[year] Interpolate Gregorian year. . AT&T .IR troff 's \" AT&T .B \[rs][yr] interpolates the Gregorian year minus 1900. . . .\" ==================================================================== .SS Miscellaneous .\" ==================================================================== . GNU .I troff \" GNU predefines one string, .BR .T , containing the argument given to the .B \-T command-line option, namely the output device (for example, .B pdf or .BR utf8 ). . The (read-only) .I register .B .T interpolates\~1 if GNU .I troff \" GNU is run with the .B \-T command-line option, and 0\~otherwise. . . .P A font not listed in the output device's .I DESC file's .B fonts directive is automatically mounted at the next available font position when it is selected. . If you mount a font explicitly with the .B fp request, you should do so on the first unused position, which can be found in the .B .fp register. . . .P Unparameterized string interpolation does not conceal the arguments to a macro being interpreted. . Thus, in a macro definition, the call of another macro with the existing argument list, . .RS .EX .BI . xx\~ \[rs]\[rs]$@ .EE .RE . is more efficiently done with . .RS .EX .BI \[rs]\[rs]*[ xx ]\[rs]\[rs] .EE .RE . (that is, with string interpolation). . The trailing backslashes prevent the final newline in the macro definition from being interpolated, potentially putting an unwanted blank line on the output. . See section \[lq]Punning Names\[rq] in .MR groff 7 . . . .\" XXX: Is this really not an AT&T troff feature? .P If a font description file contains pairwise kerning information, glyphs from that font are kerned. . Kerning between two glyphs can be inhibited by placing a dummy character .B \[rs]& between them. . . .P GNU .I troff \" GNU keeps track of the nesting depth of escape sequence interpolations and other uses of delimiters, as in the .B tl request and the output comparison operator (that is, input like .B \[aq]foo\[aq]bar\[aq] as a conditional expression), so the only characters you need to avoid using as delimiters are those that appear in the arguments you input, not any that result from interpolation. . Typically, .B \[aq] works fine. . Use visible characters as delimiters in GNU .IR troff , \" GNU not \[lq]ASCII\[rq] controls like BEL (Control+G). . The implementation of .B \[rs]$@ ensures that the double quotes surrounding an argument appear at an interpolation depth different from that of the arguments themselves. . Similarly, in bracket-form escape sequences like .B \[rs]f[ZCMI], a right bracket .B ] does not end the sequence unless it occurs at the same interpolation depth as the .RB opening\~ [ , so input like . .RS .EX \[rs]f[\[rs]*[my-family]\[rs]*[my-style]] .EE .RE . works as desired. . In compatibility mode, no attention is paid to the interpolation depth. . . .P In GNU .IR troff , \" GNU the .B tr request can map characters to the unbreakable space escape sequence .B \[rs]\[ti] as a special case .RB ( tr normally operates only on .IR characters ). . This feature replaces the odd-parity .B tr mapping trick used in AT&T .I troff \" AT&T documents, where a character, often .BR \[ti] , was \[lq]sacrificed\[rq] by mapping it to \[lq]nothing\[rq], drafting it into use as an unadjustable, unbreakable space. . (This feature was gratuitous even in early AT&T .I troff, \" AT&T which supported the .BI \[rs] space escape sequence by 1976.) \" see CSTR #54 of that year . Often, it makes more sense to use GNU .IR troff 's \" GNU .B \[rs]\[ti] escape sequence instead, which has been adopted by every other active .I troff implementation except that of Illumos, as well as by the .RI non -troff .IR mandoc . . Translation of a character to .B \[rs]\[ti] is unnecessary. . . .P GNU .I troff \" GNU permits tabs and spaces after the first dot on a control line that ends a macro definition. . .RS .ne 5v+\n(.Vu .EX \&.if t \[rs]{\[rs] \&.\& de bar \&.\& nop Hello, I\[aq]m \[aq]bar\[aq]. \&.\& . \&.\[rs]} .EE .RS . . .\" ==================================================================== .SH "Formatter output" .\" ==================================================================== . The page description language output by GNU .I troff \" GNU is modeled after that used by AT&T .I troff \" AT&T once the latter adopted a device-independent approach in the early 1980s. . Only the differences are documented here. . For a fuller discussion, see .MR groff_out 5 . .\" .\" .\" XXX: This feature is unused and documenting it gives a valuable .\" hostage to fortune. .\".P .\"Note that single characters can have the eighth bit set, as can the .\"names of fonts and special characters. . . .P Glyph and font names can be of arbitrary length; postprocessors should not assume that they are at most two characters. . A glyph to be formatted is always drawn from the current font; in contrast to AT&T device-independent .IR troff , \" AT&T drivers need not search special fonts to find a glyph. . . .\" ==================================================================== .SS Units .\" ==================================================================== . The argument to the .BR s \~command is in scaled points (units of .RI points/ n , where .I n is the argument to the .B sizescale command in the .I DESC file). . The argument to the .RB \[lq] "x H" \[rq] command is also in scaled points. . . .\" ==================================================================== .SS "Simple commands" .\" ==================================================================== . .\" BEGIN Keep in sync with relevant portions of section "Simple .\" commands" from groff_out(5). .P If the .B tcommand directive is present in the output device's .I DESC file, GNU .I troff \" GNU employs the following two commands. . . .TP .BI t\~ xyz\c \&.\|.\|. Typeset word .IR xyz ; that is, set a sequence of ordinary glyphs named .IR x , .IR y , .IR z , \&.\|.\|.\|, terminated by a space or newline; an optional second integer argument is ignored (this allows the formatter to generate an even number of arguments). .\" XXX: Why? . Each glyph is set at the current drawing position, and the position is then advanced horizontally by the glyph's width. . A glyph's width is read from its metrics in the font description file, scaled to the current type size, and rounded to a multiple of the horizontal motion quantum. . Use the .B C command to emplace glyphs of special characters. . . .TP .BI u\~ "n xyz"\c \&.\|.\|. Typeset word .I xyz with track kerning. . As .BR t , but after placing each glyph, the drawing position is further advanced horizontally .RI by\~ n basic units. .\" END Keep in sync with relevant portions of section "Simple commands" .\" from groff_out(5). . . .P New commands implement color support. . . .TP .BI mc\~ "cyan magenta yellow" .TQ .B md .TQ .BI mg\~ gray .TQ .BI mk\~ "cyan magenta yellow black" .TQ .BI mr\~ "red green blue" Set the components of the stroke color with respect to various color spaces. . .B md resets the stroke color to the default value. . The arguments are integers in the range 0 to 65535. . . .P A new device control subcommand is available. . . .TP .BI "x u\~" n If .I n is\~1, start underlining of spaces. . If .I n is\~0, stop underlining of spaces. . This facility is needed for the .B cu request in .I nroff \" mode mode and is ignored otherwise. . . .\" ==================================================================== .SS "Extended drawing commands" .\" ==================================================================== . GNU .I pic \" GNU does not produce .I \%troff escape sequences employing these extensions if its .B \-n option is given. . . .TP .BI Df\~ n Set the shade of gray used to fill geometric objects to .IR n , which must be an integer. . 0 corresponds to white and 1000 to black. . A grayscale ramp spans the two. . A value outside this range uses the stroke color as the fill color. . The fill color is opaque. . Normally the default is black, but some drivers may provide a way of changing this. . .B Df is obsolete since 2002, \" commit ea5a42d080, 2002-01-24 superseded by .B DFg below. . . .IP The corresponding .B \[rs]D\[aq]f\^\[aq] escape sequence should not be used: its argument is rounded to an integer multiple of the horizontal motion quantum, which can limit the precision .RI of\~ n . . . .TP .BI DC\~ d Draw a filled circle of diameter .I d with its leftmost point at the drawing position. . . .TP .BI DE\~ "h v" Draw a filled ellipse, of horizontal axis .I h and vertical axis .IR v , with its leftmost point at the drawing position. . . .br .ne 4v .EQ delim $$ .EN .TP .\" `BR`, not `BI`, here, because eqn will take care of font changes. .BR Dp\~ "$dx sub 1 ~ dy sub 1 ~ ldots ~ dx sub n ~ dy sub n$" Draw a polygon with, for $i = 1 , ldots , n + 1$, its .IR i th vertex at the drawing position . $+ sum from { j = 1 } to { i - 1 } ( dx sub j , dy sub j )$. . .\" The following is implied by the math above, but let's be kind. .I groff output drivers automatically close polygons, drawing a line from $( dx sub n , dy sub n )$ back to $( dx sub 1 , dy sub 1 )$. . The drawing position is left at the last .I specified vertex, but this may change in a future version of GNU .IR troff . \" GNU . Heirloom Doctools .IR troff , \" Heirloom like DWB .IR troff , \" DWB by default does not close the polygon. . In its .I groff compatibility mode, Heirloom closes the polygon but leaves the drawing position .IR unchanged \[em]that is, at the polygon's .I initial drawing position. . . .IP At the moment, GNU .I pic \" GNU uses this command only to generate triangles and rectangles. . . .TP .BR DP\~ "$dx sub 1 ~ dy sub 1 ~ ldots ~ dx sub n ~ dy sub n$" As .BR Dp , but draw a filled rather than a stroked polygon. . . .TP .BI Dt\~ n Set the line thickness to .IR n \~\c basic units. . AT&T .I troff \" AT&T output drivers use a thickness proportional to the type size; this is the GNU .I troff \" GNU default. . A .RI negative\~ n requests this explicitly. . .RI An\~ n of zero selects the smallest available line thickness. . . .P A difficulty arises in how the drawing position should be changed after the execution of these commands. . This has little importance to most users, since the output of GNU .I grn \" GNU and .I pic \" GNU does not depend on it. . Given a drawing command of the form .BI D z $x sub 1 ~ y sub 1 ~ ldots ~ x sub n ~ y sub n$, where .I z is not .B c or .BR e , AT&T .I troff \" AT&T treats each $x sub i$ as a horizontal motion, each $y sub i$ as a vertical one, and therefore assumes that the width of the drawn object is $sum from { i = 1 } to n x sub i$, and its height is $sum from { i = 1 } to n y sub i$. . (Verify its assumption about height by examining the .B st and .B sb registers after using such a drawing command in a .B \[rs]w escape sequence). . For the sake of compatibility, GNU .I troff \" GNU also follows this rule, even though it frustrates extensions to the .B D command that set drawing parameters rather than rendering objects, producing ugly results in the case of .B Dt and .BR Df , or otherwise don't parameterize objects as a series of vertices, as with GNU .IR troff 's \" GNU filled ellipse, .BR DE . . Thus after executing a .BR D \~command of the form .BI D z $x sub 1 ~ y sub 1 ~ ldots ~ x sub n ~ y sub n$, the drawing position should be increased by . $( sum from { i = 1 } to n x sub i , sum from { i = 1 } to n y sub i )$. .EQ delim off .EN . In a future release, GNU .I troff \" GNU and its output drivers may abandon the application of this assumption to drawing commands not explicitly specified in the AT&T \[lq]Troff User's Manual\[rq]. . . .P Fill color selection is implemented with another set of extensions. . . .TP .BI DFc\~ "cyan magenta yellow" .TQ .B DFd .TQ .BI DFg\~ gray .TQ .BI DFk\~ "cyan magenta yellow black" .TQ .BI DFr\~ "red green blue" Set the components of the fill color as described under the .B \[rs]M escape sequence above. . .B DFd restores the device's default fill color. . The drawing position is not updated, in contrast to .BR Df . . . .\" ==================================================================== .SS "Device control syntax extension" .\" ==================================================================== . GNU .I troff \" GNU introduces a line continuation convention, permitting the argument to the .B x X command to contain newlines. . A newline in the input is transformed to the sequence .RI \[lq] newline\c .BR + \[rq]. . When interpreting an .B x X command, a postprocessor should therefore be prepared for a plus sign after a newline; if it occurs, preserve the newline, discard the plus sign, and continue to collect the input into the argument of the .B x X command. . A newline .I not followed by a plus sign terminates the .B x X command. . An application of this feature is the embedding of PostScript or PDF language command streams into .I troff \" output. . . .P GNU .I troff \" GNU guarantees that the first three output commands it emits are as follows. . . .P .RS .EX .RI x\~T\~ device .RI x\~res\~ n\~h\~v x init .EE .RE . . .br .ne 4v .\" ==================================================================== .SH Debugging .\" ==================================================================== . In addition to AT&T .IR troff 's \" AT&T debugging features, GNU .I troff \" GNU emits more error diagnostics when syntactical or semantic nonsense is encountered and supports several warning categories; the output of these can be selected with .BR warn . . Also see the .BR \-E , .BR \-w , and .B \-W options of .MR \%troff 1 . . Backtraces can be automatically produced when errors or warnings occur (the .B \-b option of .MR \%troff 1 ) or generated on demand .RB ( backtrace ). . . .P .I groff also adds more flexible diagnostic output requests .RB ( tmc and .BR tm1 ). . More aspects of formatter state can be examined with requests that write lists of defined registers .RB ( pnr ), environments .RB ( pev ), and page location traps .RB ( ptr ) to the standard error stream. . . .\" ==================================================================== .SH "Implementation differences" .\" ==================================================================== . .\" TODO: Resync with the node of this name in our Texinfo manual. GNU .IR troff 's \" GNU features sometimes cause incompatibilities with documents written assuming old implementations of .IR troff . \" generic . Some GNU extensions to .I troff \" generic are supported by other implementations. . . .P When adjusting to both margins, AT&T .I troff \" AT&T at first adjusts spaces starting from the right; GNU .I troff \" GNU begins from the left. . Both implementations adjust spaces from opposite ends on alternating output lines to prevent \[lq]rivers\[rq] in the text. . . .P GNU .I troff \" GNU does not always hyphenate words as AT&T .I troff \" AT&T does. . The AT&T implementation uses a set of hard-coded rules specific to U.S.\& English, while GNU .I troff \" GNU uses language-specific hyphenation pattern files derived from \*[tx]. . In some versions of .I troff \" generic there was limited space to store hyphenation exceptions (arguments to the .B hw request); GNU .I troff \" GNU has no such restriction. . . .P Long names may be GNU .IR troff 's \" GNU most obvious innovation. . AT&T .I troff \" AT&T interprets .RB \[lq] .dsabcd \[rq] as defining a string .RB \[lq] ab \[rq] with contents .RB \[lq] cd \[rq]. . Normally, GNU .I troff \" GNU interprets this as a call of a macro named .RB \[lq] dsabcd \[rq]. . AT&T .I troff \" AT&T also interprets .B \[rs]*[ and .B \[rs]n[ as an interpolation of a string or register, respectively, called .RB \[lq] [ \[rq]. . In GNU .IR troff , \" GNU however, the .RB \[lq] [ \[rq] is normally interpreted as beginning the enclosure of a long identifier. . In compatibility mode, GNU .I troff \" GNU interprets names in the traditional way, which means that they are limited to one or two characters. . See the .B \-C option in .MR \%troff 1 and, above, the .B .C and .B .cp registers, and .B cp and .RB \[lq] do \[rq] requests, for more on compatibility mode. . . .P The register .B \[rs]n[.cp] is specialized and may require a statement of rationale. . When writing macro packages or documents that use GNU .I troff \" GNU features and which may be mixed with other packages or documents that do not\[em]common scenarios include serial processing of man pages or use of the .RB \[lq] so \[rq] or .B mso requests\[em]you may desire correct operation regardless of compatibility mode enablement in the surrounding context. . It may occur to you to save the existing value of .B \[rs]n(.C into a register, say, .BR _C , at the beginning of your file, turn compatibility mode off with .RB \[lq] .cp\~0 \[rq], then restore it from that register at the end with .RB \[lq] .cp\~\[rs]n(_C \[rq]. . At the same time, a modular design of a document or macro package may lead you to multiple layers of inclusion. . You cannot use the same register name everywhere lest you \[lq]clobber\[rq] the value from a preceding or enclosing context. . The two-character register name space of AT&T .I troff \" AT&T is confining and mnemonically challenging; you may wish to use GNU .IR troff 's \" GNU more capacious name space. . However, attempting .RB \[lq] ".nr _my_saved_C \[rs]n(.C" \[rq] will not work in compatibility mode; the register name is too long. . \[lq]This is exactly what .B .do is for,\[rq] you think, .RB \[lq] ".do nr _my_saved_C \[rs]n(.C" \[rq]. . The foregoing will always save zero to your register, because .RB \[lq] do \[rq] turns compatibility mode .I off while it interprets its argument list. . What you need is: . .RS .EX \&.do nr _my_saved_C \[rs]n[.cp] \&.cp 0 .EE .RE . at the beginning of your file, followed by .RS .EX \&.cp \[rs]n[_my_saved_C] \&.do rr _my_saved_C .EE .RE at the end. . As in the C language, we all have to share one big name space, so choose a register name that is unlikely to collide with other uses. . . .P The existence of the .B .T string is a common feature of post-CSTR\~#54 .IR troff s\[em]DWB\~3.3, \" others Solaris, Heirloom Doctools, and Plan\~9 .I troff \" foreign all support it\[em]but valid values are specific to each implementation. . The behavior of the .B .T register in GNU .I troff \" GNU differs from AT&T .IR troff , \" AT&T which interpolated\~1 only if .I nroff \" AT&T was the formatter and was called with .BR \-T . . . .P The .B lf request sets the number of the .I current input line in AT&T .IR troff ,\" AT&T and the .I next in GNU .IR troff .\" GNU . . .br .ne 2v .P AT&T .I troff had only environments named .RB \[lq] 0 \[rq], .RB \[lq] 1 \[rq], and .RB \[lq] 2 \[rq]. . In GNU .IR troff , any number of environments may exist, using any valid identifiers for their names. . . .P GNU .I troff \" GNU normally tracks the interpolation depth of escape sequence parameters and other delimited structures, but not in compatibility mode. . See section \[lq]Miscellaneous\[rq] above. . . .P In compatibility mode, the escape sequences .BR \[rs]f , .BR \[rs]H , .BR \[rs]m , .BR \[rs]M , .BR \[rs]R , .BR \[rs]s , and .B \[rs]S are transparent at the beginning of an input line for the purpose of recognizing a control character, because they modify formatter state .RB ( \[rs]R ) or properties of the environment (the rest) and therefore do not create output nodes. . For example, this code produces bold output in both cases, but the text differs, . .RS .EX \&.de xx \[aq] Hello! \&.. \&\[rs]fB.xx\[rs]fP .EE .RE . formatting \[lq].xx\[rq] normally and \[lq]Hello!\[rq] in compatibility mode. . . .P GNU .I troff \" GNU request names unrecognized by other .I troff \" generic implementations will likely be ignored; escape sequences that are GNU .I troff \" GNU extensions are liable to format their function selector character. . For example, the adjustable, non-breaking space escape sequence .B \[rs]\[ti] .\" BEGIN Keep in sync with groff.texi node "Other Differences" and .\" groff_man_style(7). is also supported by Heirloom Doctools .I troff \" Heirloom 050915 (September 2005), .I mandoc 1.9.5 (2009-09-21), .I neatroff (commit 1c6ab0f6e, 2016-09-13), and Plan\~9 from User Space .I troff \" Plan 9 (commit 93f8143600, 2022-08-12), but not by Solaris/Illumos .IR troff s, \" Solaris/Illumos which will render it as .BR \[ti] . .\" as of this writing, 2022-08-13 .\" END Keep in sync with groff.texi node "Other Differences" and .\" groff_man_style(7). . . .P GNU .I troff \" GNU does not allow the use of the escape sequences .BR \[rs]| , .BR \[rs]\[ha] , .BR \[rs]& , .BR \[rs]{ , .BR \[rs]} , .BI \[rs] space\c , .BR \[rs]\[aq] , .BR \[rs]\[ga] , .BR \[rs]\- , .BR \[rs]_ , .BR \[rs]! , .BR \[rs]% , or .B \[rs]c in identifiers; AT&T .I troff \" AT&T does. . The .B \[rs]A escape sequence (see subsection \[lq]Escape sequences\[rq] above) may be helpful in avoiding their use. . . .P Normally, the syntax form .BI \[rs]s n accepts only a single character (a digit) for .IR n , consistently with other forms that originated in AT&T .IR troff , \" AT&T like .BR \[rs]* , .BR \[rs]$ , .BR \[rs]f , .BR \[rs]g , .BR \[rs]k , .BR \[rs]n , and .BR \[rs]z . . In compatibility mode only, a .RI non-zero\~ n must be in the range 4\[en]39. . Legacy documents relying upon this quirk of parsing should be migrated to another .B \[rs]s form. . [Background: The Graphic Systems C/A/T phototypesetter (the original device target for AT&T .IR troff ) \" AT&T supported only a few discrete type sizes in the range 6\[en]36 points, so Ossanna contrived a special case in the parser to do what the user must have meant. . Kernighan warned of this in the 1992 revision of CSTR\~#54 (\[sc]2.3), and more recently, McIlroy referred to it as a \[lq]living fossil\[rq].] . . .P Fractional type sizes cause one noteworthy incompatibility. . In AT&T .I troff \" AT&T the .B ps request ignores scaling units and thus .RB \[lq] .ps\~10u \[rq] sets the type size to 10\~points, whereas in GNU .I troff \" GNU it sets the type size to .RI 10\~ scaled points, which may be a much smaller measurement. . See subsection \[lq]Fractional type sizes and new scaling units\[rq] above. . . .P The .B ab request differs from AT&T .IR troff : \" AT&T GNU .I troff \" GNU writes no message to the standard error stream if no arguments are given, and it exits with a failure status instead of a successful one. . . .P The .B bp request differs from AT&T .IR troff : \" AT&T GNU .I troff \" GNU does not accept a scaling unit on the argument, a page number; the former (somewhat uselessly) does. . . .P In AT&T .I troff \" AT&T the .B pm request reports macro, string, and diversion sizes in units of 128-byte blocks, and an argument reduces the report to a sum of the above in the same units. . GNU .I troff \" GNU ignores any arguments and reports the sizes in bytes. . . .P Unlike AT&T .IR troff , \" AT&T GNU .I troff \" GNU does not ignore the .B ss request if the output is a terminal device; instead, the values of minimum inter-word and additional inter-sentence space are each rounded down to the nearest multiple of\~12. . . .P In GNU .I troff \" GNU there is a fundamental difference between (unformatted) characters and (formatted) glyphs. . Everything that affects how a glyph is output is stored with the glyph node; once a glyph node has been constructed, it is unaffected by any subsequent requests that are executed, including .BR bd , .BR cs , .BR tkf , .BR tr , or .B fp requests. . Normally, glyphs are constructed from characters immediately before the glyph is added to an output line. . Macros, diversions, and strings are all, in fact, the same type of object; they contain a sequence of intermixed character and glyph nodes. . Special characters transform from one to the other: before being added to the output, they behave as characters; afterward, they are glyphs. . A glyph node does not behave like a character node when it is processed by a macro: it does not inherit any of the special properties that the character from which it was constructed might have had. . For example, the input . .br .ne 5v .RS .EX \&.di x \[rs]\[rs]\[rs]\[rs] \&.br \&.di \&.x .EE .RE . produces .RB \[lq]\^ \[rs]\[rs] \[rq] in GNU .IR troff . \" GNU Each pair of backslashes becomes one backslash .I glyph; the resulting backslashes are thus not interpreted as escape .I characters when they are reread as the diversion is output. . AT&T .I troff \" AT&T .I would interpret them as escape characters when rereading them and end up printing one .RB \[lq] \[rs] \[rq]. . . .P One way to format a backslash in most documents is with the .B \[rs]e escape sequence; this formats the glyph of the current escape character, regardless of whether it is used in a diversion; it also works in both GNU .I troff \" GNU and AT&T .IR troff . \" AT&T . (Naturally, if you've changed the escape character, you need to prefix the .RB \[lq] e \[rq] with whatever it is\[em]and you'll likely get something other than a backslash in the output.) . . .P The other correct way, appropriate in contexts independent of the backslash's common use as a .I roff escape character\[em]perhaps in discussion of character sets or other programming languages\[em]is the character escape .B \[rs](rs or .BR \[rs][rs] , for \[lq]reverse solidus\[rq], from its name in the ECMA-6 (ISO/IEC\~646) standard. . [This escape sequence is not portable to AT&T .IR troff , \" AT&T but is to its lineal descendant, Heirloom Doctools .IR troff , as of its 060716 release (July 2006).] . . .P To store an escape sequence in a diversion that is interpreted when the diversion is reread, either use the traditional .B \[rs]!\& transparent output facility, or, if this is unsuitable, the new .B \[rs]?\& escape sequence. . See subsection \[lq]Escape sequences\[rq] above and sections \[lq]Diversions\[rq] and \[lq]gtroff Internals\[rq] in .IR "Groff: The GNU Implementation of troff" , the .I groff Texinfo manual. . . .P In the somewhat pathological case where a diversion exists containing a partially collected line and a partially collected line at the top-level diversion has never existed, AT&T .I troff will output the partially collected line at the end of input; GNU .I troff \" GNU will not. . . .\" ==================================================================== .SS "Formatter output incompatibilities" .\" ==================================================================== . Its extensions notwithstanding, the .I groff intermediate output format has some incompatibilities with that of AT&T .IR troff , \" AT&T but better compatibility is sought; problem reports and patches are welcome. . The following incompatibilities are known. . . .IP \[bu] 2n The drawing position after rendering polygons is inconsistent with AT&T .I troff \" AT&T practice. . Other implementations have diverged on this point as well. . . .IP \[bu] The output cannot be easily rescaled to other devices as AT&T .IR troff 's \" AT&T could. .\" XXX: Why? What's the problem? sizescale? That could be written .\" into the output as a comment or x command. --GBR . . .\" ==================================================================== .SH Authors .\" ==================================================================== . This document was written by .MT jjc@\:jclark\:.com James Clark .ME , .MT wl@\:gnu\:.org Werner Lemberg .ME , .MT groff\-bernd\:.warken\-72@\:web\:.de Bernd Warken .ME , and .MT g.branden\:.robinson@\:gmail\:.com G.\& Branden Robinson .ME . . . .\" ==================================================================== .SH "See also" .\" ==================================================================== . .IR "Groff: The GNU Implementation of troff" , by Trent A.\& Fisher and Werner Lemberg, is the primary .I groff manual. . You can browse it interactively with \[lq]info groff\[rq]. . . .br .ne 4v .P \[lq]Troff User's Manual\[rq] by Joseph F.\& Ossanna, 1976 (revised by Brian W.\& Kernighan, 1992), AT&T Bell Laboratories Computing Science Technical Report No.\& 54, widely called simply \[lq]CSTR\~#54\[rq], documents the language, device and font description file formats, and output format referred to collectively in .I groff documentation as AT&T .IR troff . \" AT&T . . .P \[lq]A Typesetter-independent TROFF\[rq] by Brian W.\& Kernighan, 1982, AT&T Bell Laboratories Computing Science Technical Report No.\& 97, provides additional insights into the device and font description file formats and output format. . . .P .MR groff 1 , .MR groff 7 , .MR roff 7 . . .\" Clean up. .rm tx .rm ic . .\" Restore compatibility mode (for, e.g., Solaris 10/11). .cp \n[*groff_groff_diff_7_man_C] .do rr *groff_groff_diff_7_man_C . . .\" Local Variables: .\" fill-column: 72 .\" mode: nroff .\" End: .\" vim: set filetype=groff textwidth=72: