1 .\" $Id: roff.7,v 1.105 2018/08/25 16:53:39 schwarze Exp $
3 .\" Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
4 .\" Copyright (c) 2010-2018 Ingo Schwarze <schwarze@openbsd.org>
6 .\" Permission to use, copy, modify, and distribute this software for any
7 .\" purpose with or without fee is hereby granted, provided that the above
8 .\" copyright notice and this permission notice appear in all copies.
10 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 .Dd $Mdocdate: August 25 2018 $
23 .Nd roff language reference for mandoc
27 language is a general purpose text formatting language.
28 Since traditional implementations of the
32 manual formatting languages are based on it,
33 many real-world manuals use small numbers of
35 requests and escape sequences intermixed with their
40 To properly format such manuals, the
42 utility supports a tiny subset of
45 Only these requests and escapes supported by
47 are documented in the present manual,
48 together with the basic language syntax shared by
59 Input lines beginning with the control character
61 are parsed for requests and macros.
67 Requests change the processing state and manipulate the formatting;
68 some macros also define the document structure and produce formatted
72 is accepted as an alternative control character,
78 Lines not beginning with control characters are called
80 They provide free-form text to be printed; the formatting of the text
81 depends on the respective processing context.
84 documents may contain only graphable 7-bit ASCII characters, the space
85 character, and, in certain circumstances, the tab character.
86 The backslash character
88 indicates the start of an escape sequence, used for example for
91 .Sx Special Characters .
92 For a listing of escape sequences, consult the
93 .Sx ESCAPE SEQUENCE REFERENCE
96 Text following an escaped double-quote
98 whether in a request, macro, or text line, is ignored to the end of the line.
99 A request line beginning with a control character and comment escape
102 Furthermore, request lines with only a control character and optional
103 trailing whitespace are stripped from input.
106 .Bd -literal -offset indent -compact
107 \&.\e\(dq This is a comment line.
108 \&.\e\(dq The next line is ignored:
110 \&.Sh EXAMPLES \e\(dq This is a comment, too.
111 \&example text \e\(dq And so is this.
113 .Ss Special Characters
114 Special characters are used to encode special glyphs and are rendered
115 differently across output media.
116 They may occur in request, macro, and text lines.
117 Sequences begin with the escape character
119 followed by either an open-parenthesis
121 for two-character sequences; an open-bracket
123 for n-character sequences (terminated at a close-bracket
125 or a single one character sequence.
128 .Bl -tag -width Ds -offset indent -compact
130 Two-letter em dash escape.
132 One-letter backslash escape.
139 Terms may be text-decorated using the
141 escape followed by an indicator: B (bold), I (italic), R (regular), or P
142 (revert to previous mode).
143 A numerical representation 3, 2, or 1 (bold, italic, and regular,
144 respectively) may be used instead.
145 The indicator or numerical representative may be preceded by C
146 (constant-width), which is ignored.
148 The two-character indicator
150 requests a font that is both bold and italic.
151 It may not be portable to old roff implementations.
154 .Bl -tag -width Ds -offset indent -compact
156 Write in \fBbold\fP, then switch to regular font mode.
157 .It Li \efIitalic\efP
158 Write in \fIitalic\fP, then return to previous font mode.
159 .It Li \ef(BIbold italic\efP
160 Write in \f(BIbold italic\fP, then return to previous font mode.
167 which encourages semantic annotation.
169 Whitespace consists of the space character.
170 In text lines, whitespace is preserved within a line.
171 In request and macro lines, whitespace delimits arguments and is discarded.
173 Unescaped trailing spaces are stripped from text line input unless in a
175 In general, trailing whitespace on any input line is discouraged for
176 reasons of portability.
177 In the rare case that a space character is needed at the end of an
178 input line, it may be forced by
181 Literal space characters can be produced in the output
182 using escape sequences.
183 In macro lines, they can also be included in arguments using quotation; see
187 Blank text lines, which may include whitespace, are only permitted
188 within literal contexts.
189 If the first character of a text line is a space, that line is printed
190 with a leading newline.
192 Many requests and macros support scaled widths for their arguments.
193 The syntax for a scaled width is
194 .Sq Li [+-]?[0-9]*.[0-9]*[:unit:] ,
195 where a decimal must be preceded or followed by at least one digit.
196 Negative numbers, while accepted, are truncated to zero.
198 The following scaling units are accepted:
200 .Bl -tag -width Ds -offset indent -compact
214 default vertical span
226 default horizontal span for the terminal
231 Using anything other than
236 is necessarily non-portable across output media.
240 If a scaling unit is not provided, the numerical value is interpreted
241 under the default rules of
243 for vertical spaces and
248 .Bl -tag -width ".Bl -tag -width 2i" -offset indent -compact
249 .It Li \&.Bl -tag -width 2i
250 two-inch tagged list indentation in
253 two-inch tagged list indentation in
259 Each sentence should terminate at the end of an input line.
260 By doing this, a formatter will be able to apply the proper amount of
261 spacing after the end of sentence (unescaped) period, exclamation mark,
262 or question mark followed by zero or more non-sentence closing
271 The proper spacing is also intelligently preserved if a sentence ends at
272 the boundary of a macro line.
275 .Bd -literal -offset indent -compact
276 Do not end sentences mid-line like this. Instead,
277 end a sentence like this.
278 A macro would end like this:
282 A request or macro line consists of:
286 the control character
290 at the beginning of the line,
292 optionally an arbitrary amount of whitespace,
294 the name of the request or the macro, which is one word of arbitrary
295 length, terminated by whitespace,
297 and zero or more arguments delimited by whitespace.
300 Thus, the following request lines are all equivalent:
301 .Bd -literal -offset indent
307 Macros are provided by the
311 languages and can be defined by the
314 When called, they follow the same syntax as requests, except that
315 macro arguments may optionally be quoted by enclosing them
316 in double quote characters
318 Quoted text, even if it contains whitespace or would cause
319 a macro invocation when unquoted, is always considered literal text.
320 Inside quoted text, pairs of double quote characters
322 resolve to single double quote characters.
324 To be recognised as the beginning of a quoted argument, the opening
325 quote character must be preceded by a space character.
326 A quoted argument extends to the next double quote character that is not
327 part of a pair, or to the end of the input line, whichever comes earlier.
328 Leaving out the terminating double quote character at the end of the line
330 For clarity, if more arguments follow on the same input line,
331 it is recommended to follow the terminating double quote character
332 by a space character; in case the next character after the terminating
333 double quote character is anything else, it is regarded as the beginning
334 of the next, unquoted argument.
336 Both in quoted and unquoted arguments, pairs of backslashes
338 resolve to single backslashes.
339 In unquoted arguments, space characters can alternatively be included
340 by preceding them with a backslash
342 but quoting is usually better for clarity.
345 .Bl -tag -width Ds -offset indent -compact
346 .It Li .Fn strlen \(dqconst char *s\(dq
349 into one function argument.
355 would be considered separate arguments.
356 .It Li .Op \(dqFl a\(dq
359 as literal text instead of a flag macro.
361 .Sh REQUEST REFERENCE
365 parser recognises the following requests.
366 For requests marked as "ignored" or "unsupported", any arguments are
367 ignored, and the number of arguments is not checked.
369 .It Ic \&ab Op Ar message
371 Currently unsupported.
372 .It Ic \&ad Op Cm b | c | l | n | r
373 Set line adjustment mode for subsequent text.
375 .It Ic \&af Ar registername format
376 Assign an output format to a number register.
378 .It Ic \&aln Ar newname oldname
379 Create an alias for a number register.
380 Currently unsupported.
381 .It Ic \&als Ar newname oldname
382 Create an alias for a request, string, macro, or diversion.
383 .It Ic \&am Ar macroname Op Ar endmacro
384 Append to a macro definition.
385 The syntax of this request is the same as that of
387 .It Ic \&am1 Ar macroname Op Ar endmacro
388 Append to a macro definition, switching roff compatibility mode off
389 during macro execution (groff extension).
390 The syntax of this request is the same as that of
396 compatibility mode at all, it handles this request as an alias for
398 .It Ic \&ami Ar macrostring Op Ar endstring
399 Append to a macro definition, specifying the macro name indirectly
401 The syntax of this request is the same as that of
403 .It Ic \&ami1 Ar macrostring Op Ar endstring
404 Append to a macro definition, specifying the macro name indirectly
405 and switching roff compatibility mode off during macro execution
407 The syntax of this request is the same as that of
413 compatibility mode at all, it handles this request as an alias for
415 .It Ic \&as Ar stringname Op Ar string
416 Append to a user-defined string.
417 The syntax of this request is the same as that of
419 If a user-defined string with the specified name does not yet exist,
420 it is set to the empty string before appending.
421 .It Ic \&as1 Ar stringname Op Ar string
422 Append to a user-defined string, switching roff compatibility mode off
423 during macro execution (groff extension).
424 The syntax of this request is the same as that of
430 compatibility mode at all, it handles this request as an alias for
432 .It Ic \&asciify Ar divname
433 Fully unformat a diversion.
434 Currently unsupported.
436 Print a backtrace of the input stack.
437 This is a groff extension and currently ignored.
438 .It Ic \&bd Ar font Oo Ar curfont Oc Op Ar offset
439 Artificially embolden by repeated printing with small shifts.
441 .It Ic \&bleedat Ar left top width height
442 Set the BleedBox page parameter for PDF generation.
443 This is a Heirloom extension and currently ignored.
444 .It Ic \&blm Ar macroname
445 Set a blank line trap.
446 Currently unsupported.
447 .It Ic \&box Ar divname
448 Begin a diversion without including a partially filled line.
449 Currently unsupported.
450 .It Ic \&boxa Ar divname
451 Add to a diversion without including a partially filled line.
452 Currently unsupported.
453 .It Ic \&bp Oo Cm + Ns | Ns Cm - Oc Ns Ar pagenumber
456 .It Ic \&BP Ar source height width position offset flags label
457 Define a frame and place a picture in it.
458 This is a Heirloom extension and currently unsupported.
460 Break the output line.
465 Currently unsupported.
466 .It Ic \&breakchar Ar char ...
467 Optional line break characters.
468 This is a Heirloom extension and currently ignored.
470 Break output line after the next
473 This is a Heirloom extension and currently ignored.
475 Break and spread output line.
476 Currently, this is implemented as an alias for
479 Break and spread output line after the next
482 This is a Heirloom extension and currently ignored.
483 .It Ic \&c2 Op Ar char
484 Change the no-break control character.
485 Currently unsupported.
486 .It Ic \&cc Op Ar char
487 Change the control character.
490 is not specified, the control character is reset to
492 Trailing characters are ignored.
496 input lines without filling.
499 An argument of 0 or less ends centering.
500 Currently, high level macros abort centering.
501 .It Ic \&cf Ar filename
502 Output the contents of a file.
503 Ignored because insecure.
504 .It Ic \&cflags Ar flags char ...
506 This is a groff extension and currently ignored.
507 .It Ic \&ch Ar macroname Op Ar dist
508 Change a trap location.
510 .It Ic \&char Ar glyph Op Ar string
511 Define or redefine the ASCII character or character escape sequence
516 Only partially supported in
518 may interact incorrectly with
520 .It Ic \&chop Ar stringname
521 Remove the last character from a macro, string, or diversion.
522 Currently unsupported.
523 .It Ic \&class Ar classname char ...
524 Define a character class.
525 This is a groff extension and currently ignored.
526 .It Ic \&close Ar streamname
528 Ignored because insecure.
529 .It Ic \&CL Ar color text
531 This is a Heirloom extension and currently unsupported.
532 .It Ic \&color Op Cm 1 | 0
533 Activate or deactivate colors.
534 This is a groff extension and currently ignored.
535 .It Ic \&composite Ar from to
536 Define a name component for composite glyph names.
537 This is a groff extension and currently unsupported.
539 Immediately start the next iteration of a
542 Currently unsupported.
543 .It Ic \&cp Op Cm 1 | 0
546 compatibility mode on or off.
548 .It Ic \&cropat Ar left top width height
549 Set the CropBox page parameter for PDF generation.
550 This is a Heirloom extension and currently ignored.
551 .It Ic \&cs Ar font Op Ar width Op Ar emsize
552 Constant character spacing mode.
557 input lines including whitespace.
559 .It Ic \&da Ar divname
560 Append to a diversion.
561 Currently unsupported.
562 .It Ic \&dch Ar macroname Op Ar dist
563 Change a trap location in the current diversion.
564 This is a Heirloom extension and currently unsupported.
565 .It Ic \&de Ar macroname Op Ar endmacro
569 Its syntax can be either
570 .Bd -literal -offset indent
571 .Pf . Ic \&de Ar macroname
577 .Bd -literal -offset indent
578 .Pf . Ic \&de Ar macroname Ar endmacro
583 Both forms define or redefine the macro
587 which may consist of one or more input lines, including the newline
588 characters terminating each line, optionally containing calls to
592 macros or high-level macros like
596 macros, whichever applies to the document in question.
600 macro works in the same way as for
606 and after that, it is also evaluated as a
610 macro, but not as a high-level macro.
612 The macro can be invoked later using the syntax
614 .D1 Pf . Ar macroname Op Ar argument Op Ar argument ...
616 Regarding argument parsing, see
620 The line invoking the macro will be replaced
621 in the input stream by the
623 replacing all occurrences of
628 .Ar N Ns th Ar argument .
630 .Bd -literal -offset indent
632 \efI\e^\e\e$1\e^\efP\e\e$2
639 .D1 \efI\e^XtFree\e^\efP.
641 in the input stream, and thus in the output: \fI\^XtFree\^\fP.
642 Each occurrence of \e\e$* is replaced with all the arguments,
643 joined together with single space characters.
644 The variant \e\e$@ is similar, except that each argument is
647 Since macros and user-defined strings share a common string table,
650 clobbers the user-defined string
654 can also be printed using the
656 string interpolation syntax described below
658 but this is rarely useful because every macro definition contains at least
659 one explicit newline character.
661 In order to prevent endless recursion, both groff and
663 limit the stack depth for expanding macros and strings
664 to a large, but finite number, and
666 also limits the length of the expanded input line.
667 Do not rely on the exact values of these limits.
668 .It Ic \&de1 Ar macroname Op Ar endmacro
671 macro that will be executed with
673 compatibility mode switched off during macro execution.
674 This is a groff extension.
679 compatibility mode at all, it handles this request as an alias for
681 .It Ic \&defcolor Ar newname scheme component ...
683 This is a groff extension and currently ignored.
684 .It Ic \&dei Ar macrostring Op Ar endstring
687 macro, specifying the macro name indirectly (groff extension).
688 The syntax of this request is the same as that of
690 The effect is the same as:
692 .D1 Pf . Cm \&de No \e* Ns Bo Ar macrostring Bc Op \e* Ns Bq Ar endstring
693 .It Ic \&dei1 Ar macrostring Op Ar endstring
696 macro that will be executed with
698 compatibility mode switched off during macro execution,
699 specifying the macro name indirectly (groff extension).
704 compatibility mode at all, it handles this request as an alias for
706 .It Ic \&device Ar string ...
707 .It Ic \&devicem Ar stringname
708 These two requests only make sense with the groff-specific intermediate
709 output format and are unsupported.
710 .It Ic \&di Ar divname
712 Currently unsupported.
713 .It Ic \&do Ar command Op Ar argument ...
716 request or macro line with compatibility mode disabled.
717 Currently unsupported.
718 .It Ic \&ds Ar stringname Op Oo \(dq Oc Ns Ar string
719 Define a user-defined string.
724 arguments are space-separated.
727 begins with a double-quote character, that character will not be part
729 All remaining characters on the input line form the
731 including whitespace and double-quote characters, even trailing ones.
735 can be interpolated into subsequent text by using
736 .No \e* Ns Bq Ar stringname
739 of arbitrary length, or \e*(NN or \e*N if the length of
741 is two or one characters, respectively.
742 Interpolation can be prevented by escaping the leading backslash;
743 that is, an asterisk preceded by an even number of backslashes
744 does not trigger string interpolation.
746 Since user-defined strings and macros share a common string table,
753 used for defining a string can also be invoked as a macro,
754 in which case the following input line will be appended to the
756 forming a new input line passed to the
760 .Bd -literal -offset indent
771 Such abuse is of course strongly discouraged.
772 .It Ic \&ds1 Ar stringname Op Oo \(dq Oc Ns Ar string
773 Define a user-defined string that will be expanded with
775 compatibility mode switched off during string expansion.
776 This is a groff extension.
781 compatibility mode at all, it handles this request as an alias for
783 .It Ic \&dwh Ar dist macroname
784 Set a location trap in the current diversion.
785 This is a Heirloom extension and currently unsupported.
786 .It Ic \&dt Op Ar dist macroname
787 Set a trap within a diversion.
788 Currently unsupported.
789 .It Ic \&ec Op Ar char
790 Enable the escape mechanism and change the escape character.
793 argument defaults to the backslash
796 Restore the escape character.
797 Currently unsupported.
799 Save the escape character.
800 Currently unsupported.
804 half of an if/else conditional.
805 Pops a result off the stack of conditional evaluations pushed by
807 and uses it as its conditional.
808 If no stack entries are present (e.g., due to no prior
811 then false is assumed.
812 The syntax of this request is similar to
814 except that the conditional is missing.
815 .It Ic \&em Ar macroname
816 Set a trap at the end of input.
817 Currently unsupported.
819 End an equation block.
823 Disable the escape mechanism completely.
825 End a picture started by
827 This is a Heirloom extension and currently unsupported.
829 Begin an equation block.
832 for a description of the equation language.
833 .It Ic \&errprint Ar message
834 Print a string like an error message.
835 This is a Heirloom extension and currently ignored.
836 .It Ic \&ev Op Ar envname
837 Switch to another environment.
838 Currently unsupported.
839 .It Ic \&evc Op Ar envname
840 Copy an environment into the current environment.
841 Currently unsupported.
843 Abort processing and exit.
844 Currently unsupported.
845 .It Ic \&fallback Ar curfont font ...
846 Select the fallback sequence for a font.
847 This is a Heirloom extension and currently ignored.
848 .It Ic \&fam Op Ar familyname
849 Change the font family.
850 This is a groff extension and currently ignored.
851 .It Ic \&fc Op Ar delimchar Op Ar padchar
852 Define a delimiting and a padding character for fields.
853 Currently unsupported.
854 .It Ic \&fchar Ar glyphname Op Ar string
855 Define a fallback glyph.
856 Currently unsupported.
857 .It Ic \&fcolor Ar colorname
858 Set the fill color for \eD objects.
859 This is a groff extension and currently ignored.
860 .It Ic \&fdeferlig Ar font string ...
861 Defer ligature building.
862 This is a Heirloom extension and currently ignored.
863 .It Ic \&feature Cm + Ns | Ns Cm - Ns Ar name
864 Enable or disable an OpenType feature.
865 This is a Heirloom extension and currently ignored.
872 .It Ic \&fkern Ar font minkern
873 Control the use of kerning tables for a font.
874 This is a Heirloom extension and currently ignored.
878 .It Ic \&flig Ar font string char ...
880 This is a Heirloom extension and currently ignored.
881 .It Ic \&fp Ar position font Op Ar filename
882 Assign font position.
884 .It Ic \&fps Ar mapname ...
885 Mount a font with a special character map.
886 This is a Heirloom extension and currently ignored.
887 .It Ic \&fschar Ar font glyphname Op Ar string
888 Define a font-specific fallback glyph.
889 This is a groff extension and currently unsupported.
890 .It Ic \&fspacewidth Ar font Op Ar afmunits
891 Set a font-specific width for the space character.
892 This is a Heirloom extension and currently ignored.
893 .It Ic \&fspecial Ar curfont Op Ar font ...
894 Conditionally define a special font.
895 This is a groff extension and currently ignored.
896 .It Ic \&ft Op Ar font
900 arguments are supported:
901 .Bl -tag -width 4n -offset indent
902 .It Cm B , BI , CB , 3 , 4
910 .It Cm R , CR , CW , 1
911 switches to normal font
912 .It Cm P No "or no argument"
913 switches back to the previous font
916 This request takes effect only locally and may be overridden
917 by macros and escape sequences.
918 .It Ic \&ftr Ar newname Op Ar oldname
920 This is a groff extension and currently ignored.
921 .It Ic \&fzoom Ar font Op Ar permille
924 .It Ic \&gcolor Op Ar colorname
926 This is a groff extension and currently ignored.
927 .It Ic \&hc Op Ar char
928 Set the hyphenation character.
930 .It Ic \&hcode Ar char code ...
931 Set hyphenation codes of characters.
933 .It Ic \&hidechar Ar font char ...
934 Hide characters in a font.
935 This is a Heirloom extension and currently ignored.
936 .It Ic \&hla Ar language
937 Set hyphenation language.
938 This is a groff extension and currently ignored.
939 .It Ic \&hlm Op Ar number
940 Set maximum number of consecutive hyphenated lines.
942 .It Ic \&hpf Ar filename
943 Load hyphenation pattern file.
944 This is a groff extension and currently ignored.
945 .It Ic \&hpfa Ar filename
946 Load hyphenation pattern file, appending to the current patterns.
947 This is a groff extension and currently ignored.
948 .It Ic \&hpfcode Ar code code ...
949 Define mapping values for character codes in hyphenation patterns.
950 This is a groff extension and currently ignored.
951 .It Ic \&hw Ar word ...
952 Specify hyphenation points in words.
954 .It Ic \&hy Op Ar mode
955 Set automatic hyphenation mode.
957 .It Ic \&hylang Ar language
958 Set hyphenation language.
959 This is a Heirloom extension and currently ignored.
960 .It Ic \&hylen Ar nchar
961 Minimum word length for hyphenation.
962 This is a Heirloom extension and currently ignored.
963 .It Ic \&hym Op Ar length
964 Set hyphenation margin.
965 This is a groff extension and currently ignored.
966 .It Ic \&hypp Ar penalty ...
967 Define hyphenation penalties.
968 This is a Heirloom extension and currently ignored.
969 .It Ic \&hys Op Ar length
970 Set hyphenation space.
971 This is a groff extension and currently ignored.
972 .It Ic \&ie Ar condition body
975 half of an if/else conditional.
976 The result of the conditional is pushed into a stack used by subsequent
979 which may be separated by any intervening input (or not exist at all).
980 Its syntax is equivalent to
982 .It Ic \&if Ar condition body
984 This request can also be written as follows:
985 .Bd -unfilled -offset indent
986 .Pf . Ic \&if Ar condition No \e{ Ns Ar body
989 .Bd -unfilled -offset indent
990 .Pf . Ic \&if Ar condition No \e{\e
997 is a boolean expression.
1000 supports the following subset of roff conditionals:
1007 it is logically inverted.
1009 If the first character of
1017 it evaluates to true, and the
1019 starts with the next character.
1021 If the first character of
1031 it evaluates to false, and the
1033 starts with the next character.
1035 If the first character of
1039 .Pq character available ,
1040 it evaluates to true if the following character is an ASCII character
1041 or a valid character escape sequence, or to false otherwise.
1044 starts with the character following that next character.
1046 If the first character of
1050 it evaluates to true if the rest of
1052 is the name of an existing user defined macro or string;
1053 otherwise, it evaluates to false.
1055 If the first character of
1059 it evaluates to true if the rest of
1061 is the name of an existing number register;
1062 otherwise, it evaluates to false.
1066 starts with a parenthesis or with an optionally signed
1067 integer number, it is evaluated according to the rules of
1068 .Sx Numerical expressions
1070 It evaluates to true if the result is positive,
1071 or to false if the result is zero or negative.
1073 Otherwise, the first character of
1075 is regarded as a delimiter and it evaluates to true if the string
1076 extending from its first to its second occurrence is equal to the
1077 string extending from its second to its third occurrence.
1081 cannot be parsed, it evaluates to false.
1084 If a conditional is false, its children are not processed, but are
1085 syntactically interpreted to preserve the integrity of the input
1093 which may lead to interesting results, but
1095 .D1 \&.if t .if t \e{\e
1097 will continue to syntactically interpret to the block close of the final
1099 Sub-conditionals, in this case, obviously inherit the truth value of
1104 section is begun by an escaped brace
1106 scope continues until the end of the input line containing the
1107 matching closing-brace escape sequence
1111 is not enclosed in braces, scope continues until the end of the line.
1116 on the same line, whether after a brace or not, then requests and macros
1118 begin with a control character.
1119 It is generally more intuitive, in this case, to write
1120 .Bd -unfilled -offset indent
1121 .Pf . Ic \&if Ar condition No \e{\e
1126 than having the request or macro follow as
1128 .D1 Pf . Ic \&if Ar condition Pf \e{. Ar request
1130 The scope of a conditional is always parsed, but only executed if the
1131 conditional evaluates to true.
1135 is converted into a zero-width escape sequence if not passed as a
1144 being considered an argument of the
1147 .It Ic \&ig Op Ar endmacro
1149 Its syntax can be either
1150 .Bd -literal -offset indent
1157 .Bd -literal -offset indent
1158 .Pf . Cm \&ig Ar endmacro
1163 In the first case, input is ignored until a
1165 request is encountered on its own line.
1166 In the second case, input is ignored until the specified
1167 .Sq Pf . Ar endmacro
1169 Do not use the escape character
1171 anywhere in the definition of
1173 it would cause very strange behaviour.
1177 is a roff request or a roff macro, like in
1181 the subsequent invocation of
1183 will first terminate the
1185 then be invoked as usual.
1186 Otherwise, it only terminates the
1188 and arguments following it or the
1190 request are discarded.
1191 .It Ic \&in Op Oo Cm + Ns | Ns Cm - Oc Ns Ar width
1197 .It Ic \&index Ar register stringname substring
1198 Find a substring in a string.
1199 This is a Heirloom extension and currently unsupported.
1200 .It Ic \&it Ar expression macro
1201 Set an input line trap.
1204 will be invoked after processing the number of input text lines
1205 specified by the numerical
1207 While evaluating the
1209 the unit suffixes described below
1212 .It Ic \&itc Ar expression macro
1213 Set an input line trap, not counting lines ending with \ec.
1214 Currently unsupported.
1215 .It Ic \&IX Ar class keystring
1216 To support the generation of a table of contents,
1218 emits this user-defined macro, usually without defining it.
1219 To avoid reporting large numbers of spurious errors,
1222 .It Ic \&kern Op Cm 1 | 0
1223 Switch kerning on or off.
1225 .It Ic \&kernafter Ar font char ... afmunits ...
1226 Increase kerning after some characters.
1227 This is a Heirloom extension and currently ignored.
1228 .It Ic \&kernbefore Ar font char ... afmunits ...
1229 Increase kerning before some characters.
1230 This is a Heirloom extension and currently ignored.
1231 .It Ic \&kernpair Ar font char ... font char ... afmunits
1232 Add a kerning pair to the kerning table.
1233 This is a Heirloom extension and currently ignored.
1234 .It Ic \&lc Op Ar glyph
1235 Define a leader repetition character.
1236 Currently unsupported.
1237 .It Ic \&lc_ctype Ar localename
1241 This is a Heirloom extension and currently unsupported.
1242 .It Ic \&lds Ar macroname string
1243 Define a local string.
1244 This is a Heirloom extension and currently unsupported.
1245 .It Ic \&length Ar register string
1246 Count the number of input characters in a string.
1247 Currently unsupported.
1248 .It Ic \&letadj Ar lspmin lshmin letss lspmax lshmax
1249 Dynamic letter spacing and reshaping.
1250 This is a Heirloom extension and currently ignored.
1251 .It Ic \&lf Ar lineno Op Ar filename
1252 Change the line number for error messages.
1253 Ignored because insecure.
1254 .It Ic \&lg Op Cm 1 | 0
1255 Switch the ligature mechanism on or off.
1257 .It Ic \&lhang Ar font char ... afmunits
1258 Hang characters at left margin.
1259 This is a Heirloom extension and currently ignored.
1260 .It Ic \&linetabs Op Cm 1 | 0
1261 Enable or disable line-tabs mode.
1262 This is a groff extension and currently unsupported.
1263 .It Ic \&ll Op Oo Cm + Ns | Ns Cm - Oc Ns Ar width
1264 Change the output line length.
1267 argument is omitted, the line length is reset to its previous value.
1268 The default setting for terminal output is 78n.
1269 If a sign is given, the line length is added to or subtracted from;
1270 otherwise, it is set to the provided value.
1271 Using this request in new manuals is discouraged for several reasons,
1272 among others because it overrides the
1275 command line option.
1276 .It Ic \&lnr Ar register Oo Cm + Ns | Ns Cm - Oc Ns Ar value Op Ar increment
1277 Set local number register.
1278 This is a Heirloom extension and currently unsupported.
1279 .It Ic \&lnrf Ar register Oo Cm + Ns | Ns Cm - Oc Ns Ar value Op Ar increment
1280 Set local floating-point register.
1281 This is a Heirloom extension and currently unsupported.
1282 .It Ic \&lpfx Ar string
1284 This is a Heirloom extension and currently unsupported.
1285 .It Ic \&ls Op Ar factor
1287 It takes one integer argument specifying the vertical distance of
1288 subsequent output text lines measured in v units.
1290 .It Ic \&lsm Ar macroname
1291 Set a leading spaces trap.
1292 This is a groff extension and currently unsupported.
1293 .It Ic \< Op Oo Cm + Ns | Ns Cm - Oc Ns Ar width
1294 Set title line length.
1296 .It Ic \&mc Ar glyph Op Ar dist
1297 Print margin character in the right margin.
1300 is currently ignored; instead, 1n is used.
1301 .It Ic \&mediasize Ar media
1302 Set the device media size.
1303 This is a Heirloom extension and currently ignored.
1304 .It Ic \&minss Ar width
1305 Set minimum word space.
1306 This is a Heirloom extension and currently ignored.
1307 .It Ic \&mk Op Ar register
1308 Mark vertical position.
1310 .It Ic \&mso Ar filename
1311 Load a macro file using the search path.
1312 Ignored because insecure.
1314 Disable adjusting without changing the adjustment mode.
1316 .It Ic \&ne Op Ar height
1317 Declare the need for the specified minimum vertical space
1318 before the next trap or the bottom of the page.
1321 Switch to no-fill mode.
1327 Turn off automatic hyphenation mode.
1329 .It Ic \&nhychar Ar char ...
1330 Define hyphenation-inhibiting characters.
1331 This is a Heirloom extension and currently ignored.
1332 .It Ic \&nm Op Ar start Op Ar inc Op Ar space Op Ar indent
1334 Currently unsupported.
1335 .It Ic \&nn Op Ar number
1336 Temporarily turn off line numbering.
1337 Currently unsupported.
1338 .It Ic \&nop Ar body
1339 Execute the rest of the input line as a request, macro, or text line,
1342 request and any space characters immediately following it.
1343 This is mostly used to indent text lines inside macro definitions.
1344 .It Ic \&nr Ar register Oo Cm + Ns | Ns Cm - Oc Ns Ar expression Op Ar stepsize
1345 Define or change a register.
1346 A register is an arbitrary string value that defines some sort of state,
1347 which influences parsing and/or formatting.
1351 .Sx Numerical expressions
1353 If it is prefixed by a sign, the register will be
1354 incremented or decremented instead of assigned to.
1360 auto-increment feature.
1361 It remains unchanged when omitted while changing an existing register,
1362 and it defaults to 0 when defining a new register.
1366 is handled specially:
1369 If set to a positive integer value, certain
1371 macros will behave in the same way as in the
1374 If set to 0, these macros will behave in the same way as outside the
1376 section, even when called within the
1379 Note that starting a new
1383 macro will reset this register.
1386 .Ic \&nrf Ar register Oo Cm + Ns | Ns Cm - Oc Ns Ar expression
1389 Define or change a floating-point register.
1390 This is a Heirloom extension and currently unsupported.
1393 This is a groff extension and currently ignored.
1395 Turn on no-space mode.
1397 .It Ic \&nx Op Ar filename
1398 Abort processing of the current input file and process another one.
1399 Ignored because insecure.
1400 .It Ic \&open Ar stream file
1401 Open a file for writing.
1402 Ignored because insecure.
1403 .It Ic \&opena Ar stream file
1404 Open a file for appending.
1405 Ignored because insecure.
1407 Output saved vertical space.
1409 .It Ic \&output Ar string
1410 Output directly to intermediate output.
1412 .It Ic \&padj Op Cm 1 | 0
1413 Globally control paragraph-at-once adjustment.
1414 This is a Heirloom extension and currently ignored.
1415 .It Ic \&papersize Ar media
1417 This is a Heirloom extension and currently ignored.
1418 .It Ic \&pc Op Ar char
1419 Change the page number character.
1423 This is a groff extension and currently ignored.
1424 .It Ic \&pi Ar command
1425 Pipe output to a shell command.
1426 Ignored because insecure.
1428 Low-level request used by
1430 This is a Heirloom extension and currently unsupported.
1431 .It Ic \&pl Op Oo Cm + Ns | Ns Cm - Oc Ns Ar height
1435 Print names and sizes of macros, strings, and diversions
1436 to standard error output.
1438 .It Ic \&pn Oo Cm + Ns | Ns Cm - Oc Ns Ar number
1439 Change the page number of the next page.
1442 Print all number registers on standard error output.
1444 .It Ic \&po Op Oo Cm + Ns | Ns Cm - Oc Ns Ar offset
1445 Set a horizontal page offset.
1446 If no argument is specified, the page offset is reverted to its
1448 If a sign is specified, the new page offset is calculated relative
1449 to the current one; otherwise, it is absolute.
1450 The argument follows the syntax of
1452 and the default scaling unit is
1454 .It Ic \&ps Op Oo Cm + Ns | Ns Cm - Oc Ns size
1457 .It Ic \&psbb Ar filename
1458 Retrieve the bounding box of a PostScript file.
1459 Currently unsupported.
1460 .It Ic \&pshape Ar indent length ...
1461 Set a special shape for the current paragraph.
1462 This is a Heirloom extension and currently unsupported.
1463 .It Ic \&pso Ar command
1464 Include output of a shell command.
1465 Ignored because insecure.
1467 Print the names and positions of all traps on standard error output.
1468 This is a groff extension and currently ignored.
1469 .It Ic \&pvs Op Oo Cm + Ns | Ns Cm - Oc Ns Ar height
1470 Change post-vertical spacing.
1471 This is a groff extension and currently ignored.
1472 .It Ic \&rchar Ar glyph ...
1473 Remove glyph definitions.
1474 Currently unsupported.
1475 .It Ic \&rd Op Ar prompt Op Ar argument ...
1476 Read from standard input.
1478 .It Ic \&recursionlimit Ar maxrec maxtail
1479 Set the maximum stack depth for recursive macros.
1480 This is a Heirloom extension and currently ignored.
1481 .It Ic \&return Op Ar twice
1482 Exit the presently executed macro and return to the caller.
1483 The argument is currently ignored.
1484 .It Ic \&rfschar Ar font glyph ...
1485 Remove font-specific fallback glyph definitions.
1486 Currently unsupported.
1487 .It Ic \&rhang Ar font char ... afmunits
1488 Hang characters at right margin.
1489 This is a Heirloom extension and currently ignored.
1493 input lines to the right margin without filling.
1496 An argument of 0 or less ends right adjustment.
1497 .It Ic \&rm Ar macroname
1498 Remove a request, macro or string.
1499 .It Ic \&rn Ar oldname newname
1500 Rename a request, macro, diversion, or string.
1503 user-defined macros,
1507 macros, and user-defined strings can be renamed, but renaming of
1508 predefined strings and of
1510 requests is not supported, and diversions are not implemented at all.
1511 .It Ic \&rnn Ar oldname newname
1512 Rename a number register.
1513 Currently unsupported.
1514 .It Ic \&rr Ar register
1519 .It Ic \&rt Op Ar dist
1520 Return to marked vertical position.
1522 .It Ic \&schar Ar glyph Op Ar string
1523 Define global fallback glyph.
1524 This is a groff extension and currently unsupported.
1525 .It Ic \&sentchar Ar char ...
1526 Define sentence-ending characters.
1527 This is a Heirloom extension and currently ignored.
1528 .It Ic \&shc Op Ar glyph
1529 Change the soft hyphen character.
1531 .It Ic \&shift Op Ar number
1532 Shift macro arguments
1534 times, by default once: \e\e$i becomes what \e\e$i+number was.
1535 Also decrement \en(.$ by
1537 .It Ic \&sizes Ar size ...
1538 Define permissible point sizes.
1539 This is a groff extension and currently ignored.
1540 .It Ic \&so Ar filename
1541 Include a source file.
1542 The file is read and its contents processed as input in place of the
1545 To avoid inadvertent inclusion of unrelated files,
1547 only accepts relative paths not containing the strings
1552 This request requires
1554 to change to the right directory before calling
1556 per convention to the root of the manual tree.
1557 Typical usage looks like:
1559 .Dl \&.so man3/Xcursor.3
1561 As the whole concept is rather fragile, the use of
1567 .It Ic \&sp Op Ar height
1568 Break the output line and emit vertical space.
1569 The argument follows the syntax of
1571 and defaults to one blank line
1573 .It Ic \&spacewidth Op Cm 1 | 0
1574 Set the space width from the font metrics file.
1575 This is a Heirloom extension and currently ignored.
1576 .It Ic \&special Op Ar font ...
1577 Define a special font.
1578 This is a groff extension and currently ignored.
1579 .It Ic \&spreadwarn Op Ar width
1580 Warn about wide spacing between words.
1582 .It Ic \&ss Ar wordspace Op Ar sentencespace
1583 Set space character size.
1585 .It Ic \&sty Ar position style
1586 Associate style with a font position.
1587 This is a groff extension and currently ignored.
1588 .It Ic \&substring Ar stringname startpos Op Ar endpos
1589 Replace a user-defined string with a substring.
1590 Currently unsupported.
1591 .It Ic \&sv Op Ar height
1592 Save vertical space.
1594 .It Ic \&sy Ar command
1595 Execute shell command.
1596 Ignored because insecure.
1598 Re-start a table layout, retaining the options of the prior table
1602 .It Ic \&ta Op Ar width ... Op Cm T Ar width ...
1606 argument follows the syntax of
1607 .Sx Scaling Widths .
1608 If prefixed by a plus sign, it is relative to the previous tab stop.
1609 The arguments after the
1611 marker are used repeatedly as often as needed; for each reuse,
1612 they are taken relative to the last previously established tab stop.
1615 is called without arguments, all tab stops are cleared.
1616 .It Ic \&tc Op Ar glyph
1617 Change tab repetition character.
1618 Currently unsupported.
1620 End a table context.
1623 .It Ic \&ti Oo Cm + Ns | Ns Cm - Oc Ns Ar width
1624 Break the output line and indent the next output line by
1626 If a sign is specified, the temporary indentation is calculated
1627 relative to the current indentation; otherwise, it is absolute.
1628 The argument follows the syntax of
1630 and the default scaling unit is
1632 .It Ic \&tkf Ar font minps width1 maxps width2
1633 Enable track kerning for a font.
1635 .It Ic \&tl No \& Ap Ar left Ap Ar center Ap Ar right Ap
1637 Currently unsupported.
1638 .It Ic \&tm Ar string
1639 Print to standard error output.
1641 .It Ic \&tm1 Ar string
1642 Print to standard error output, allowing leading blanks.
1643 This is a groff extension and currently ignored.
1644 .It Ic \&tmc Ar string
1645 Print to standard error output without a trailing newline.
1646 This is a groff extension and currently ignored.
1647 .It Ic \&tr Ar glyph glyph ...
1648 Output character translation.
1649 The first glyph in each pair is replaced by the second one.
1650 Character escapes can be used; for example,
1654 replaces all invocations of \e(xx with \e(yy.
1655 .It Ic \&track Ar font minps width1 maxps width2
1656 Static letter space tracking.
1657 This is a Heirloom extension and currently ignored.
1658 .It Ic \&transchar Ar char ...
1659 Define transparent characters for sentence-ending.
1660 This is a Heirloom extension and currently ignored.
1661 .It Ic \&trf Ar filename
1662 Output the contents of a file, disallowing invalid characters.
1663 This is a groff extension and ignored because insecure.
1664 .It Ic \&trimat Ar left top width height
1665 Set the TrimBox page parameter for PDF generation.
1666 This is a Heirloom extension and currently ignored.
1667 .It Ic \&trin Ar glyph glyph ...
1668 Output character translation, ignored by
1670 Currently unsupported.
1671 .It Ic \&trnt Ar glyph glyph ...
1672 Output character translation, ignored by \e!.
1673 Currently unsupported.
1676 This is a groff extension and currently ignored.
1678 Begin a table, which formats input in aligned rows and columns.
1681 for a description of the tbl language.
1683 Globally set the underline font.
1690 .It Ic \&unformat Ar divname
1691 Unformat spaces and tabs in a diversion.
1692 Currently unsupported.
1693 .It Ic \&unwatch Ar macroname
1694 Disable notification for string or macro.
1695 This is a Heirloom extension and currently ignored.
1696 .It Ic \&unwatchn Ar register
1697 Disable notification for register.
1698 This is a Heirloom extension and currently ignored.
1699 .It Ic \&vpt Op Cm 1 | 0
1700 Enable or disable vertical position traps.
1701 This is a groff extension and currently ignored.
1702 .It Ic \&vs Op Oo Cm + Ns | Ns Cm - Oc Ns Ar height
1703 Change vertical spacing.
1705 .It Ic \&warn Ar flags
1708 .It Ic \&warnscale Ar si
1709 Set the scaling indicator used in warnings.
1710 This is a groff extension and currently ignored.
1711 .It Ic \&watch Ar macroname
1712 Notify on change of string or macro.
1713 This is a Heirloom extension and currently ignored.
1714 .It Ic \&watchlength Ar maxlength
1715 On change, report the contents of macros and strings
1716 up to the specified length.
1717 This is a Heirloom extension and currently ignored.
1718 .It Ic \&watchn Ar register
1719 Notify on change of register.
1720 This is a Heirloom extension and currently ignored.
1721 .It Ic \&wh Ar dist Op Ar macroname
1722 Set a page location trap.
1723 Currently unsupported.
1724 .It Ic \&while Ar condition body
1725 Repeated execution while a
1727 is true, with syntax similar to
1729 Currently implemented with two restrictions: cannot nest,
1730 and each loop must start and end in the same scope.
1731 .It Ic \&write Oo \(dq Oc Ns Ar string
1732 Write to an open file.
1733 Ignored because insecure.
1734 .It Ic \&writec Oo \(dq Oc Ns Ar string
1735 Write to an open file without appending a newline.
1736 Ignored because insecure.
1737 .It Ic \&writem Ar macroname
1738 Write macro or string to an open file.
1739 Ignored because insecure.
1740 .It Ic \&xflag Ar level
1741 Set the extension level.
1742 This is a Heirloom extension and currently ignored.
1744 .Ss Numerical expressions
1750 requests accept integer numerical expressions as arguments.
1751 These are always evaluated using the C
1753 type; integer overflow works the same way as in the C language.
1754 Numbers consist of an arbitrary number of digits
1758 prefixed by an optional sign
1762 Each number may be followed by one optional scaling unit described below
1763 .Sx Scaling Widths .
1764 The following equations hold:
1765 .Bd -literal -offset indent
1766 1i = 6v = 6P = 10m = 10n = 72p = 1000M = 240u = 240
1767 254c = 100i = 24000u = 24000
1771 The following binary operators are implemented.
1772 Unless otherwise stated, they behave as in the C language:
1774 .Bl -tag -width 2n -compact
1784 remainder of division
1792 equal to, same effect as
1794 (this differs from C)
1796 less than or equal to
1798 greater than or equal to
1800 not equal to (corresponds to C
1802 this one is of limited portability, it is supported by Heirloom roff,
1805 logical and (corresponds to C
1808 logical or (corresponds to C
1811 minimum (not available in C)
1813 maximum (not available in C)
1816 There is no concept of precedence; evaluation proceeds from left to right,
1817 except when subexpressions are enclosed in parentheses.
1818 Inside parentheses, whitespace is ignored.
1819 .Sh ESCAPE SEQUENCE REFERENCE
1823 parser recognises the following escape sequences.
1826 language defines more escape sequences not implemented in
1832 documents, using escape sequences is discouraged except for those
1837 A backslash followed by any character not listed here
1838 simply prints that character itself.
1840 A backslash at the end of an input line can be used to continue the
1841 logical input line on the next physical input line, joining the text
1842 on both lines together as if it were on a single input line.
1844 The escape sequence backslash-space
1846 is an unpaddable space-sized non-breaking space character; see
1849 The rest of the input line is treated as
1852 Line continuation with comment.
1853 Discard the rest of the physical input line and continue the logical
1854 input line on the next physical input line, joining the text on
1855 both lines together as if it were on a single input line.
1856 This is a groff extension.
1858 Macro argument expansion, see
1861 Hyphenation allowed at this point of the word; ignored by
1864 Non-printing zero-width character; see
1867 Acute accent special character; use
1871 .Sx Special Characters
1872 with two-letter names, see
1874 .Ss \e* Ns Bq Ar name
1875 Interpolate the string with the
1877 For short names, there are variants
1882 One string is predefined on the
1884 language level: \e*(.T expands to the name of the output device,
1885 for example ascii, utf8, ps, pdf, html, or markdown.
1887 Macro sets traditionally predefine additional strings which are not
1888 portable and differ across implementations.
1894 Strings can be defined, changed, and deleted with the
1901 Left italic correction (groff extension); ignored by
1905 .Dq mathematical minus sign .
1907 Right italic correction (groff extension); ignored by
1909 .Ss \e Ns Bq Ar name
1910 .Sx Special Characters
1911 with names of arbitrary length, see
1914 One-twelfth em half-narrow space character, effectively zero-width in
1917 Grave accent special character; use
1921 Begin conditional input; see
1924 One-sixth em narrow space character, effectively zero-width in
1927 End conditional input; see
1930 Paddable non-breaking space character.
1932 Digit width space character.
1933 .Ss \eA\(aq Ns Ar string Ns \(aq
1934 Anchor definition; ignored by
1936 .Ss \eB\(aq Ns Ar string Ns \(aq
1941 conforms to the syntax of
1942 .Sx Numerical expressions
1946 .Ss \eb\(aq Ns Ar string Ns \(aq
1947 Bracket building function; ignored by
1949 .Ss \eC\(aq Ns Ar name Ns \(aq
1950 .Sx Special Characters
1951 with names of arbitrary length.
1953 When encountered at the end of an input text line,
1954 the next input text line is considered to continue that line,
1955 even if there are request or macro lines in between.
1956 No whitespace is inserted.
1957 .Ss \eD\(aq Ns Ar string Ns \(aq
1958 Draw graphics function; ignored by
1961 Move down by half a line; ignored by
1964 Backslash special character.
1965 .Ss \eF Ns Bq Ar name
1966 Switch font family (groff extension); ignored by
1968 For short names, there are variants
1972 .Ss \ef Ns Bq Ar name
1976 .Sx Text Decoration .
1977 For short names, there are variants
1981 .Ss \eg Ns Bq Ar name
1982 Interpolate the format of a number register; ignored by
1984 For short names, there are variants
1988 .Ss \eH\(aq Ns Oo +|- Oc Ns Ar number Ns \(aq
1989 Set the height of the current font; ignored by
1991 .Ss \eh\(aq Ns Oo Cm \&| Oc Ns Ar width Ns \(aq
1993 If the vertical bar is given, the motion is relative to the current
1995 Otherwise, it is relative to the current position.
1996 The default scaling unit is
1998 .Ss \ek Ns Bq Ar name
1999 Mark horizontal input place in register; ignored by
2001 For short names, there are variants
2005 .Ss \eL\(aq Ns Ar number Ns Oo Ar c Oc Ns \(aq
2006 Vertical line drawing function; ignored by
2008 .Ss \el\(aq Ns Ar width Ns Oo Ar c Oc Ns \(aq
2009 Draw a horizontal line of
2013 .Ss \eM Ns Bq Ar name
2014 Set fill (background) color (groff extension); ignored by
2016 For short names, there are variants
2020 .Ss \em Ns Bq Ar name
2021 Set glyph drawing color (groff extension); ignored by
2023 For short names, there are variants
2027 .Ss \eN\(aq Ns Ar number Ns \(aq
2030 on the current font.
2031 .Ss \en Ns Oo +|- Oc Ns Bq Ar name
2032 Interpolate the number register
2034 For short names, there are variants
2038 If the optional sign is specified,
2039 the register is first incremented or decremented by the
2041 that was specified in the relevant
2043 request, and the changed value is interpolated.
2044 .Ss \eo\(aq Ns Ar string Ns \(aq
2045 Overstrike, writing all the characters contained in the
2047 to the same output position.
2048 In terminal and HTML output modes,
2049 only the last one of the characters is visible.
2051 Break the output line at the end of the current word.
2052 .Ss \eR\(aq Ns Ar name Oo +|- Oc Ns Ar number Ns \(aq
2053 Set number register; ignored by
2055 .Ss \eS\(aq Ns Ar number Ns \(aq
2056 Slant output; ignored by
2058 .Ss \es\(aq Ns Oo +|- Oc Ns Ar number Ns \(aq
2059 Change point size; ignored by
2062 .No \es Ns Oo +|- Oc Ns Ar n ,
2063 .No \es Ns Oo +|- Oc Ns \(aq Ns Ar number Ns \(aq ,
2064 .No \es Ns Bq Oo +|- Oc Ns Ar number ,
2066 .No \es Ns Oo +|- Oc Ns Bq Ar number
2067 are also parsed and ignored.
2069 Horizontal tab; ignored by
2072 Move up by half a line; ignored by
2074 .Ss \eV Ns Bq Ar name
2075 Interpolate an environment variable; ignored by
2077 For short names, there are variants
2081 .Ss \ev\(aq Ns Ar number Ns \(aq
2082 Vertical motion; ignored by
2084 .Ss \ew\(aq Ns Ar string Ns \(aq
2085 Interpolate the width of the
2089 implementation assumes that after expansion of user-defined strings, the
2091 only contains normal characters, no escape sequences, and that each
2092 character has a width of 24 basic units.
2093 .Ss \eX\(aq Ns Ar string Ns \(aq
2096 as device control function; ignored in nroff mode and by
2098 .Ss \ex\(aq Ns Ar number Ns \(aq
2099 Extra line space function; ignored by
2101 .Ss \eY Ns Bq Ar name
2102 Output a string as a device control function; ignored in nroff mode and by
2104 For short names, there are variants
2108 .Ss \eZ\(aq Ns Ar string Ns \(aq
2111 with zero width and height; ignored by
2114 Output the next character without advancing the cursor position.
2118 implementation of the
2120 language is intentionally incomplete.
2121 Unimplemented features include:
2125 For security reasons,
2127 never reads or writes external files except via
2129 requests with safe relative paths.
2131 There is no automatic hyphenation, no adjustment to the right margin,
2132 and no centering; the output is always set flush-left.
2134 Support for setting tabulator positions
2135 and tabulator and leader characters is missing,
2136 and support for manually changing indentation is limited.
2140 scaling unit is the default terminal unit.
2141 In traditional troff systems, this unit changes depending on the
2144 Width measurements are implemented in a crude way
2145 and often yield wrong results.
2146 Explicit movement requests and escapes are ignored.
2148 There is no concept of output pages, no support for floats,
2149 graphics drawing, and picture inclusion;
2150 terminal output is always continuous.
2152 Requests regarding color, font families, and glyph manipulation
2154 Font support is very limited.
2155 Kerning is not implemented, and no ligatures are produced.
2159 macro control character does not suppress output line breaks.
2161 Diversions are not implemented,
2162 and support for traps is very incomplete.
2165 The special semantics of the
2167 number register is an idiosyncracy of
2169 manuals and not supported by other
2180 .%A Joseph F. Ossanna
2181 .%A Brian W. Kernighan
2182 .%I AT&T Bell Laboratories
2183 .%T Troff User's Manual
2184 .%R Computing Science Technical Report
2186 .%C Murray Hill, New Jersey
2188 .%U http://www.kohala.com/start/troff/cstr54.ps
2191 .%A Joseph F. Ossanna
2192 .%A Brian W. Kernighan
2194 .%T Heirloom Documentation Tools Nroff/Troff User's Manual
2195 .%D September 17, 2007
2196 .%U http://heirloom.sourceforge.net/doctools/troff.pdf
2199 The RUNOFF typesetting system, whose input forms the basis for
2201 was written in MAD and FAP for the CTSS operating system by Jerome E.
2203 Doug McIlroy rewrote it in BCPL in 1969, renaming it
2205 Dennis M. Ritchie rewrote McIlroy's
2207 in PDP-11 assembly for
2209 Joseph F. Ossanna improved roff and renamed it nroff
2212 then ported nroff to C as troff, which Brian W. Kernighan released with
2214 In 1989, James Clarke re-implemented troff in C++, naming it groff.
2219 reference was written by
2220 .An Kristaps Dzonsons Aq Mt kristaps@bsd.lv
2222 .An Ingo Schwarze Aq Mt schwarze@openbsd.org .