1 .\" $Id: roff.7,v 1.96 2018/04/10 00:52:30 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: April 10 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
90 .Sx Special Characters ,
91 .Sx Predefined Strings ,
93 user-defined strings defined using the
96 For a listing of escape sequences, consult the
97 .Sx ESCAPE SEQUENCE REFERENCE
100 Text following an escaped double-quote
102 whether in a request, macro, or text line, is ignored to the end of the line.
103 A request line beginning with a control character and comment escape
106 Furthermore, request lines with only a control character and optional
107 trailing whitespace are stripped from input.
110 .Bd -literal -offset indent -compact
111 \&.\e\(dq This is a comment line.
112 \&.\e\(dq The next line is ignored:
114 \&.Sh EXAMPLES \e\(dq This is a comment, too.
115 \&example text \e\(dq And so is this.
117 .Ss Special Characters
118 Special characters are used to encode special glyphs and are rendered
119 differently across output media.
120 They may occur in request, macro, and text lines.
121 Sequences begin with the escape character
123 followed by either an open-parenthesis
125 for two-character sequences; an open-bracket
127 for n-character sequences (terminated at a close-bracket
129 or a single one character sequence.
132 .Bl -tag -width Ds -offset indent -compact
134 Two-letter em dash escape.
136 One-letter backslash escape.
143 Terms may be text-decorated using the
145 escape followed by an indicator: B (bold), I (italic), R (regular), or P
146 (revert to previous mode).
147 A numerical representation 3, 2, or 1 (bold, italic, and regular,
148 respectively) may be used instead.
149 The indicator or numerical representative may be preceded by C
150 (constant-width), which is ignored.
152 The two-character indicator
154 requests a font that is both bold and italic.
155 It may not be portable to old roff implementations.
158 .Bl -tag -width Ds -offset indent -compact
160 Write in \fBbold\fP, then switch to regular font mode.
161 .It Li \efIitalic\efP
162 Write in \fIitalic\fP, then return to previous font mode.
163 .It Li \ef(BIbold italic\efP
164 Write in \f(BIbold italic\fP, then return to previous font mode.
171 which encourages semantic annotation.
172 .Ss Predefined Strings
173 Predefined strings, like
174 .Sx Special Characters ,
175 mark special output glyphs.
176 Predefined strings are escaped with the slash-asterisk,
186 .Bl -tag -width Ds -offset indent -compact
188 Two-letter ampersand predefined string.
190 One-letter double-quote predefined string.
193 Predefined strings are not recommended for use,
194 as they differ across implementations.
199 Manuals using these predefined strings are almost certainly not portable.
201 Whitespace consists of the space character.
202 In text lines, whitespace is preserved within a line.
203 In request and macro lines, whitespace delimits arguments and is discarded.
205 Unescaped trailing spaces are stripped from text line input unless in a
207 In general, trailing whitespace on any input line is discouraged for
208 reasons of portability.
209 In the rare case that a blank character is needed at the end of an
210 input line, it may be forced by
213 Literal space characters can be produced in the output
214 using escape sequences.
215 In macro lines, they can also be included in arguments using quotation; see
219 Blank text lines, which may include whitespace, are only permitted
220 within literal contexts.
221 If the first character of a text line is a space, that line is printed
222 with a leading newline.
224 Many requests and macros support scaled widths for their arguments.
225 The syntax for a scaled width is
226 .Sq Li [+-]?[0-9]*.[0-9]*[:unit:] ,
227 where a decimal must be preceded or followed by at least one digit.
228 Negative numbers, while accepted, are truncated to zero.
230 The following scaling units are accepted:
232 .Bl -tag -width Ds -offset indent -compact
246 default vertical span
258 default horizontal span for the terminal
263 Using anything other than
268 is necessarily non-portable across output media.
272 If a scaling unit is not provided, the numerical value is interpreted
273 under the default rules of
275 for vertical spaces and
280 .Bl -tag -width ".Bl -tag -width 2i" -offset indent -compact
281 .It Li \&.Bl -tag -width 2i
282 two-inch tagged list indentation in
285 two-inch tagged list indentation in
291 Each sentence should terminate at the end of an input line.
292 By doing this, a formatter will be able to apply the proper amount of
293 spacing after the end of sentence (unescaped) period, exclamation mark,
294 or question mark followed by zero or more non-sentence closing
303 The proper spacing is also intelligently preserved if a sentence ends at
304 the boundary of a macro line.
307 .Bd -literal -offset indent -compact
308 Do not end sentences mid-line like this. Instead,
309 end a sentence like this.
310 A macro would end like this:
314 A request or macro line consists of:
318 the control character
322 at the beginning of the line,
324 optionally an arbitrary amount of whitespace,
326 the name of the request or the macro, which is one word of arbitrary
327 length, terminated by whitespace,
329 and zero or more arguments delimited by whitespace.
332 Thus, the following request lines are all equivalent:
333 .Bd -literal -offset indent
339 Macros are provided by the
343 languages and can be defined by the
346 When called, they follow the same syntax as requests, except that
347 macro arguments may optionally be quoted by enclosing them
348 in double quote characters
350 Quoted text, even if it contains whitespace or would cause
351 a macro invocation when unquoted, is always considered literal text.
352 Inside quoted text, pairs of double quote characters
354 resolve to single double quote characters.
356 To be recognised as the beginning of a quoted argument, the opening
357 quote character must be preceded by a space character.
358 A quoted argument extends to the next double quote character that is not
359 part of a pair, or to the end of the input line, whichever comes earlier.
360 Leaving out the terminating double quote character at the end of the line
362 For clarity, if more arguments follow on the same input line,
363 it is recommended to follow the terminating double quote character
364 by a space character; in case the next character after the terminating
365 double quote character is anything else, it is regarded as the beginning
366 of the next, unquoted argument.
368 Both in quoted and unquoted arguments, pairs of backslashes
370 resolve to single backslashes.
371 In unquoted arguments, space characters can alternatively be included
372 by preceding them with a backslash
374 but quoting is usually better for clarity.
377 .Bl -tag -width Ds -offset indent -compact
378 .It Li .Fn strlen \(dqconst char *s\(dq
381 into one function argument.
387 would be considered separate arguments.
388 .It Li .Op \(dqFl a\(dq
391 as literal text instead of a flag macro.
393 .Sh REQUEST REFERENCE
397 parser recognises the following requests.
398 For requests marked as "ignored" or "unsupported", any arguments are
399 ignored, and the number of arguments is not checked.
401 .It Ic \&ab Op Ar message
403 Currently unsupported.
404 .It Ic \&ad Op Cm b | c | l | n | r
405 Set line adjustment mode for subsequent text.
407 .It Ic \&af Ar registername format
408 Assign an output format to a number register.
410 .It Ic \&aln Ar newname oldname
411 Create an alias for a number register.
412 Currently unsupported.
413 .It Ic \&als Ar newname oldname
414 Create an alias for a request, string, macro, or diversion.
415 .It Ic \&am Ar macroname Op Ar endmacro
416 Append to a macro definition.
417 The syntax of this request is the same as that of
419 .It Ic \&am1 Ar macroname Op Ar endmacro
420 Append to a macro definition, switching roff compatibility mode off
421 during macro execution (groff extension).
422 The syntax of this request is the same as that of
428 compatibility mode at all, it handles this request as an alias for
430 .It Ic \&ami Ar macrostring Op Ar endstring
431 Append to a macro definition, specifying the macro name indirectly
433 The syntax of this request is the same as that of
435 .It Ic \&ami1 Ar macrostring Op Ar endstring
436 Append to a macro definition, specifying the macro name indirectly
437 and switching roff compatibility mode off during macro execution
439 The syntax of this request is the same as that of
445 compatibility mode at all, it handles this request as an alias for
447 .It Ic \&as Ar stringname Op Ar string
448 Append to a user-defined string.
449 The syntax of this request is the same as that of
451 If a user-defined string with the specified name does not yet exist,
452 it is set to the empty string before appending.
453 .It Ic \&as1 Ar stringname Op Ar string
454 Append to a user-defined string, switching roff compatibility mode off
455 during macro execution (groff extension).
456 The syntax of this request is the same as that of
462 compatibility mode at all, it handles this request as an alias for
464 .It Ic \&asciify Ar divname
465 Fully unformat a diversion.
466 Currently unsupported.
468 Print a backtrace of the input stack.
469 This is a groff extension and currently ignored.
470 .It Ic \&bd Ar font Oo Ar curfont Oc Op Ar offset
471 Artificially embolden by repeated printing with small shifts.
473 .It Ic \&bleedat Ar left top width height
474 Set the BleedBox page parameter for PDF generation.
475 This is a Heirloom extension and currently ignored.
476 .It Ic \&blm Ar macroname
477 Set a blank line trap.
478 Currently unsupported.
479 .It Ic \&box Ar divname
480 Begin a diversion without including a partially filled line.
481 Currently unsupported.
482 .It Ic \&boxa Ar divname
483 Add to a diversion without including a partially filled line.
484 Currently unsupported.
485 .It Ic \&bp Oo Cm + Ns | Ns Cm - Oc Ns Ar pagenumber
488 .It Ic \&BP Ar source height width position offset flags label
489 Define a frame and place a picture in it.
490 This is a Heirloom extension and currently unsupported.
492 Break the output line.
497 Currently unsupported.
498 .It Ic \&breakchar Ar char ...
499 Optional line break characters.
500 This is a Heirloom extension and currently ignored.
502 Break output line after the next
505 This is a Heirloom extension and currently ignored.
507 Break and spread output line.
508 Currently, this is implemented as an alias for
511 Break and spread output line after the next
514 This is a Heirloom extension and currently ignored.
515 .It Ic \&c2 Op Ar char
516 Change the no-break control character.
517 Currently unsupported.
518 .It Ic \&cc Op Ar char
519 Change the control character.
522 is not specified, the control character is reset to
524 Trailing characters are ignored.
528 input lines without filling.
531 An argument of 0 or less ends centering.
532 Currently, high level macros abort centering.
533 .It Ic \&cf Ar filename
534 Output the contents of a file.
535 Ignored because insecure.
536 .It Ic \&cflags Ar flags char ...
538 This is a groff extension and currently ignored.
539 .It Ic \&ch Ar macroname Op Ar dist
540 Change a trap location.
542 .It Ic \&char Ar glyphname Op Ar string
544 Currently unsupported.
545 .It Ic \&chop Ar stringname
546 Remove the last character from a macro, string, or diversion.
547 Currently unsupported.
548 .It Ic \&class Ar classname char ...
549 Define a character class.
550 This is a groff extension and currently ignored.
551 .It Ic \&close Ar streamname
553 Ignored because insecure.
554 .It Ic \&CL Ar color text
556 This is a Heirloom extension and currently unsupported.
557 .It Ic \&color Op Cm 1 | 0
558 Activate or deactivate colors.
559 This is a groff extension and currently ignored.
560 .It Ic \&composite Ar from to
561 Define a name component for composite glyph names.
562 This is a groff extension and currently unsupported.
564 Immediately start the next iteration of a
567 Currently unsupported.
568 .It Ic \&cp Op Cm 1 | 0
571 compatibility mode on or off.
573 .It Ic \&cropat Ar left top width height
574 Set the CropBox page parameter for PDF generation.
575 This is a Heirloom extension and currently ignored.
576 .It Ic \&cs Ar font Op Ar width Op Ar emsize
577 Constant character spacing mode.
582 input lines including whitespace.
584 .It Ic \&da Ar divname
585 Append to a diversion.
586 Currently unsupported.
587 .It Ic \&dch Ar macroname Op Ar dist
588 Change a trap location in the current diversion.
589 This is a Heirloom extension and currently unsupported.
590 .It Ic \&de Ar macroname Op Ar endmacro
594 Its syntax can be either
595 .Bd -literal -offset indent
596 .Pf . Ic \&de Ar macroname
602 .Bd -literal -offset indent
603 .Pf . Ic \&de Ar macroname Ar endmacro
608 Both forms define or redefine the macro
612 which may consist of one or more input lines, including the newline
613 characters terminating each line, optionally containing calls to
617 macros or high-level macros like
621 macros, whichever applies to the document in question.
625 macro works in the same way as for
631 and after that, it is also evaluated as a
635 macro, but not as a high-level macro.
637 The macro can be invoked later using the syntax
639 .D1 Pf . Ar macroname Op Ar argument Op Ar argument ...
641 Regarding argument parsing, see
645 The line invoking the macro will be replaced
646 in the input stream by the
648 replacing all occurrences of
653 .Ar N Ns th Ar argument .
655 .Bd -literal -offset indent
657 \efI\e^\e\e$1\e^\efP\e\e$2
664 .D1 \efI\e^XtFree\e^\efP.
666 in the input stream, and thus in the output: \fI\^XtFree\^\fP.
667 Each occurrence of \e\e$* is replaced with all the arguments,
668 joined together with single blank characters.
670 Since macros and user-defined strings share a common string table,
673 clobbers the user-defined string
677 can also be printed using the
679 string interpolation syntax described below
681 but this is rarely useful because every macro definition contains at least
682 one explicit newline character.
684 In order to prevent endless recursion, both groff and
686 limit the stack depth for expanding macros and strings
687 to a large, but finite number, and
689 also limits the length of the expanded input line.
690 Do not rely on the exact values of these limits.
691 .It Ic \&de1 Ar macroname Op Ar endmacro
694 macro that will be executed with
696 compatibility mode switched off during macro execution.
697 This is a groff extension.
702 compatibility mode at all, it handles this request as an alias for
704 .It Ic \&defcolor Ar newname scheme component ...
706 This is a groff extension and currently ignored.
707 .It Ic \&dei Ar macrostring Op Ar endstring
710 macro, specifying the macro name indirectly (groff extension).
711 The syntax of this request is the same as that of
713 The effect is the same as:
715 .D1 Pf . Cm \&de No \e* Ns Bo Ar macrostring Bc Op \e* Ns Bq Ar endstring
716 .It Ic \&dei1 Ar macrostring Op Ar endstring
719 macro that will be executed with
721 compatibility mode switched off during macro execution,
722 specifying the macro name indirectly (groff extension).
727 compatibility mode at all, it handles this request as an alias for
729 .It Ic \&device Ar string ...
730 .It Ic \&devicem Ar stringname
731 These two requests only make sense with the groff-specific intermediate
732 output format and are unsupported.
733 .It Ic \&di Ar divname
735 Currently unsupported.
736 .It Ic \&do Ar command Op Ar argument ...
739 request or macro line with compatibility mode disabled.
740 Currently unsupported.
741 .It Ic \&ds Ar stringname Op Oo \(dq Oc Ns Ar string
742 Define a user-defined string.
747 arguments are space-separated.
750 begins with a double-quote character, that character will not be part
752 All remaining characters on the input line form the
754 including whitespace and double-quote characters, even trailing ones.
758 can be interpolated into subsequent text by using
759 .No \e* Ns Bq Ar stringname
762 of arbitrary length, or \e*(NN or \e*N if the length of
764 is two or one characters, respectively.
765 Interpolation can be prevented by escaping the leading backslash;
766 that is, an asterisk preceded by an even number of backslashes
767 does not trigger string interpolation.
769 Since user-defined strings and macros share a common string table,
776 used for defining a string can also be invoked as a macro,
777 in which case the following input line will be appended to the
779 forming a new input line passed to the
783 .Bd -literal -offset indent
794 Such abuse is of course strongly discouraged.
795 .It Ic \&ds1 Ar stringname Op Oo \(dq Oc Ns Ar string
796 Define a user-defined string that will be expanded with
798 compatibility mode switched off during string expansion.
799 This is a groff extension.
804 compatibility mode at all, it handles this request as an alias for
806 .It Ic \&dwh Ar dist macroname
807 Set a location trap in the current diversion.
808 This is a Heirloom extension and currently unsupported.
809 .It Ic \&dt Op Ar dist macroname
810 Set a trap within a diversion.
811 Currently unsupported.
812 .It Ic \&ec Op Ar char
813 Enable the escape mechanism and change the escape character.
816 argument defaults to the backslash
819 Restore the escape character.
820 Currently unsupported.
822 Save the escape character.
823 Currently unsupported.
827 half of an if/else conditional.
828 Pops a result off the stack of conditional evaluations pushed by
830 and uses it as its conditional.
831 If no stack entries are present (e.g., due to no prior
834 then false is assumed.
835 The syntax of this request is similar to
837 except that the conditional is missing.
838 .It Ic \&em Ar macroname
839 Set a trap at the end of input.
840 Currently unsupported.
842 End an equation block.
846 Disable the escape mechanism completely.
848 End a picture started by
850 This is a Heirloom extension and currently unsupported.
852 Begin an equation block.
855 for a description of the equation language.
856 .It Ic \&errprint Ar message
857 Print a string like an error message.
858 This is a Heirloom extension and currently ignored.
859 .It Ic \&ev Op Ar envname
860 Switch to another environment.
861 Currently unsupported.
862 .It Ic \&evc Op Ar envname
863 Copy an environment into the current environment.
864 Currently unsupported.
866 Abort processing and exit.
867 Currently unsupported.
868 .It Ic \&fallback Ar curfont font ...
869 Select the fallback sequence for a font.
870 This is a Heirloom extension and currently ignored.
871 .It Ic \&fam Op Ar familyname
872 Change the font family.
873 This is a groff extension and currently ignored.
874 .It Ic \&fc Op Ar delimchar Op Ar padchar
875 Define a delimiting and a padding character for fields.
876 Currently unsupported.
877 .It Ic \&fchar Ar glyphname Op Ar string
878 Define a fallback glyph.
879 Currently unsupported.
880 .It Ic \&fcolor Ar colorname
881 Set the fill color for \eD objects.
882 This is a groff extension and currently ignored.
883 .It Ic \&fdeferlig Ar font string ...
884 Defer ligature building.
885 This is a Heirloom extension and currently ignored.
886 .It Ic \&feature Cm + Ns | Ns Cm - Ns Ar name
887 Enable or disable an OpenType feature.
888 This is a Heirloom extension and currently ignored.
895 .It Ic \&fkern Ar font minkern
896 Control the use of kerning tables for a font.
897 This is a Heirloom extension and currently ignored.
901 .It Ic \&flig Ar font string char ...
903 This is a Heirloom extension and currently ignored.
904 .It Ic \&fp Ar position font Op Ar filename
905 Assign font position.
907 .It Ic \&fps Ar mapname ...
908 Mount a font with a special character map.
909 This is a Heirloom extension and currently ignored.
910 .It Ic \&fschar Ar font glyphname Op Ar string
911 Define a font-specific fallback glyph.
912 This is a groff extension and currently unsupported.
913 .It Ic \&fspacewidth Ar font Op Ar afmunits
914 Set a font-specific width for the space character.
915 This is a Heirloom extension and currently ignored.
916 .It Ic \&fspecial Ar curfont Op Ar font ...
917 Conditionally define a special font.
918 This is a groff extension and currently ignored.
919 .It Ic \&ft Op Ar font
923 arguments are supported:
924 .Bl -tag -width 4n -offset indent
925 .It Cm B , BI , 3 , 4
934 switches to normal font
935 .It Cm P No "or no argument"
936 switches back to the previous font
939 This request takes effect only locally and may be overridden
940 by macros and escape sequences.
941 .It Ic \&ftr Ar newname Op Ar oldname
943 This is a groff extension and currently ignored.
944 .It Ic \&fzoom Ar font Op Ar permille
947 .It Ic \&gcolor Op Ar colorname
949 This is a groff extension and currently ignored.
950 .It Ic \&hc Op Ar char
951 Set the hyphenation character.
953 .It Ic \&hcode Ar char code ...
954 Set hyphenation codes of characters.
956 .It Ic \&hidechar Ar font char ...
957 Hide characters in a font.
958 This is a Heirloom extension and currently ignored.
959 .It Ic \&hla Ar language
960 Set hyphenation language.
961 This is a groff extension and currently ignored.
962 .It Ic \&hlm Op Ar number
963 Set maximum number of consecutive hyphenated lines.
965 .It Ic \&hpf Ar filename
966 Load hyphenation pattern file.
967 This is a groff extension and currently ignored.
968 .It Ic \&hpfa Ar filename
969 Load hyphenation pattern file, appending to the current patterns.
970 This is a groff extension and currently ignored.
971 .It Ic \&hpfcode Ar code code ...
972 Define mapping values for character codes in hyphenation patterns.
973 This is a groff extension and currently ignored.
974 .It Ic \&hw Ar word ...
975 Specify hyphenation points in words.
977 .It Ic \&hy Op Ar mode
978 Set automatic hyphenation mode.
980 .It Ic \&hylang Ar language
981 Set hyphenation language.
982 This is a Heirloom extension and currently ignored.
983 .It Ic \&hylen Ar nchar
984 Minimum word length for hyphenation.
985 This is a Heirloom extension and currently ignored.
986 .It Ic \&hym Op Ar length
987 Set hyphenation margin.
988 This is a groff extension and currently ignored.
989 .It Ic \&hypp Ar penalty ...
990 Define hyphenation penalties.
991 This is a Heirloom extension and currently ignored.
992 .It Ic \&hys Op Ar length
993 Set hyphenation space.
994 This is a groff extension and currently ignored.
995 .It Ic \&ie Ar condition body
998 half of an if/else conditional.
999 The result of the conditional is pushed into a stack used by subsequent
1002 which may be separated by any intervening input (or not exist at all).
1003 Its syntax is equivalent to
1005 .It Ic \&if Ar condition body
1006 Begin a conditional.
1007 This request can also be written as follows:
1008 .Bd -unfilled -offset indent
1009 .Pf . Ic \&if Ar condition No \e{ Ns Ar body
1012 .Bd -unfilled -offset indent
1013 .Pf . Ic \&if Ar condition No \e{\e
1020 is a boolean expression.
1023 supports the following subset of roff conditionals:
1030 it is logically inverted.
1032 If the first character of
1040 it evaluates to true.
1042 If the first character of
1046 .Pq character available ,
1054 it evaluates to false.
1056 If the first character of
1060 it evaluates to true if the rest of
1062 is the name of an existing user defined macro or string;
1063 otherwise, it evaluates to false.
1065 If the first character of
1069 it evaluates to true if the rest of
1071 is the name of an existing number register;
1072 otherwise, it evaluates to false.
1076 starts with a parenthesis or with an optionally signed
1077 integer number, it is evaluated according to the rules of
1078 .Sx Numerical expressions
1080 It evaluates to true if the result is positive,
1081 or to false if the result is zero or negative.
1083 Otherwise, the first character of
1085 is regarded as a delimiter and it evaluates to true if the string
1086 extending from its first to its second occurrence is equal to the
1087 string extending from its second to its third occurrence.
1091 cannot be parsed, it evaluates to false.
1094 If a conditional is false, its children are not processed, but are
1095 syntactically interpreted to preserve the integrity of the input
1103 which may lead to interesting results, but
1105 .D1 \&.if t .if t \e{\e
1107 will continue to syntactically interpret to the block close of the final
1109 Sub-conditionals, in this case, obviously inherit the truth value of
1114 section is begun by an escaped brace
1116 scope continues until the end of the input line containing the
1117 matching closing-brace escape sequence
1121 is not enclosed in braces, scope continues until the end of the line.
1126 on the same line, whether after a brace or not, then requests and macros
1128 begin with a control character.
1129 It is generally more intuitive, in this case, to write
1130 .Bd -unfilled -offset indent
1131 .Pf . Ic \&if Ar condition No \e{\e
1136 than having the request or macro follow as
1138 .D1 Pf . Ic \&if Ar condition Pf \e{. Ar request
1140 The scope of a conditional is always parsed, but only executed if the
1141 conditional evaluates to true.
1145 is converted into a zero-width escape sequence if not passed as a
1154 being considered an argument of the
1157 .It Ic \&ig Op Ar endmacro
1159 Its syntax can be either
1160 .Bd -literal -offset indent
1167 .Bd -literal -offset indent
1168 .Pf . Cm \&ig Ar endmacro
1173 In the first case, input is ignored until a
1175 request is encountered on its own line.
1176 In the second case, input is ignored until the specified
1177 .Sq Pf . Ar endmacro
1179 Do not use the escape character
1181 anywhere in the definition of
1183 it would cause very strange behaviour.
1187 is a roff request or a roff macro, like in
1191 the subsequent invocation of
1193 will first terminate the
1195 then be invoked as usual.
1196 Otherwise, it only terminates the
1198 and arguments following it or the
1200 request are discarded.
1201 .It Ic \&in Op Oo Cm + Ns | Ns Cm - Oc Ns Ar width
1207 .It Ic \&index Ar register stringname substring
1208 Find a substring in a string.
1209 This is a Heirloom extension and currently unsupported.
1210 .It Ic \&it Ar expression macro
1211 Set an input line trap.
1214 will be invoked after processing the number of input text lines
1215 specified by the numerical
1217 While evaluating the
1219 the unit suffixes described below
1222 .It Ic \&it Ar expression macro
1223 Set an input line trap, not counting lines ending with \ec.
1224 Currently unsupported.
1225 .It Ic \&IX Ar class keystring
1226 To support the generation of a table of contents,
1228 emits this user-defined macro, usually without defining it.
1229 To avoid reporting large numbers of spurious errors,
1232 .It Ic \&kern Op Cm 1 | 0
1233 Switch kerning on or off.
1235 .It Ic \&kernafter Ar font char ... afmunits ...
1236 Increase kerning after some characters.
1237 This is a Heirloom extension and currently ignored.
1238 .It Ic \&kernbefore Ar font char ... afmunits ...
1239 Increase kerning before some characters.
1240 This is a Heirloom extension and currently ignored.
1241 .It Ic \&kernpair Ar font char ... font char ... afmunits
1242 Add a kerning pair to the kerning table.
1243 This is a Heirloom extension and currently ignored.
1244 .It Ic \&lc Op Ar glyph
1245 Define a leader repetition character.
1246 Currently unsupported.
1247 .It Ic \&lc_ctype Ar localename
1251 This is a Heirloom extension and currently unsupported.
1252 .It Ic \&lds Ar macroname string
1253 Define a local string.
1254 This is a Heirloom extension and currently unsupported.
1255 .It Ic \&length Ar register string
1256 Count the number of input characters in a string.
1257 Currently unsupported.
1258 .It Ic \&letadj Ar lspmin lshmin letss lspmax lshmax
1259 Dynamic letter spacing and reshaping.
1260 This is a Heirloom extension and currently ignored.
1261 .It Ic \&lf Ar lineno Op Ar filename
1262 Change the line number for error messages.
1263 Ignored because insecure.
1264 .It Ic \&lg Op Cm 1 | 0
1265 Switch the ligature mechanism on or off.
1267 .It Ic \&lhang Ar font char ... afmunits
1268 Hang characters at left margin.
1269 This is a Heirloom extension and currently ignored.
1270 .It Ic \&linetabs Op Cm 1 | 0
1271 Enable or disable line-tabs mode.
1272 This is a groff extension and currently unsupported.
1273 .It Ic \&ll Op Oo Cm + Ns | Ns Cm - Oc Ns Ar width
1274 Change the output line length.
1277 argument is omitted, the line length is reset to its previous value.
1278 The default setting for terminal output is 78n.
1279 If a sign is given, the line length is added to or subtracted from;
1280 otherwise, it is set to the provided value.
1281 Using this request in new manuals is discouraged for several reasons,
1282 among others because it overrides the
1285 command line option.
1286 .It Ic \&lnr Ar register Oo Cm + Ns | Ns Cm - Oc Ns Ar value Op Ar increment
1287 Set local number register.
1288 This is a Heirloom extension and currently unsupported.
1289 .It Ic \&lnrf Ar register Oo Cm + Ns | Ns Cm - Oc Ns Ar value Op Ar increment
1290 Set local floating-point register.
1291 This is a Heirloom extension and currently unsupported.
1292 .It Ic \&lpfx Ar string
1294 This is a Heirloom extension and currently unsupported.
1295 .It Ic \&ls Op Ar factor
1297 It takes one integer argument specifying the vertical distance of
1298 subsequent output text lines measured in v units.
1300 .It Ic \&lsm Ar macroname
1301 Set a leading spaces trap.
1302 This is a groff extension and currently unsupported.
1303 .It Ic \< Op Oo Cm + Ns | Ns Cm - Oc Ns Ar width
1304 Set title line length.
1306 .It Ic \&mc Ar glyph Op Ar dist
1307 Print margin character in the right margin.
1310 is currently ignored; instead, 1n is used.
1311 .It Ic \&mediasize Ar media
1312 Set the device media size.
1313 This is a Heirloom extension and currently ignored.
1314 .It Ic \&minss Ar width
1315 Set minimum word space.
1316 This is a Heirloom extension and currently ignored.
1317 .It Ic \&mk Op Ar register
1318 Mark vertical position.
1320 .It Ic \&mso Ar filename
1321 Load a macro file using the search path.
1322 Ignored because insecure.
1324 Disable adjusting without changing the adjustment mode.
1326 .It Ic \&ne Op Ar height
1327 Declare the need for the specified minimum vertical space
1328 before the next trap or the bottom of the page.
1331 Switch to no-fill mode.
1337 Turn off automatic hyphenation mode.
1339 .It Ic \&nhychar Ar char ...
1340 Define hyphenation-inhibiting characters.
1341 This is a Heirloom extension and currently ignored.
1342 .It Ic \&nm Op Ar start Op Ar inc Op Ar space Op Ar indent
1344 Currently unsupported.
1345 .It Ic \&nn Op Ar number
1346 Temporarily turn off line numbering.
1347 Currently unsupported.
1348 .It Ic \&nop Ar body
1349 Execute the rest of the input line as a request or macro line.
1350 Currently unsupported.
1351 .It Ic \&nr Ar register Oo Cm + Ns | Ns Cm - Oc Ns Ar expression Op Ar stepsize
1352 Define or change a register.
1353 A register is an arbitrary string value that defines some sort of state,
1354 which influences parsing and/or formatting.
1358 .Sx Numerical expressions
1360 If it is prefixed by a sign, the register will be
1361 incremented or decremented instead of assigned to.
1367 auto-increment feature.
1368 It remains unchanged when omitted while changing an existing register,
1369 and it defaults to 0 when defining a new register.
1373 is handled specially:
1376 If set to a positive integer value, certain
1378 macros will behave in the same way as in the
1381 If set to 0, these macros will behave in the same way as outside the
1383 section, even when called within the
1386 Note that starting a new
1390 macro will reset this register.
1393 .Ic \&nrf Ar register Oo Cm + Ns | Ns Cm - Oc Ns Ar expression
1396 Define or change a floating-point register.
1397 This is a Heirloom extension and currently unsupported.
1400 This is a groff extension and currently ignored.
1402 Turn on no-space mode.
1404 .It Ic \&nx Op Ar filename
1405 Abort processing of the current input file and process another one.
1406 Ignored because insecure.
1407 .It Ic \&open Ar stream file
1408 Open a file for writing.
1409 Ignored because insecure.
1410 .It Ic \&opena Ar stream file
1411 Open a file for appending.
1412 Ignored because insecure.
1414 Output saved vertical space.
1416 .It Ic \&output Ar string
1417 Output directly to intermediate output.
1419 .It Ic \&padj Op Cm 1 | 0
1420 Globally control paragraph-at-once adjustment.
1421 This is a Heirloom extension and currently ignored.
1422 .It Ic \&papersize Ar media
1424 This is a Heirloom extension and currently ignored.
1425 .It Ic \&pc Op Ar char
1426 Change the page number character.
1430 This is a groff extension and currently ignored.
1431 .It Ic \&pi Ar command
1432 Pipe output to a shell command.
1433 Ignored because insecure.
1435 Low-level request used by
1437 This is a Heirloom extension and currently unsupported.
1438 .It Ic \&pl Op Oo Cm + Ns | Ns Cm - Oc Ns Ar height
1442 Print names and sizes of macros, strings, and diversions
1443 to standard error output.
1445 .It Ic \&pn Oo Cm + Ns | Ns Cm - Oc Ns Ar number
1446 Change the page number of the next page.
1449 Print all number registers on standard error output.
1451 .It Ic \&po Op Oo Cm + Ns | Ns Cm - Oc Ns Ar offset
1452 Set a horizontal page offset.
1453 If no argument is specified, the page offset is reverted to its
1455 If a sign is specified, the new page offset is calculated relative
1456 to the current one; otherwise, it is absolute.
1457 The argument follows the syntax of
1459 and the default scaling unit is
1461 .It Ic \&ps Op Oo Cm + Ns | Ns Cm - Oc Ns size
1464 .It Ic \&psbb Ar filename
1465 Retrieve the bounding box of a PostScript file.
1466 Currently unsupported.
1467 .It Ic \&pshape Ar indent length ...
1468 Set a special shape for the current paragraph.
1469 This is a Heirloom extension and currently unsupported.
1470 .It Ic \&pso Ar command
1471 Include output of a shell command.
1472 Ignored because insecure.
1474 Print the names and positions of all traps on standard error output.
1475 This is a groff extension and currently ignored.
1476 .It Ic \&pvs Op Oo Cm + Ns | Ns Cm - Oc Ns Ar height
1477 Change post-vertical spacing.
1478 This is a groff extension and currently ignored.
1479 .It Ic \&rchar Ar glyph ...
1480 Remove glyph definitions.
1481 Currently unsupported.
1482 .It Ic \&rd Op Ar prompt Op Ar argument ...
1483 Read from standard input.
1485 .It Ic \&recursionlimit Ar maxrec maxtail
1486 Set the maximum stack depth for recursive macros.
1487 This is a Heirloom extension and currently ignored.
1488 .It Ic \&return Op Ar twice
1489 Exit a macro and return to the caller.
1490 Currently unsupported.
1491 .It Ic \&rfschar Ar font glyph ...
1492 Remove font-specific fallback glyph definitions.
1493 Currently unsupported.
1494 .It Ic \&rhang Ar font char ... afmunits
1495 Hang characters at right margin.
1496 This is a Heirloom extension and currently ignored.
1500 input lines to the right margin without filling.
1503 An argument of 0 or less ends right adjustment.
1504 .It Ic \&rm Ar macroname
1505 Remove a request, macro or string.
1506 .It Ic \&rn Ar oldname newname
1507 Rename a request, macro, diversion, or string.
1510 user-defined macros,
1514 macros, and user-defined strings can be renamed, but renaming of
1515 predefined strings and of
1517 requests is not supported, and diversions are not implemented at all.
1518 .It Ic \&rnn Ar oldname newname
1519 Rename a number register.
1520 Currently unsupported.
1521 .It Ic \&rr Ar register
1526 .It Ic \&rt Op Ar dist
1527 Return to marked vertical position.
1529 .It Ic \&schar Ar glyph Op Ar string
1530 Define global fallback glyph.
1531 This is a groff extension and currently unsupported.
1532 .It Ic \&sentchar Ar char ...
1533 Define sentence-ending characters.
1534 This is a Heirloom extension and currently ignored.
1535 .It Ic \&shc Op Ar glyph
1536 Change the soft hyphen character.
1538 .It Ic \&shift Op Ar number
1539 Shift macro arguments.
1540 Currently unsupported.
1541 .It Ic \&sizes Ar size ...
1542 Define permissible point sizes.
1543 This is a groff extension and currently ignored.
1544 .It Ic \&so Ar filename
1545 Include a source file.
1546 The file is read and its contents processed as input in place of the
1549 To avoid inadvertent inclusion of unrelated files,
1551 only accepts relative paths not containing the strings
1556 This request requires
1558 to change to the right directory before calling
1560 per convention to the root of the manual tree.
1561 Typical usage looks like:
1563 .Dl \&.so man3/Xcursor.3
1565 As the whole concept is rather fragile, the use of
1571 .It Ic \&sp Op Ar height
1572 Break the output line and emit vertical space.
1573 The argument follows the syntax of
1575 and defaults to one blank line
1577 .It Ic \&spacewidth Op Cm 1 | 0
1578 Set the space width from the font metrics file.
1579 This is a Heirloom extension and currently ignored.
1580 .It Ic \&special Op Ar font ...
1581 Define a special font.
1582 This is a groff extension and currently ignored.
1583 .It Ic \&spreadwarn Op Ar width
1584 Warn about wide spacing between words.
1586 .It Ic \&ss Ar wordspace Op Ar sentencespace
1587 Set space character size.
1589 .It Ic \&sty Ar position style
1590 Associate style with a font position.
1591 This is a groff extension and currently ignored.
1592 .It Ic \&substring Ar stringname startpos Op Ar endpos
1593 Replace a user-defined string with a substring.
1594 Currently unsupported.
1595 .It Ic \&sv Op Ar height
1596 Save vertical space.
1598 .It Ic \&sy Ar command
1599 Execute shell command.
1600 Ignored because insecure.
1602 Re-start a table layout, retaining the options of the prior table
1606 .It Ic \&ta Op Ar width ... Op Cm T Ar width ...
1610 argument follows the syntax of
1611 .Sx Scaling Widths .
1612 If prefixed by a plus sign, it is relative to the previous tab stop.
1613 The arguments after the
1615 marker are used repeatedly as often as needed; for each reuse,
1616 they are taken relative to the last previously established tab stop.
1619 is called without arguments, all tab stops are cleared.
1620 .It Ic \&tc Op Ar glyph
1621 Change tab repetition character.
1622 Currently unsupported.
1624 End a table context.
1627 .It Ic \&ti Oo Cm + Ns | Ns Cm - Oc Ns Ar width
1628 Break the output line and indent the next output line by
1630 If a sign is specified, the temporary indentation is calculated
1631 relative to the current indentation; otherwise, it is absolute.
1632 The argument follows the syntax of
1634 and the default scaling unit is
1636 .It Ic \&tkf Ar font minps width1 maxps width2
1637 Enable track kerning for a font.
1639 .It Ic \&tl No \& Ap Ar left Ap Ar center Ap Ar right Ap
1641 Currently unsupported.
1642 .It Ic \&tm Ar string
1643 Print to standard error output.
1645 .It Ic \&tm1 Ar string
1646 Print to standard error output, allowing leading blanks.
1647 This is a groff extension and currently ignored.
1648 .It Ic \&tmc Ar string
1649 Print to standard error output without a trailing newline.
1650 This is a groff extension and currently ignored.
1651 .It Ic \&tr Ar glyph glyph ...
1652 Output character translation.
1653 The first glyph in each pair is replaced by the second one.
1654 Character escapes can be used; for example,
1658 replaces all invocations of \e(xx with \e(yy.
1659 .It Ic \&track Ar font minps width1 maxps width2
1660 Static letter space tracking.
1661 This is a Heirloom extension and currently ignored.
1662 .It Ic \&transchar Ar char ...
1663 Define transparent characters for sentence-ending.
1664 This is a Heirloom extension and currently ignored.
1665 .It Ic \&trf Ar filename
1666 Output the contents of a file, disallowing invalid characters.
1667 This is a groff extension and ignored because insecure.
1668 .It Ic \&trimat Ar left top width height
1669 Set the TrimBox page parameter for PDF generation.
1670 This is a Heirloom extension and currently ignored.
1671 .It Ic \&trin Ar glyph glyph ...
1672 Output character translation, ignored by
1674 Currently unsupported.
1675 .It Ic \&trnt Ar glyph glyph ...
1676 Output character translation, ignored by \e!.
1677 Currently unsupported.
1680 This is a groff extension and currently ignored.
1682 Begin a table, which formats input in aligned rows and columns.
1685 for a description of the tbl language.
1687 Globally set the underline font.
1694 .It Ic \&unformat Ar divname
1695 Unformat spaces and tabs in a diversion.
1696 Currently unsupported.
1697 .It Ic \&unwatch Ar macroname
1698 Disable notification for string or macro.
1699 This is a Heirloom extension and currently ignored.
1700 .It Ic \&unwatchn Ar register
1701 Disable notification for register.
1702 This is a Heirloom extension and currently ignored.
1703 .It Ic \&vpt Op Cm 1 | 0
1704 Enable or disable vertical position traps.
1705 This is a groff extension and currently ignored.
1706 .It Ic \&vs Op Oo Cm + Ns | Ns Cm - Oc Ns Ar height
1707 Change vertical spacing.
1709 .It Ic \&warn Ar flags
1712 .It Ic \&warnscale Ar si
1713 Set the scaling indicator used in warnings.
1714 This is a groff extension and currently ignored.
1715 .It Ic \&watch Ar macroname
1716 Notify on change of string or macro.
1717 This is a Heirloom extension and currently ignored.
1718 .It Ic \&watchlength Ar maxlength
1719 On change, report the contents of macros and strings
1720 up to the specified length.
1721 This is a Heirloom extension and currently ignored.
1722 .It Ic \&watchn Ar register
1723 Notify on change of register.
1724 This is a Heirloom extension and currently ignored.
1725 .It Ic \&wh Ar dist Op Ar macroname
1726 Set a page location trap.
1727 Currently unsupported.
1728 .It Ic \&while Ar condition body
1729 Repeated execution while a condition is true.
1730 Currently unsupported.
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 Hyphenation allowed at this point of the word; ignored by
1855 Non-printing zero-width character; see
1858 Acute accent special character; use
1862 .Sx Special Characters
1863 with two-letter names, see
1865 .Ss \e* Ns Bq Ar name
1866 Interpolate the string with the
1869 .Sx Predefined Strings
1872 For short names, there are variants
1877 Left italic correction (groff extension); ignored by
1881 .Dq mathematical minus sign .
1883 Right italic correction (groff extension); ignored by
1885 .Ss \e Ns Bq Ar name
1886 .Sx Special Characters
1887 with names of arbitrary length, see
1890 One-twelfth em half-narrow space character, effectively zero-width in
1893 Grave accent special character; use
1897 Begin conditional input; see
1900 One-sixth em narrow space character, effectively zero-width in
1903 End conditional input; see
1906 Paddable non-breaking space character.
1908 Digit width space character.
1909 .Ss \eA\(aq Ns Ar string Ns \(aq
1910 Anchor definition; ignored by
1912 .Ss \eB\(aq Ns Ar string Ns \(aq
1917 conforms to the syntax of
1918 .Sx Numerical expressions
1922 .Ss \eb\(aq Ns Ar string Ns \(aq
1923 Bracket building function; ignored by
1925 .Ss \eC\(aq Ns Ar name Ns \(aq
1926 .Sx Special Characters
1927 with names of arbitrary length.
1929 When encountered at the end of an input text line,
1930 the next input text line is considered to continue that line,
1931 even if there are request or macro lines in between.
1932 No whitespace is inserted.
1933 .Ss \eD\(aq Ns Ar string Ns \(aq
1934 Draw graphics function; ignored by
1937 Move down by half a line; ignored by
1940 Backslash special character.
1941 .Ss \eF Ns Bq Ar name
1942 Switch font family (groff extension); ignored by
1944 For short names, there are variants
1948 .Ss \ef Ns Bq Ar name
1952 .Sx Text Decoration .
1953 For short names, there are variants
1957 .Ss \eg Ns Bq Ar name
1958 Interpolate the format of a number register; ignored by
1960 For short names, there are variants
1964 .Ss \eH\(aq Ns Oo +|- Oc Ns Ar number Ns \(aq
1965 Set the height of the current font; ignored by
1967 .Ss \eh\(aq Ns Oo Cm \&| Oc Ns Ar width Ns \(aq
1969 If the vertical bar is given, the motion is relative to the current
1971 Otherwise, it is relative to the current position.
1972 The default scaling unit is
1974 .Ss \ek Ns Bq Ar name
1975 Mark horizontal input place in register; ignored by
1977 For short names, there are variants
1981 .Ss \eL\(aq Ns Ar number Ns Oo Ar c Oc Ns \(aq
1982 Vertical line drawing function; ignored by
1984 .Ss \el\(aq Ns Ar width Ns Oo Ar c Oc Ns \(aq
1985 Draw a horizontal line of
1989 .Ss \eM Ns Bq Ar name
1990 Set fill (background) color (groff extension); ignored by
1992 For short names, there are variants
1996 .Ss \em Ns Bq Ar name
1997 Set glyph drawing color (groff extension); ignored by
1999 For short names, there are variants
2003 .Ss \eN\(aq Ns Ar number Ns \(aq
2006 on the current font.
2007 .Ss \en Ns Oo +|- Oc Ns Bq Ar name
2008 Interpolate the number register
2010 For short names, there are variants
2014 If the optional sign is specified,
2015 the register is first incremented or decremented by the
2017 that was specified in the relevant
2019 request, and the changed value is interpolated.
2020 .Ss \eo\(aq Ns Ar string Ns \(aq
2021 Overstrike, writing all the characters contained in the
2023 to the same output position.
2024 In terminal and HTML output modes,
2025 only the last one of the characters is visible.
2027 Break the output line at the end of the current word.
2028 .Ss \eR\(aq Ns Ar name Oo +|- Oc Ns Ar number Ns \(aq
2029 Set number register; ignored by
2031 .Ss \eS\(aq Ns Ar number Ns \(aq
2032 Slant output; ignored by
2034 .Ss \es\(aq Ns Oo +|- Oc Ns Ar number Ns \(aq
2035 Change point size; ignored by
2038 .No \es Ns Oo +|- Oc Ns Ar n ,
2039 .No \es Ns Oo +|- Oc Ns \(aq Ns Ar number Ns \(aq ,
2040 .No \es Ns Bq Oo +|- Oc Ns Ar number ,
2042 .No \es Ns Oo +|- Oc Ns Bq Ar number
2043 are also parsed and ignored.
2045 Horizontal tab; ignored by
2048 Move up by half a line; ignored by
2050 .Ss \eV Ns Bq Ar name
2051 Interpolate an environment variable; ignored by
2053 For short names, there are variants
2057 .Ss \ev\(aq Ns Ar number Ns \(aq
2058 Vertical motion; ignored by
2060 .Ss \ew\(aq Ns Ar string Ns \(aq
2061 Interpolate the width of the
2065 implementation assumes that after expansion of user-defined strings, the
2067 only contains normal characters, no escape sequences, and that each
2068 character has a width of 24 basic units.
2069 .Ss \eX\(aq Ns Ar string Ns \(aq
2072 as device control function; ignored in nroff mode and by
2074 .Ss \ex\(aq Ns Ar number Ns \(aq
2075 Extra line space function; ignored by
2077 .Ss \eY Ns Bq Ar name
2078 Output a string as a device control function; ignored in nroff mode and by
2080 For short names, there are variants
2084 .Ss \eZ\(aq Ns Ar string Ns \(aq
2087 with zero width and height; ignored by
2090 Output the next character without advancing the cursor position.
2094 implementation of the
2096 language is intentionally incomplete.
2097 Unimplemented features include:
2101 For security reasons,
2103 never reads or writes external files except via
2105 requests with safe relative paths.
2107 There is no automatic hyphenation, no adjustment to the right margin,
2108 and no centering; the output is always set flush-left.
2110 Support for setting tabulator positions
2111 and tabulator and leader characters is missing,
2112 and support for manually changing indentation is limited.
2116 scaling unit is the default terminal unit.
2117 In traditional troff systems, this unit changes depending on the
2120 Width measurements are implemented in a crude way
2121 and often yield wrong results.
2122 Explicit movement requests and escapes are ignored.
2124 There is no concept of output pages, no support for floats,
2125 graphics drawing, and picture inclusion;
2126 terminal output is always continuous.
2128 Requests regarding color, font families, and glyph manipulation
2130 Font support is very limited.
2131 Kerning is not implemented, and no ligatures are produced.
2135 macro control character does not suppress output line breaks.
2137 Diversions are not implemented,
2138 and support for traps is very incomplete.
2140 While recursion is supported,
2145 The special semantics of the
2147 number register is an idiosyncracy of
2149 manuals and not supported by other
2160 .%A Joseph F. Ossanna
2161 .%A Brian W. Kernighan
2162 .%I AT&T Bell Laboratories
2163 .%T Troff User's Manual
2164 .%R Computing Science Technical Report
2166 .%C Murray Hill, New Jersey
2168 .%U http://www.kohala.com/start/troff/cstr54.ps
2171 .%A Joseph F. Ossanna
2172 .%A Brian W. Kernighan
2174 .%T Heirloom Documentation Tools Nroff/Troff User's Manual
2175 .%D September 17, 2007
2176 .%U http://heirloom.sourceforge.net/doctools/troff.pdf
2179 The RUNOFF typesetting system, whose input forms the basis for
2181 was written in MAD and FAP for the CTSS operating system by Jerome E.
2183 Doug McIlroy rewrote it in BCPL in 1969, renaming it
2185 Dennis M. Ritchie rewrote McIlroy's
2187 in PDP-11 assembly for
2189 Joseph F. Ossanna improved roff and renamed it nroff
2192 then ported nroff to C as troff, which Brian W. Kernighan released with
2194 In 1989, James Clarke re-implemented troff in C++, naming it groff.
2199 reference was written by
2200 .An Kristaps Dzonsons Aq Mt kristaps@bsd.lv
2202 .An Ingo Schwarze Aq Mt schwarze@openbsd.org .