1 .\" $Id: roff.7,v 1.111 2019/01/01 03:45:29 schwarze Exp $
3 .\" Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
4 .\" Copyright (c) 2010-2019 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: January 1 2019 $
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 subset of
45 Even though this manual page lists all
47 requests and escape sequences, it only contains partial information
48 about requests not supported by
50 and about language features that do not matter for manual pages.
57 Input lines beginning with the control character
59 are parsed for requests and macros.
65 Requests change the processing state and manipulate the formatting;
66 some macros also define the document structure and produce formatted
70 is accepted as an alternative control character,
76 Lines not beginning with control characters are called
78 They provide free-form text to be printed; the formatting of the text
79 depends on the respective processing context.
82 documents may contain only graphable 7-bit ASCII characters, the space
83 character, and, in certain circumstances, the tab character.
84 The backslash character
86 indicates the start of an escape sequence, used for example for
89 .Sx Special Characters .
90 For a complete listing of escape sequences, consult the
91 .Sx ESCAPE SEQUENCE REFERENCE
94 Text following an escaped double-quote
96 whether in a request, macro, or text line, is ignored to the end of the line.
97 A request line beginning with a control character and comment escape
100 Furthermore, request lines with only a control character and optional
101 trailing whitespace are stripped from input.
104 .Bd -literal -offset indent -compact
105 \&.\e\(dq This is a comment line.
106 \&.\e\(dq The next line is ignored:
108 \&.Sh EXAMPLES \e\(dq This is a comment, too.
109 \&example text \e\(dq And so is this.
111 .Ss Special Characters
112 Special characters are used to encode special glyphs and are rendered
113 differently across output media.
114 They may occur in request, macro, and text lines.
115 Sequences begin with the escape character
117 followed by either an open-parenthesis
119 for two-character sequences; an open-bracket
121 for n-character sequences (terminated at a close-bracket
123 or a single one character sequence.
126 .Bl -tag -width Ds -offset indent -compact
128 Two-letter em dash escape.
130 One-letter backslash escape.
141 documents, fonts are usually selected with macros.
144 escape sequence and the
146 request can be used to manually change the font,
147 but this is not recommended in
150 Such manual font changes are overridden by many subsequent macros.
152 The following fonts are supported:
154 .Bl -tag -width CW -offset indent -compact
158 A font that is both bold and italic.
160 Bold constant width font.
165 Italic constant width font.
170 Regular constant width font.
180 Return to the previous font.
181 If a macro caused a font change since the last
185 request, this returns to the font before the last font change in
186 the macro rather than to the font before the last manual font change.
189 This is the default font.
205 .Bl -tag -width Ds -offset indent -compact
207 Write in \fBbold\fP, then switch to regular font mode.
208 .It Li \efIitalic\efP
209 Write in \fIitalic\fP, then return to previous font mode.
210 .It Li \ef(BIbold italic\efP
211 Write in \f(BIbold italic\fP, then return to previous font mode.
214 Whitespace consists of the space character.
215 In text lines, whitespace is preserved within a line.
216 In request and macro lines, whitespace delimits arguments and is discarded.
218 Unescaped trailing spaces are stripped from text line input unless in a
220 In general, trailing whitespace on any input line is discouraged for
221 reasons of portability.
222 In the rare case that a space character is needed at the end of an
223 input line, it may be forced by
226 Literal space characters can be produced in the output
227 using escape sequences.
228 In macro lines, they can also be included in arguments using quotation; see
232 Blank text lines, which may include whitespace, are only permitted
233 within literal contexts.
234 If the first character of a text line is a space, that line is printed
235 with a leading newline.
237 Many requests and macros support scaled widths for their arguments.
238 The syntax for a scaled width is
239 .Sq Li [+-]?[0-9]*.[0-9]*[:unit:] ,
240 where a decimal must be preceded or followed by at least one digit.
242 The following scaling units are accepted:
244 .Bl -tag -width Ds -offset indent -compact
258 default vertical span
270 default horizontal span for the terminal
275 Using anything other than
280 is necessarily non-portable across output media.
284 If a scaling unit is not provided, the numerical value is interpreted
285 under the default rules of
287 for vertical spaces and
292 .Bl -tag -width ".Bl -tag -width 2i" -offset indent -compact
293 .It Li \&.Bl -tag -width 2i
294 two-inch tagged list indentation in
297 two-inch tagged list indentation in
303 Each sentence should terminate at the end of an input line.
304 By doing this, a formatter will be able to apply the proper amount of
305 spacing after the end of sentence (unescaped) period, exclamation mark,
306 or question mark followed by zero or more non-sentence closing
315 The proper spacing is also intelligently preserved if a sentence ends at
316 the boundary of a macro line.
319 .Bd -literal -offset indent -compact
320 Do not end sentences mid-line like this. Instead,
321 end a sentence like this.
322 A macro would end like this:
326 A request or macro line consists of:
330 the control character
334 at the beginning of the line,
336 optionally an arbitrary amount of whitespace,
338 the name of the request or the macro, which is one word of arbitrary
339 length, terminated by whitespace,
341 and zero or more arguments delimited by whitespace.
344 Thus, the following request lines are all equivalent:
345 .Bd -literal -offset indent
351 Macros are provided by the
355 languages and can be defined by the
358 When called, they follow the same syntax as requests, except that
359 macro arguments may optionally be quoted by enclosing them
360 in double quote characters
362 Quoted text, even if it contains whitespace or would cause
363 a macro invocation when unquoted, is always considered literal text.
364 Inside quoted text, pairs of double quote characters
366 resolve to single double quote characters.
368 To be recognised as the beginning of a quoted argument, the opening
369 quote character must be preceded by a space character.
370 A quoted argument extends to the next double quote character that is not
371 part of a pair, or to the end of the input line, whichever comes earlier.
372 Leaving out the terminating double quote character at the end of the line
374 For clarity, if more arguments follow on the same input line,
375 it is recommended to follow the terminating double quote character
376 by a space character; in case the next character after the terminating
377 double quote character is anything else, it is regarded as the beginning
378 of the next, unquoted argument.
380 Both in quoted and unquoted arguments, pairs of backslashes
382 resolve to single backslashes.
383 In unquoted arguments, space characters can alternatively be included
384 by preceding them with a backslash
386 but quoting is usually better for clarity.
389 .Bl -tag -width Ds -offset indent -compact
390 .It Li .Fn strlen \(dqconst char *s\(dq
393 into one function argument.
399 would be considered separate arguments.
400 .It Li .Op \(dqFl a\(dq
403 as literal text instead of a flag macro.
405 .Sh REQUEST REFERENCE
409 parser recognises the following requests.
410 For requests marked as "ignored" or "unsupported", any arguments are
411 ignored, and the number of arguments is not checked.
413 .It Ic \&ab Op Ar message
415 Currently unsupported.
416 .It Ic \&ad Op Cm b | c | l | n | r
417 Set line adjustment mode for subsequent text.
419 .It Ic \&af Ar registername format
420 Assign an output format to a number register.
422 .It Ic \&aln Ar newname oldname
423 Create an alias for a number register.
424 Currently unsupported.
425 .It Ic \&als Ar newname oldname
426 Create an alias for a request, string, macro, or diversion.
427 .It Ic \&am Ar macroname Op Ar endmacro
428 Append to a macro definition.
429 The syntax of this request is the same as that of
431 .It Ic \&am1 Ar macroname Op Ar endmacro
432 Append to a macro definition, switching roff compatibility mode off
433 during macro execution (groff extension).
434 The syntax of this request is the same as that of
440 compatibility mode at all, it handles this request as an alias for
442 .It Ic \&ami Ar macrostring Op Ar endstring
443 Append to a macro definition, specifying the macro name indirectly
445 The syntax of this request is the same as that of
447 .It Ic \&ami1 Ar macrostring Op Ar endstring
448 Append to a macro definition, specifying the macro name indirectly
449 and switching roff compatibility mode off during macro execution
451 The syntax of this request is the same as that of
457 compatibility mode at all, it handles this request as an alias for
459 .It Ic \&as Ar stringname Op Ar string
460 Append to a user-defined string.
461 The syntax of this request is the same as that of
463 If a user-defined string with the specified name does not yet exist,
464 it is set to the empty string before appending.
465 .It Ic \&as1 Ar stringname Op Ar string
466 Append to a user-defined string, switching roff compatibility mode off
467 during macro execution (groff extension).
468 The syntax of this request is the same as that of
474 compatibility mode at all, it handles this request as an alias for
476 .It Ic \&asciify Ar divname
477 Fully unformat a diversion.
478 Currently unsupported.
480 Print a backtrace of the input stack.
481 This is a groff extension and currently ignored.
482 .It Ic \&bd Ar font Oo Ar curfont Oc Op Ar offset
483 Artificially embolden by repeated printing with small shifts.
485 .It Ic \&bleedat Ar left top width height
486 Set the BleedBox page parameter for PDF generation.
487 This is a Heirloom extension and currently ignored.
488 .It Ic \&blm Ar macroname
489 Set a blank line trap.
490 Currently unsupported.
491 .It Ic \&box Ar divname
492 Begin a diversion without including a partially filled line.
493 Currently unsupported.
494 .It Ic \&boxa Ar divname
495 Add to a diversion without including a partially filled line.
496 Currently unsupported.
497 .It Ic \&bp Oo Cm + Ns | Ns Cm - Oc Ns Ar pagenumber
500 .It Ic \&BP Ar source height width position offset flags label
501 Define a frame and place a picture in it.
502 This is a Heirloom extension and currently unsupported.
504 Break the output line.
509 Currently unsupported.
510 .It Ic \&breakchar Ar char ...
511 Optional line break characters.
512 This is a Heirloom extension and currently ignored.
514 Break output line after the next
517 This is a Heirloom extension and currently ignored.
519 Break and spread output line.
520 Currently, this is implemented as an alias for
523 Break and spread output line after the next
526 This is a Heirloom extension and currently ignored.
527 .It Ic \&c2 Op Ar char
528 Change the no-break control character.
529 Currently unsupported.
530 .It Ic \&cc Op Ar char
531 Change the control character.
534 is not specified, the control character is reset to
536 Trailing characters are ignored.
540 input lines without filling.
543 An argument of 0 or less ends centering.
544 Currently, high level macros abort centering.
545 .It Ic \&cf Ar filename
546 Output the contents of a file.
547 Ignored because insecure.
548 .It Ic \&cflags Ar flags char ...
550 This is a groff extension and currently ignored.
551 .It Ic \&ch Ar macroname Op Ar dist
552 Change a trap location.
554 .It Ic \&char Ar glyph Op Ar string
555 Define or redefine the ASCII character or character escape sequence
560 Only partially supported in
562 may interact incorrectly with
564 .It Ic \&chop Ar stringname
565 Remove the last character from a macro, string, or diversion.
566 Currently unsupported.
567 .It Ic \&class Ar classname char ...
568 Define a character class.
569 This is a groff extension and currently ignored.
570 .It Ic \&close Ar streamname
572 Ignored because insecure.
573 .It Ic \&CL Ar color text
575 This is a Heirloom extension and currently unsupported.
576 .It Ic \&color Op Cm 1 | 0
577 Activate or deactivate colors.
578 This is a groff extension and currently ignored.
579 .It Ic \&composite Ar from to
580 Define a name component for composite glyph names.
581 This is a groff extension and currently unsupported.
583 Immediately start the next iteration of a
586 Currently unsupported.
587 .It Ic \&cp Op Cm 1 | 0
590 compatibility mode on or off.
592 .It Ic \&cropat Ar left top width height
593 Set the CropBox page parameter for PDF generation.
594 This is a Heirloom extension and currently ignored.
595 .It Ic \&cs Ar font Op Ar width Op Ar emsize
596 Constant character spacing mode.
601 input lines including whitespace.
603 .It Ic \&da Ar divname
604 Append to a diversion.
605 Currently unsupported.
606 .It Ic \&dch Ar macroname Op Ar dist
607 Change a trap location in the current diversion.
608 This is a Heirloom extension and currently unsupported.
609 .It Ic \&de Ar macroname Op Ar endmacro
613 Its syntax can be either
614 .Bd -literal -offset indent
615 .Pf . Ic \&de Ar macroname
621 .Bd -literal -offset indent
622 .Pf . Ic \&de Ar macroname Ar endmacro
627 Both forms define or redefine the macro
631 which may consist of one or more input lines, including the newline
632 characters terminating each line, optionally containing calls to
636 macros or high-level macros like
640 macros, whichever applies to the document in question.
644 works in the same way as for
650 and after that, it is also evaluated as a
654 macro, but not as a high-level macro.
656 The macro can be invoked later using the syntax
658 .D1 Pf . Ar macroname Op Ar argument Op Ar argument ...
660 Regarding argument parsing, see
664 The line invoking the macro will be replaced
665 in the input stream by the
667 replacing all occurrences of
672 .Ar N Ns th Ar argument .
674 .Bd -literal -offset indent
676 \efI\e^\e\e$1\e^\efP\e\e$2
683 .D1 \efI\e^XtFree\e^\efP.
685 in the input stream, and thus in the output: \fI\^XtFree\^\fP.
686 Each occurrence of \e\e$* is replaced with all the arguments,
687 joined together with single space characters.
688 The variant \e\e$@ is similar, except that each argument is
691 Since macros and user-defined strings share a common string table,
694 clobbers the user-defined string
698 can also be printed using the
700 string interpolation syntax described below
702 but this is rarely useful because every macro definition contains at least
703 one explicit newline character.
705 In order to prevent endless recursion, both groff and
707 limit the stack depth for expanding macros and strings
708 to a large, but finite number, and
710 also limits the length of the expanded input line.
711 Do not rely on the exact values of these limits.
712 .It Ic \&de1 Ar macroname Op Ar endmacro
715 macro that will be executed with
717 compatibility mode switched off during macro execution.
718 This is a groff extension.
723 compatibility mode at all, it handles this request as an alias for
725 .It Ic \&defcolor Ar newname scheme component ...
727 This is a groff extension and currently ignored.
728 .It Ic \&dei Ar macrostring Op Ar endstring
731 macro, specifying the macro name indirectly (groff extension).
732 The syntax of this request is the same as that of
734 The effect is the same as:
736 .D1 Pf . Cm \&de No \e* Ns Bo Ar macrostring Bc Op \e* Ns Bq Ar endstring
737 .It Ic \&dei1 Ar macrostring Op Ar endstring
740 macro that will be executed with
742 compatibility mode switched off during macro execution,
743 specifying the macro name indirectly (groff extension).
748 compatibility mode at all, it handles this request as an alias for
750 .It Ic \&device Ar string ...
751 .It Ic \&devicem Ar stringname
752 These two requests only make sense with the groff-specific intermediate
753 output format and are unsupported.
754 .It Ic \&di Ar divname
756 Currently unsupported.
757 .It Ic \&do Ar command Op Ar argument ...
760 request or macro line with compatibility mode disabled.
761 Currently unsupported.
762 .It Ic \&ds Ar stringname Op Oo \(dq Oc Ns Ar string
763 Define a user-defined string.
768 arguments are space-separated.
771 begins with a double-quote character, that character will not be part
773 All remaining characters on the input line form the
775 including whitespace and double-quote characters, even trailing ones.
779 can be interpolated into subsequent text by using
780 .No \e* Ns Bq Ar stringname
783 of arbitrary length, or \e*(NN or \e*N if the length of
785 is two or one characters, respectively.
786 Interpolation can be prevented by escaping the leading backslash;
787 that is, an asterisk preceded by an even number of backslashes
788 does not trigger string interpolation.
790 Since user-defined strings and macros share a common string table,
797 used for defining a string can also be invoked as a macro,
798 in which case the following input line will be appended to the
800 forming a new input line passed to the
804 .Bd -literal -offset indent
815 Such abuse is of course strongly discouraged.
816 .It Ic \&ds1 Ar stringname Op Oo \(dq Oc Ns Ar string
817 Define a user-defined string that will be expanded with
819 compatibility mode switched off during string expansion.
820 This is a groff extension.
825 compatibility mode at all, it handles this request as an alias for
827 .It Ic \&dwh Ar dist macroname
828 Set a location trap in the current diversion.
829 This is a Heirloom extension and currently unsupported.
830 .It Ic \&dt Op Ar dist macroname
831 Set a trap within a diversion.
832 Currently unsupported.
833 .It Ic \&ec Op Ar char
834 Enable the escape mechanism and change the escape character.
837 argument defaults to the backslash
840 Restore the escape character.
841 Currently unsupported.
843 Save the escape character.
844 Currently unsupported.
848 half of an if/else conditional.
849 Pops a result off the stack of conditional evaluations pushed by
851 and uses it as its conditional.
852 If no stack entries are present (e.g., due to no prior
855 then false is assumed.
856 The syntax of this request is similar to
858 except that the conditional is missing.
859 .It Ic \&em Ar macroname
860 Set a trap at the end of input.
861 Currently unsupported.
863 End an equation block.
867 Disable the escape mechanism completely.
869 End a picture started by
871 This is a Heirloom extension and currently unsupported.
873 Begin an equation block.
876 for a description of the equation language.
877 .It Ic \&errprint Ar message
878 Print a string like an error message.
879 This is a Heirloom extension and currently ignored.
880 .It Ic \&ev Op Ar envname
881 Switch to another environment.
882 Currently unsupported.
883 .It Ic \&evc Op Ar envname
884 Copy an environment into the current environment.
885 Currently unsupported.
887 Abort processing and exit.
888 Currently unsupported.
889 .It Ic \&fallback Ar curfont font ...
890 Select the fallback sequence for a font.
891 This is a Heirloom extension and currently ignored.
892 .It Ic \&fam Op Ar familyname
893 Change the font family.
894 This is a groff extension and currently ignored.
895 .It Ic \&fc Op Ar delimchar Op Ar padchar
896 Define a delimiting and a padding character for fields.
897 Currently unsupported.
898 .It Ic \&fchar Ar glyphname Op Ar string
899 Define a fallback glyph.
900 Currently unsupported.
901 .It Ic \&fcolor Ar colorname
902 Set the fill color for \eD objects.
903 This is a groff extension and currently ignored.
904 .It Ic \&fdeferlig Ar font string ...
905 Defer ligature building.
906 This is a Heirloom extension and currently ignored.
907 .It Ic \&feature Cm + Ns | Ns Cm - Ns Ar name
908 Enable or disable an OpenType feature.
909 This is a Heirloom extension and currently ignored.
911 Break the output line and switch to fill mode,
912 which is active by default but can be ended with the
915 In fill mode, input from subsequent input lines is added to
916 the same output line until the next word no longer fits,
917 at which point the output line is broken.
918 This request is implied by the
928 .It Ic \&fkern Ar font minkern
929 Control the use of kerning tables for a font.
930 This is a Heirloom extension and currently ignored.
934 .It Ic \&flig Ar font string char ...
936 This is a Heirloom extension and currently ignored.
937 .It Ic \&fp Ar position font Op Ar filename
938 Assign font position.
940 .It Ic \&fps Ar mapname ...
941 Mount a font with a special character map.
942 This is a Heirloom extension and currently ignored.
943 .It Ic \&fschar Ar font glyphname Op Ar string
944 Define a font-specific fallback glyph.
945 This is a groff extension and currently unsupported.
946 .It Ic \&fspacewidth Ar font Op Ar afmunits
947 Set a font-specific width for the space character.
948 This is a Heirloom extension and currently ignored.
949 .It Ic \&fspecial Ar curfont Op Ar font ...
950 Conditionally define a special font.
951 This is a groff extension and currently ignored.
952 .It Ic \&ft Op Ar font
959 .It Ic \&ftr Ar newname Op Ar oldname
961 This is a groff extension and currently ignored.
962 .It Ic \&fzoom Ar font Op Ar permille
965 .It Ic \&gcolor Op Ar colorname
967 This is a groff extension and currently ignored.
968 .It Ic \&hc Op Ar char
969 Set the hyphenation character.
971 .It Ic \&hcode Ar char code ...
972 Set hyphenation codes of characters.
974 .It Ic \&hidechar Ar font char ...
975 Hide characters in a font.
976 This is a Heirloom extension and currently ignored.
977 .It Ic \&hla Ar language
978 Set hyphenation language.
979 This is a groff extension and currently ignored.
980 .It Ic \&hlm Op Ar number
981 Set maximum number of consecutive hyphenated lines.
983 .It Ic \&hpf Ar filename
984 Load hyphenation pattern file.
985 This is a groff extension and currently ignored.
986 .It Ic \&hpfa Ar filename
987 Load hyphenation pattern file, appending to the current patterns.
988 This is a groff extension and currently ignored.
989 .It Ic \&hpfcode Ar code code ...
990 Define mapping values for character codes in hyphenation patterns.
991 This is a groff extension and currently ignored.
992 .It Ic \&hw Ar word ...
993 Specify hyphenation points in words.
995 .It Ic \&hy Op Ar mode
996 Set automatic hyphenation mode.
998 .It Ic \&hylang Ar language
999 Set hyphenation language.
1000 This is a Heirloom extension and currently ignored.
1001 .It Ic \&hylen Ar nchar
1002 Minimum word length for hyphenation.
1003 This is a Heirloom extension and currently ignored.
1004 .It Ic \&hym Op Ar length
1005 Set hyphenation margin.
1006 This is a groff extension and currently ignored.
1007 .It Ic \&hypp Ar penalty ...
1008 Define hyphenation penalties.
1009 This is a Heirloom extension and currently ignored.
1010 .It Ic \&hys Op Ar length
1011 Set hyphenation space.
1012 This is a groff extension and currently ignored.
1013 .It Ic \&ie Ar condition body
1016 half of an if/else conditional.
1017 The result of the conditional is pushed into a stack used by subsequent
1020 which may be separated by any intervening input (or not exist at all).
1021 Its syntax is equivalent to
1023 .It Ic \&if Ar condition body
1024 Begin a conditional.
1025 This request can also be written as follows:
1026 .Bd -unfilled -offset indent
1027 .Pf . Ic \&if Ar condition No \e{ Ns Ar body
1030 .Bd -unfilled -offset indent
1031 .Pf . Ic \&if Ar condition No \e{\e
1038 is a boolean expression.
1041 supports the following subset of roff conditionals:
1048 it is logically inverted.
1050 If the first character of
1058 it evaluates to true, and the
1060 starts with the next character.
1062 If the first character of
1072 it evaluates to false, and the
1074 starts with the next character.
1076 If the first character of
1080 .Pq character available ,
1081 it evaluates to true if the following character is an ASCII character
1082 or a valid character escape sequence, or to false otherwise.
1085 starts with the character following that next character.
1087 If the first character of
1091 it evaluates to true if the rest of
1093 is the name of an existing user defined macro or string;
1094 otherwise, it evaluates to false.
1096 If the first character of
1100 it evaluates to true if the rest of
1102 is the name of an existing number register;
1103 otherwise, it evaluates to false.
1107 starts with a parenthesis or with an optionally signed
1108 integer number, it is evaluated according to the rules of
1109 .Sx Numerical expressions
1111 It evaluates to true if the result is positive,
1112 or to false if the result is zero or negative.
1114 Otherwise, the first character of
1116 is regarded as a delimiter and it evaluates to true if the string
1117 extending from its first to its second occurrence is equal to the
1118 string extending from its second to its third occurrence.
1122 cannot be parsed, it evaluates to false.
1125 If a conditional is false, its children are not processed, but are
1126 syntactically interpreted to preserve the integrity of the input
1134 which may lead to interesting results, but
1136 .D1 \&.if t .if t \e{\e
1138 will continue to syntactically interpret to the block close of the final
1140 Sub-conditionals, in this case, obviously inherit the truth value of
1145 section is begun by an escaped brace
1147 scope continues until the end of the input line containing the
1148 matching closing-brace escape sequence
1152 is not enclosed in braces, scope continues until the end of the line.
1157 on the same line, whether after a brace or not, then requests and macros
1159 begin with a control character.
1160 It is generally more intuitive, in this case, to write
1161 .Bd -unfilled -offset indent
1162 .Pf . Ic \&if Ar condition No \e{\e
1167 than having the request or macro follow as
1169 .D1 Pf . Ic \&if Ar condition Pf \e{. Ar request
1171 The scope of a conditional is always parsed, but only executed if the
1172 conditional evaluates to true.
1176 is converted into a zero-width escape sequence if not passed as a
1185 being considered an argument of the
1188 .It Ic \&ig Op Ar endmacro
1190 Its syntax can be either
1191 .Bd -literal -offset indent
1198 .Bd -literal -offset indent
1199 .Pf . Cm \&ig Ar endmacro
1204 In the first case, input is ignored until a
1206 request is encountered on its own line.
1207 In the second case, input is ignored until the specified
1208 .Sq Pf . Ar endmacro
1210 Do not use the escape character
1212 anywhere in the definition of
1214 it would cause very strange behaviour.
1218 is a roff request or a roff macro, like in
1222 the subsequent invocation of
1224 will first terminate the
1226 then be invoked as usual.
1227 Otherwise, it only terminates the
1229 and arguments following it or the
1231 request are discarded.
1232 .It Ic \&in Op Oo Cm + Ns | Ns Cm - Oc Ns Ar width
1238 .It Ic \&index Ar register stringname substring
1239 Find a substring in a string.
1240 This is a Heirloom extension and currently unsupported.
1241 .It Ic \&it Ar expression macro
1242 Set an input line trap.
1245 will be invoked after processing the number of input text lines
1246 specified by the numerical
1248 While evaluating the
1250 the unit suffixes described below
1253 .It Ic \&itc Ar expression macro
1254 Set an input line trap, not counting lines ending with \ec.
1255 Currently unsupported.
1256 .It Ic \&IX Ar class keystring
1257 To support the generation of a table of contents,
1259 emits this user-defined macro, usually without defining it.
1260 To avoid reporting large numbers of spurious errors,
1263 .It Ic \&kern Op Cm 1 | 0
1264 Switch kerning on or off.
1266 .It Ic \&kernafter Ar font char ... afmunits ...
1267 Increase kerning after some characters.
1268 This is a Heirloom extension and currently ignored.
1269 .It Ic \&kernbefore Ar font char ... afmunits ...
1270 Increase kerning before some characters.
1271 This is a Heirloom extension and currently ignored.
1272 .It Ic \&kernpair Ar font char ... font char ... afmunits
1273 Add a kerning pair to the kerning table.
1274 This is a Heirloom extension and currently ignored.
1275 .It Ic \&lc Op Ar glyph
1276 Define a leader repetition character.
1277 Currently unsupported.
1278 .It Ic \&lc_ctype Ar localename
1282 This is a Heirloom extension and currently unsupported.
1283 .It Ic \&lds Ar macroname string
1284 Define a local string.
1285 This is a Heirloom extension and currently unsupported.
1286 .It Ic \&length Ar register string
1287 Count the number of input characters in a string.
1288 Currently unsupported.
1289 .It Ic \&letadj Ar lspmin lshmin letss lspmax lshmax
1290 Dynamic letter spacing and reshaping.
1291 This is a Heirloom extension and currently ignored.
1292 .It Ic \&lf Ar lineno Op Ar filename
1293 Change the line number for error messages.
1294 Ignored because insecure.
1295 .It Ic \&lg Op Cm 1 | 0
1296 Switch the ligature mechanism on or off.
1298 .It Ic \&lhang Ar font char ... afmunits
1299 Hang characters at left margin.
1300 This is a Heirloom extension and currently ignored.
1301 .It Ic \&linetabs Op Cm 1 | 0
1302 Enable or disable line-tabs mode.
1303 This is a groff extension and currently unsupported.
1304 .It Ic \&ll Op Oo Cm + Ns | Ns Cm - Oc Ns Ar width
1305 Change the output line length.
1308 argument is omitted, the line length is reset to its previous value.
1309 The default setting for terminal output is 78n.
1310 If a sign is given, the line length is added to or subtracted from;
1311 otherwise, it is set to the provided value.
1312 Using this request in new manuals is discouraged for several reasons,
1313 among others because it overrides the
1316 command line option.
1317 .It Ic \&lnr Ar register Oo Cm + Ns | Ns Cm - Oc Ns Ar value Op Ar increment
1318 Set local number register.
1319 This is a Heirloom extension and currently unsupported.
1320 .It Ic \&lnrf Ar register Oo Cm + Ns | Ns Cm - Oc Ns Ar value Op Ar increment
1321 Set local floating-point register.
1322 This is a Heirloom extension and currently unsupported.
1323 .It Ic \&lpfx Ar string
1325 This is a Heirloom extension and currently unsupported.
1326 .It Ic \&ls Op Ar factor
1328 It takes one integer argument specifying the vertical distance of
1329 subsequent output text lines measured in v units.
1331 .It Ic \&lsm Ar macroname
1332 Set a leading spaces trap.
1333 This is a groff extension and currently unsupported.
1334 .It Ic \< Op Oo Cm + Ns | Ns Cm - Oc Ns Ar width
1335 Set title line length.
1337 .It Ic \&mc Ar glyph Op Ar dist
1338 Print margin character in the right margin.
1341 is currently ignored; instead, 1n is used.
1342 .It Ic \&mediasize Ar media
1343 Set the device media size.
1344 This is a Heirloom extension and currently ignored.
1345 .It Ic \&minss Ar width
1346 Set minimum word space.
1347 This is a Heirloom extension and currently ignored.
1348 .It Ic \&mk Op Ar register
1349 Mark vertical position.
1351 .It Ic \&mso Ar filename
1352 Load a macro file using the search path.
1353 Ignored because insecure.
1355 Disable adjusting without changing the adjustment mode.
1357 .It Ic \&ne Op Ar height
1358 Declare the need for the specified minimum vertical space
1359 before the next trap or the bottom of the page.
1362 Break the output line and switch to no-fill mode.
1363 Subsequent input lines are kept together on the same output line
1364 even when exceeding the right margin,
1365 and line breaks in subsequent input cause output line breaks.
1366 This request is implied by the
1368 .Ic \&Bd Fl unfilled
1377 request switches back to the default fill mode.
1379 Turn off automatic hyphenation mode.
1381 .It Ic \&nhychar Ar char ...
1382 Define hyphenation-inhibiting characters.
1383 This is a Heirloom extension and currently ignored.
1384 .It Ic \&nm Op Ar start Op Ar inc Op Ar space Op Ar indent
1386 Currently unsupported.
1387 .It Ic \&nn Op Ar number
1388 Temporarily turn off line numbering.
1389 Currently unsupported.
1390 .It Ic \&nop Ar body
1391 Execute the rest of the input line as a request, macro, or text line,
1394 request and any space characters immediately following it.
1395 This is mostly used to indent text lines inside macro definitions.
1396 .It Ic \&nr Ar register Oo Cm + Ns | Ns Cm - Oc Ns Ar expression Op Ar stepsize
1397 Define or change a register.
1398 A register is an arbitrary string value that defines some sort of state,
1399 which influences parsing and/or formatting.
1403 .Sx Numerical expressions
1405 If it is prefixed by a sign, the register will be
1406 incremented or decremented instead of assigned to.
1412 auto-increment feature.
1413 It remains unchanged when omitted while changing an existing register,
1414 and it defaults to 0 when defining a new register.
1418 is handled specially:
1421 If set to a positive integer value, certain
1423 macros will behave in the same way as in the
1426 If set to 0, these macros will behave in the same way as outside the
1428 section, even when called within the
1431 Note that starting a new
1435 macro will reset this register.
1438 .Ic \&nrf Ar register Oo Cm + Ns | Ns Cm - Oc Ns Ar expression
1441 Define or change a floating-point register.
1442 This is a Heirloom extension and currently unsupported.
1445 This is a groff extension and currently ignored.
1447 Turn on no-space mode.
1449 .It Ic \&nx Op Ar filename
1450 Abort processing of the current input file and process another one.
1451 Ignored because insecure.
1452 .It Ic \&open Ar stream file
1453 Open a file for writing.
1454 Ignored because insecure.
1455 .It Ic \&opena Ar stream file
1456 Open a file for appending.
1457 Ignored because insecure.
1459 Output saved vertical space.
1461 .It Ic \&output Ar string
1462 Output directly to intermediate output.
1464 .It Ic \&padj Op Cm 1 | 0
1465 Globally control paragraph-at-once adjustment.
1466 This is a Heirloom extension and currently ignored.
1467 .It Ic \&papersize Ar media
1469 This is a Heirloom extension and currently ignored.
1470 .It Ic \&pc Op Ar char
1471 Change the page number character.
1475 This is a groff extension and currently ignored.
1476 .It Ic \&pi Ar command
1477 Pipe output to a shell command.
1478 Ignored because insecure.
1480 Low-level request used by
1482 This is a Heirloom extension and currently unsupported.
1483 .It Ic \&pl Op Oo Cm + Ns | Ns Cm - Oc Ns Ar height
1487 Print names and sizes of macros, strings, and diversions
1488 to standard error output.
1490 .It Ic \&pn Oo Cm + Ns | Ns Cm - Oc Ns Ar number
1491 Change the page number of the next page.
1494 Print all number registers on standard error output.
1496 .It Ic \&po Op Oo Cm + Ns | Ns Cm - Oc Ns Ar offset
1497 Set a horizontal page offset.
1498 If no argument is specified, the page offset is reverted to its
1500 If a sign is specified, the new page offset is calculated relative
1501 to the current one; otherwise, it is absolute.
1502 The argument follows the syntax of
1504 and the default scaling unit is
1506 .It Ic \&ps Op Oo Cm + Ns | Ns Cm - Oc Ns size
1509 .It Ic \&psbb Ar filename
1510 Retrieve the bounding box of a PostScript file.
1511 Currently unsupported.
1512 .It Ic \&pshape Ar indent length ...
1513 Set a special shape for the current paragraph.
1514 This is a Heirloom extension and currently unsupported.
1515 .It Ic \&pso Ar command
1516 Include output of a shell command.
1517 Ignored because insecure.
1519 Print the names and positions of all traps on standard error output.
1520 This is a groff extension and currently ignored.
1521 .It Ic \&pvs Op Oo Cm + Ns | Ns Cm - Oc Ns Ar height
1522 Change post-vertical spacing.
1523 This is a groff extension and currently ignored.
1524 .It Ic \&rchar Ar glyph ...
1525 Remove glyph definitions.
1526 Currently unsupported.
1527 .It Ic \&rd Op Ar prompt Op Ar argument ...
1528 Read from standard input.
1530 .It Ic \&recursionlimit Ar maxrec maxtail
1531 Set the maximum stack depth for recursive macros.
1532 This is a Heirloom extension and currently ignored.
1533 .It Ic \&return Op Ar twice
1534 Exit the presently executed macro and return to the caller.
1535 The argument is currently ignored.
1536 .It Ic \&rfschar Ar font glyph ...
1537 Remove font-specific fallback glyph definitions.
1538 Currently unsupported.
1539 .It Ic \&rhang Ar font char ... afmunits
1540 Hang characters at right margin.
1541 This is a Heirloom extension and currently ignored.
1545 input lines to the right margin without filling.
1548 An argument of 0 or less ends right adjustment.
1549 .It Ic \&rm Ar macroname
1550 Remove a request, macro or string.
1551 .It Ic \&rn Ar oldname newname
1552 Rename a request, macro, diversion, or string.
1555 user-defined macros,
1559 macros, and user-defined strings can be renamed, but renaming of
1560 predefined strings and of
1562 requests is not supported, and diversions are not implemented at all.
1563 .It Ic \&rnn Ar oldname newname
1564 Rename a number register.
1565 Currently unsupported.
1566 .It Ic \&rr Ar register
1571 .It Ic \&rt Op Ar dist
1572 Return to marked vertical position.
1574 .It Ic \&schar Ar glyph Op Ar string
1575 Define global fallback glyph.
1576 This is a groff extension and currently unsupported.
1577 .It Ic \&sentchar Ar char ...
1578 Define sentence-ending characters.
1579 This is a Heirloom extension and currently ignored.
1580 .It Ic \&shc Op Ar glyph
1581 Change the soft hyphen character.
1583 .It Ic \&shift Op Ar number
1584 Shift macro arguments
1586 times, by default once: \e\e$i becomes what \e\e$i+number was.
1587 Also decrement \en(.$ by
1589 .It Ic \&sizes Ar size ...
1590 Define permissible point sizes.
1591 This is a groff extension and currently ignored.
1592 .It Ic \&so Ar filename
1593 Include a source file.
1594 The file is read and its contents processed as input in place of the
1597 To avoid inadvertent inclusion of unrelated files,
1599 only accepts relative paths not containing the strings
1604 This request requires
1606 to change to the right directory before calling
1608 per convention to the root of the manual tree.
1609 Typical usage looks like:
1611 .Dl \&.so man3/Xcursor.3
1613 As the whole concept is rather fragile, the use of
1619 .It Ic \&sp Op Ar height
1620 Break the output line and emit vertical space.
1621 The argument follows the syntax of
1623 and defaults to one blank line
1625 .It Ic \&spacewidth Op Cm 1 | 0
1626 Set the space width from the font metrics file.
1627 This is a Heirloom extension and currently ignored.
1628 .It Ic \&special Op Ar font ...
1629 Define a special font.
1630 This is a groff extension and currently ignored.
1631 .It Ic \&spreadwarn Op Ar width
1632 Warn about wide spacing between words.
1634 .It Ic \&ss Ar wordspace Op Ar sentencespace
1635 Set space character size.
1637 .It Ic \&sty Ar position style
1638 Associate style with a font position.
1639 This is a groff extension and currently ignored.
1640 .It Ic \&substring Ar stringname startpos Op Ar endpos
1641 Replace a user-defined string with a substring.
1642 Currently unsupported.
1643 .It Ic \&sv Op Ar height
1644 Save vertical space.
1646 .It Ic \&sy Ar command
1647 Execute shell command.
1648 Ignored because insecure.
1650 Re-start a table layout, retaining the options of the prior table
1654 .It Ic \&ta Op Ar width ... Op Cm T Ar width ...
1658 argument follows the syntax of
1659 .Sx Scaling Widths .
1660 If prefixed by a plus sign, it is relative to the previous tab stop.
1661 The arguments after the
1663 marker are used repeatedly as often as needed; for each reuse,
1664 they are taken relative to the last previously established tab stop.
1667 is called without arguments, all tab stops are cleared.
1668 .It Ic \&tc Op Ar glyph
1669 Change tab repetition character.
1670 Currently unsupported.
1672 End a table context.
1675 .It Ic \&ti Oo Cm + Ns | Ns Cm - Oc Ns Ar width
1676 Break the output line and indent the next output line by
1678 If a sign is specified, the temporary indentation is calculated
1679 relative to the current indentation; otherwise, it is absolute.
1680 The argument follows the syntax of
1682 and the default scaling unit is
1684 .It Ic \&tkf Ar font minps width1 maxps width2
1685 Enable track kerning for a font.
1687 .It Ic \&tl No \& Ap Ar left Ap Ar center Ap Ar right Ap
1689 Currently unsupported.
1690 .It Ic \&tm Ar string
1691 Print to standard error output.
1693 .It Ic \&tm1 Ar string
1694 Print to standard error output, allowing leading blanks.
1695 This is a groff extension and currently ignored.
1696 .It Ic \&tmc Ar string
1697 Print to standard error output without a trailing newline.
1698 This is a groff extension and currently ignored.
1699 .It Ic \&tr Ar glyph glyph ...
1700 Output character translation.
1701 The first glyph in each pair is replaced by the second one.
1702 Character escapes can be used; for example,
1706 replaces all invocations of \e(xx with \e(yy.
1707 .It Ic \&track Ar font minps width1 maxps width2
1708 Static letter space tracking.
1709 This is a Heirloom extension and currently ignored.
1710 .It Ic \&transchar Ar char ...
1711 Define transparent characters for sentence-ending.
1712 This is a Heirloom extension and currently ignored.
1713 .It Ic \&trf Ar filename
1714 Output the contents of a file, disallowing invalid characters.
1715 This is a groff extension and ignored because insecure.
1716 .It Ic \&trimat Ar left top width height
1717 Set the TrimBox page parameter for PDF generation.
1718 This is a Heirloom extension and currently ignored.
1719 .It Ic \&trin Ar glyph glyph ...
1720 Output character translation, ignored by
1722 Currently unsupported.
1723 .It Ic \&trnt Ar glyph glyph ...
1724 Output character translation, ignored by \e!.
1725 Currently unsupported.
1728 This is a groff extension and currently ignored.
1730 Begin a table, which formats input in aligned rows and columns.
1733 for a description of the tbl language.
1735 Globally set the underline font.
1742 .It Ic \&unformat Ar divname
1743 Unformat spaces and tabs in a diversion.
1744 Currently unsupported.
1745 .It Ic \&unwatch Ar macroname
1746 Disable notification for string or macro.
1747 This is a Heirloom extension and currently ignored.
1748 .It Ic \&unwatchn Ar register
1749 Disable notification for register.
1750 This is a Heirloom extension and currently ignored.
1751 .It Ic \&vpt Op Cm 1 | 0
1752 Enable or disable vertical position traps.
1753 This is a groff extension and currently ignored.
1754 .It Ic \&vs Op Oo Cm + Ns | Ns Cm - Oc Ns Ar height
1755 Change vertical spacing.
1757 .It Ic \&warn Ar flags
1760 .It Ic \&warnscale Ar si
1761 Set the scaling indicator used in warnings.
1762 This is a groff extension and currently ignored.
1763 .It Ic \&watch Ar macroname
1764 Notify on change of string or macro.
1765 This is a Heirloom extension and currently ignored.
1766 .It Ic \&watchlength Ar maxlength
1767 On change, report the contents of macros and strings
1768 up to the specified length.
1769 This is a Heirloom extension and currently ignored.
1770 .It Ic \&watchn Ar register
1771 Notify on change of register.
1772 This is a Heirloom extension and currently ignored.
1773 .It Ic \&wh Ar dist Op Ar macroname
1774 Set a page location trap.
1775 Currently unsupported.
1776 .It Ic \&while Ar condition body
1777 Repeated execution while a
1779 is true, with syntax similar to
1781 Currently implemented with two restrictions: cannot nest,
1782 and each loop must start and end in the same scope.
1783 .It Ic \&write Oo \(dq Oc Ns Ar string
1784 Write to an open file.
1785 Ignored because insecure.
1786 .It Ic \&writec Oo \(dq Oc Ns Ar string
1787 Write to an open file without appending a newline.
1788 Ignored because insecure.
1789 .It Ic \&writem Ar macroname
1790 Write macro or string to an open file.
1791 Ignored because insecure.
1792 .It Ic \&xflag Ar level
1793 Set the extension level.
1794 This is a Heirloom extension and currently ignored.
1796 .Ss Numerical expressions
1802 requests accept integer numerical expressions as arguments.
1803 These are always evaluated using the C
1805 type; integer overflow works the same way as in the C language.
1806 Numbers consist of an arbitrary number of digits
1810 prefixed by an optional sign
1814 Each number may be followed by one optional scaling unit described below
1815 .Sx Scaling Widths .
1816 The following equations hold:
1817 .Bd -literal -offset indent
1818 1i = 6v = 6P = 10m = 10n = 72p = 1000M = 240u = 240
1819 254c = 100i = 24000u = 24000
1823 The following binary operators are implemented.
1824 Unless otherwise stated, they behave as in the C language:
1826 .Bl -tag -width 2n -compact
1836 remainder of division
1844 equal to, same effect as
1846 (this differs from C)
1848 less than or equal to
1850 greater than or equal to
1852 not equal to (corresponds to C
1854 this one is of limited portability, it is supported by Heirloom roff,
1857 logical and (corresponds to C
1860 logical or (corresponds to C
1863 minimum (not available in C)
1865 maximum (not available in C)
1868 There is no concept of precedence; evaluation proceeds from left to right,
1869 except when subexpressions are enclosed in parentheses.
1870 Inside parentheses, whitespace is ignored.
1871 .Sh ESCAPE SEQUENCE REFERENCE
1875 parser recognises the following escape sequences.
1880 documents, using escape sequences is discouraged except for those
1885 A backslash followed by any character not listed here
1886 simply prints that character itself.
1889 A backslash at the end of an input line can be used to continue the
1890 logical input line on the next physical input line, joining the text
1891 on both lines together as if it were on a single input line.
1893 The escape sequence backslash-space
1895 is an unpaddable space-sized non-breaking space character; see
1900 Embed text up to and including the end of the input line into the
1901 current diversion or into intermediate output without interpreting
1902 requests, macros, and escapes.
1903 Currently unsupported.
1905 The rest of the input line is treated as
1908 Line continuation with comment.
1909 Discard the rest of the physical input line and continue the logical
1910 input line on the next physical input line, joining the text on
1911 both lines together as if it were on a single input line.
1912 This is a groff extension.
1913 .It Ic \e$ Ns Ar arg
1914 Macro argument expansion, see
1917 Hyphenation allowed at this point of the word; ignored by
1920 Non-printing zero-width character,
1921 often used for various kinds of escaping; see
1931 Acute accent special character; use
1935 .Sx Special Characters
1936 with two-letter names, see
1939 Zero-width space transparent to end-of-sentence detection;
1942 .It Ic \e*[ Ns Ar name Ns Ic \&]
1943 Interpolate the string with the
1945 For short names, there are variants
1950 One string is predefined on the
1954 expands to the name of the output device,
1955 for example ascii, utf8, ps, pdf, html, or markdown.
1957 Macro sets traditionally predefine additional strings which are not
1958 portable and differ across implementations.
1964 Strings can be defined, changed, and deleted with the
1971 Left italic correction (groff extension); ignored by
1975 .Dq mathematical minus sign ;
1980 Right italic correction (groff extension); ignored by
1983 Breaking the line is allowed at this point of the word
1984 without inserting a hyphen.
1986 Embed the text up to the next
1988 into the current diversion without interpreting requests, macros,
1990 This is a groff extension and currently unsupported.
1991 .It Ic \e[ Ns Ar name Ns Ic \&]
1992 .Sx Special Characters
1993 with names of arbitrary length, see
1996 One-twelfth em half-narrow space character, effectively zero-width in
1999 Underline special character; use
2003 Grave accent special character; use
2007 Begin conditional input; see
2010 One-sixth em narrow space character, effectively zero-width in
2013 End conditional input; see
2016 Paddable non-breaking space character.
2018 Digit width space character.
2019 .It Ic \eA\(aq Ns Ar string Ns Ic \(aq
2020 Anchor definition; ignored by
2023 Leader character; ignored by
2025 .It Ic \eB\(aq Ns Ar string Ns Ic \(aq
2030 conforms to the syntax of
2031 .Sx Numerical expressions
2035 .It Ic \eb\(aq Ns Ar string Ns Ic \(aq
2036 Bracket building function; ignored by
2038 .It Ic \eC\(aq Ns Ar name Ns Ic \(aq
2039 .Sx Special Characters
2040 with names of arbitrary length.
2042 When encountered at the end of an input text line,
2043 the next input text line is considered to continue that line,
2044 even if there are request or macro lines in between.
2045 No whitespace is inserted.
2046 .It Ic \eD\(aq Ns Ar string Ns Ic \(aq
2047 Draw graphics function; ignored by
2050 Move down by half a line; ignored by
2053 Escape character intended to not be interpreted in copy mode.
2056 it currently does the same as
2060 Backslash special character.
2061 .It Ic \eF[ Ns Ar name Ns Ic \&]
2062 Switch font family (groff extension); ignored by
2064 For short names, there are variants
2068 .It Ic \ef[ Ns Ar name Ns Ic \&]
2072 .Sx Font Selection .
2073 For short names, there are variants
2081 .It Ic \eg[ Ns Ar name Ns Ic \&]
2082 Interpolate the format of a number register; ignored by
2084 For short names, there are variants
2088 .It Ic \eH\(aq Ns Oo +|- Oc Ns Ar number Ns Ic \(aq
2089 Set the height of the current font; ignored by
2091 .It Ic \eh\(aq Ns Oo Cm \&| Oc Ns Ar width Ns Ic \(aq
2093 If the vertical bar is given, the motion is relative to the current
2095 Otherwise, it is relative to the current position.
2096 The default scaling unit is
2098 .It Ic \ek[ Ns Ar name Ns Ic \&]
2099 Mark horizontal input place in register; ignored by
2101 For short names, there are variants
2105 .It Ic \eL\(aq Ns Ar number Ns Oo Ar c Oc Ns Ic \(aq
2106 Vertical line drawing function; ignored by
2108 .It Ic \el\(aq Ns Ar width Ns Oo Ar c Oc Ns Ic \(aq
2109 Draw a horizontal line of
2113 .It Ic \eM[ Ns Ar name Ns Ic \&]
2114 Set fill (background) color (groff extension); ignored by
2116 For short names, there are variants
2120 .It Ic \em[ Ns Ar name Ns Ic \&]
2121 Set glyph drawing color (groff extension); ignored by
2123 For short names, there are variants
2127 .It Ic \eN\(aq Ns Ar number Ns Ic \(aq
2130 on the current font.
2131 .It Ic \en Ns Oo +|- Oc Ns Ic \&[ Ns Ar name Ns Ic \&]
2132 Interpolate the number register
2134 For short names, there are variants
2138 If the optional sign is specified,
2139 the register is first incremented or decremented by the
2141 that was specified in the relevant
2143 request, and the changed value is interpolated.
2144 .It Ic \eO Ns Ar digit , Ic \eO[5 Ns arguments Ns Ic \&]
2146 This is a groff extension and currently unsupported.
2152 .It Ic \eo\(aq Ns Ar string Ns Ic \(aq
2153 Overstrike, writing all the characters contained in the
2155 to the same output position.
2156 In terminal and HTML output modes,
2157 only the last one of the characters is visible.
2159 Break the output line at the end of the current word.
2160 .It Ic \eR\(aq Ns Ar name Oo +|- Oc Ns Ar number Ns Ic \(aq
2161 Set number register; ignored by
2164 Move up by one line; ignored by
2166 .It Ic \eS\(aq Ns Ar number Ns Ic \(aq
2167 Slant output; ignored by
2169 .It Ic \es\(aq Ns Oo +|- Oc Ns Ar number Ns Ic \(aq
2170 Change point size; ignored by
2173 .Ic \es Ns Oo +|- Oc Ns Ar n ,
2174 .Ic \es Ns Oo +|- Oc Ns Ic \(aq Ns Ar number Ns Ic \(aq ,
2175 .Ic \es[ Ns Oo +|- Oc Ns Ar number Ns Ic \&] ,
2177 .Ic \es Ns Oo +|- Oc Ns Ic \&[ Ns Ar number Ns Ic \&]
2178 are also parsed and ignored.
2180 Horizontal tab; ignored by
2183 Move up by half a line; ignored by
2185 .It Ic \eV[ Ns Ar name Ns Ic \&]
2186 Interpolate an environment variable; ignored by
2188 For short names, there are variants
2192 .It Ic \ev\(aq Ns Ar number Ns Ic \(aq
2193 Vertical motion; ignored by
2195 .It Ic \ew\(aq Ns Ar string Ns Ic \(aq
2196 Interpolate the width of the
2200 implementation assumes that after expansion of user-defined strings, the
2202 only contains normal characters, no escape sequences, and that each
2203 character has a width of 24 basic units.
2204 .It Ic \eX\(aq Ns Ar string Ns Ic \(aq
2207 as device control function; ignored in nroff mode and by
2209 .It Ic \ex\(aq Ns Ar number Ns Ic \(aq
2210 Extra line space function; ignored by
2212 .It Ic \eY[ Ns Ar name Ns Ic \&]
2213 Output a string as a device control function; ignored in nroff mode and by
2215 For short names, there are variants
2219 .It Ic \eZ\(aq Ns Ar string Ns Ic \(aq
2222 with zero width and height; ignored by
2225 Output the next character without advancing the cursor position.
2230 implementation of the
2232 language is incomplete.
2233 Major unimplemented features include:
2237 For security reasons,
2239 never reads or writes external files except via
2241 requests with safe relative paths.
2243 There is no automatic hyphenation, no adjustment to the right margin,
2244 and very limited support for centering; the output is always set flush-left.
2246 Support for setting tabulator and leader characters is missing,
2247 and support for manually changing indentation is limited.
2251 scaling unit is the default terminal unit.
2252 In traditional troff systems, this unit changes depending on the
2255 Width measurements are implemented in a crude way
2256 and often yield wrong results.
2257 Support for explicit movement requests and escapes is limited.
2259 There is no concept of output pages, no support for floats,
2260 graphics drawing, and picture inclusion;
2261 terminal output is always continuous.
2263 Requests regarding color, font families, font sizes,
2264 and glyph manipulation are ignored.
2265 Font support is very limited.
2266 Kerning is not implemented, and no ligatures are produced.
2270 macro control character does not suppress output line breaks.
2272 Diversions and environments are not implemented,
2273 and support for traps is very incomplete.
2275 Use of macros is not supported inside
2280 The special semantics of the
2282 number register is an idiosyncracy of
2284 manuals and not supported by other
2295 .%A Joseph F. Ossanna
2296 .%A Brian W. Kernighan
2297 .%I AT&T Bell Laboratories
2298 .%T Troff User's Manual
2299 .%R Computing Science Technical Report
2301 .%C Murray Hill, New Jersey
2303 .%U http://www.kohala.com/start/troff/cstr54.ps
2306 .%A Joseph F. Ossanna
2307 .%A Brian W. Kernighan
2309 .%T Heirloom Documentation Tools Nroff/Troff User's Manual
2310 .%D September 17, 2007
2311 .%U http://heirloom.sourceforge.net/doctools/troff.pdf
2314 The RUNOFF typesetting system, whose input forms the basis for
2316 was written in MAD and FAP for the CTSS operating system by Jerome E.
2318 Doug McIlroy rewrote it in BCPL in 1969, renaming it
2320 Dennis M. Ritchie rewrote McIlroy's
2322 in PDP-11 assembly for
2324 Joseph F. Ossanna improved roff and renamed it nroff
2327 then ported nroff to C as troff, which Brian W. Kernighan released with
2329 In 1989, James Clarke re-implemented troff in C++, naming it groff.
2334 reference was written by
2335 .An Kristaps Dzonsons Aq Mt kristaps@bsd.lv
2337 .An Ingo Schwarze Aq Mt schwarze@openbsd.org .