1.\" $Id: roff.7,v 1.111 2019/01/01 03:45:29 schwarze Exp $ 2.\" 3.\" Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> 4.\" Copyright (c) 2010-2019 Ingo Schwarze <schwarze@openbsd.org> 5.\" 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. 9.\" 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. 17.\" 18.Dd $Mdocdate: January 1 2019 $ 19.Dt ROFF 7 20.Os 21.Sh NAME 22.Nm roff 23.Nd roff language reference for mandoc 24.Sh DESCRIPTION 25The 26.Nm roff 27language is a general purpose text formatting language. 28Since traditional implementations of the 29.Xr mdoc 7 30and 31.Xr man 7 32manual formatting languages are based on it, 33many real-world manuals use small numbers of 34.Nm 35requests and escape sequences intermixed with their 36.Xr mdoc 7 37or 38.Xr man 7 39code. 40To properly format such manuals, the 41.Xr mandoc 1 42utility supports a subset of 43.Nm 44requests and escapes. 45Even though this manual page lists all 46.Nm 47requests and escape sequences, it only contains partial information 48about requests not supported by 49.Xr mandoc 1 50and about language features that do not matter for manual pages. 51For complete 52.Nm 53manuals, consult the 54.Sx SEE ALSO 55section. 56.Pp 57Input lines beginning with the control character 58.Sq \&. 59are parsed for requests and macros. 60Such lines are called 61.Dq request lines 62or 63.Dq macro lines , 64respectively. 65Requests change the processing state and manipulate the formatting; 66some macros also define the document structure and produce formatted 67output. 68The single quote 69.Pq Qq \(aq 70is accepted as an alternative control character, 71treated by 72.Xr mandoc 1 73just like 74.Ql \&. 75.Pp 76Lines not beginning with control characters are called 77.Dq text lines . 78They provide free-form text to be printed; the formatting of the text 79depends on the respective processing context. 80.Sh LANGUAGE SYNTAX 81.Nm 82documents may contain only graphable 7-bit ASCII characters, the space 83character, and, in certain circumstances, the tab character. 84The backslash character 85.Sq \e 86indicates the start of an escape sequence, used for example for 87.Sx Comments 88and 89.Sx Special Characters . 90For a complete listing of escape sequences, consult the 91.Sx ESCAPE SEQUENCE REFERENCE 92below. 93.Ss Comments 94Text following an escaped double-quote 95.Sq \e\(dq , 96whether in a request, macro, or text line, is ignored to the end of the line. 97A request line beginning with a control character and comment escape 98.Sq \&.\e\(dq 99is also ignored. 100Furthermore, request lines with only a control character and optional 101trailing whitespace are stripped from input. 102.Pp 103Examples: 104.Bd -literal -offset indent -compact 105\&.\e\(dq This is a comment line. 106\&.\e\(dq The next line is ignored: 107\&. 108\&.Sh EXAMPLES \e\(dq This is a comment, too. 109\&example text \e\(dq And so is this. 110.Ed 111.Ss Special Characters 112Special characters are used to encode special glyphs and are rendered 113differently across output media. 114They may occur in request, macro, and text lines. 115Sequences begin with the escape character 116.Sq \e 117followed by either an open-parenthesis 118.Sq \&( 119for two-character sequences; an open-bracket 120.Sq \&[ 121for n-character sequences (terminated at a close-bracket 122.Sq \&] ) ; 123or a single one character sequence. 124.Pp 125Examples: 126.Bl -tag -width Ds -offset indent -compact 127.It Li \e(em 128Two-letter em dash escape. 129.It Li \ee 130One-letter backslash escape. 131.El 132.Pp 133See 134.Xr mandoc_char 7 135for a complete list. 136.Ss Font Selection 137In 138.Xr mdoc 7 139and 140.Xr man 7 141documents, fonts are usually selected with macros. 142The 143.Ic \ef 144escape sequence and the 145.Ic \&ft 146request can be used to manually change the font, 147but this is not recommended in 148.Xr mdoc 7 149documents. 150Such manual font changes are overridden by many subsequent macros. 151.Pp 152The following fonts are supported: 153.Pp 154.Bl -tag -width CW -offset indent -compact 155.It Cm B 156Bold font. 157.It Cm BI 158A font that is both bold and italic. 159.It Cm CB 160Bold constant width font. 161Same as 162.Cm B 163in terminal output. 164.It Cm CI 165Italic constant width font. 166Same as 167.Cm I 168in terminal output. 169.It Cm CR 170Regular constant width font. 171Same as 172.Cm R 173in terminal output. 174.It Cm CW 175An alias for 176.Cm CR . 177.It Cm I 178Italic font. 179.It Cm P 180Return to the previous font. 181If a macro caused a font change since the last 182.Ic \ef 183eascape sequence or 184.Ic \&ft 185request, this returns to the font before the last font change in 186the macro rather than to the font before the last manual font change. 187.It Cm R 188Roman font. 189This is the default font. 190.It Cm 1 191An alias for 192.Cm R . 193.It Cm 2 194An alias for 195.Cm I . 196.It Cm 3 197An alias for 198.Cm B . 199.It Cm 4 200An alias for 201.Cm BI . 202.El 203.Pp 204Examples: 205.Bl -tag -width Ds -offset indent -compact 206.It Li \efBbold\efR 207Write in \fBbold\fP, then switch to regular font mode. 208.It Li \efIitalic\efP 209Write in \fIitalic\fP, then return to previous font mode. 210.It Li \ef(BIbold italic\efP 211Write in \f(BIbold italic\fP, then return to previous font mode. 212.El 213.Ss Whitespace 214Whitespace consists of the space character. 215In text lines, whitespace is preserved within a line. 216In request and macro lines, whitespace delimits arguments and is discarded. 217.Pp 218Unescaped trailing spaces are stripped from text line input unless in a 219literal context. 220In general, trailing whitespace on any input line is discouraged for 221reasons of portability. 222In the rare case that a space character is needed at the end of an 223input line, it may be forced by 224.Sq \e\ \e& . 225.Pp 226Literal space characters can be produced in the output 227using escape sequences. 228In macro lines, they can also be included in arguments using quotation; see 229.Sx MACRO SYNTAX 230for details. 231.Pp 232Blank text lines, which may include whitespace, are only permitted 233within literal contexts. 234If the first character of a text line is a space, that line is printed 235with a leading newline. 236.Ss Scaling Widths 237Many requests and macros support scaled widths for their arguments. 238The syntax for a scaled width is 239.Sq Li [+-]?[0-9]*.[0-9]*[:unit:] , 240where a decimal must be preceded or followed by at least one digit. 241.Pp 242The following scaling units are accepted: 243.Pp 244.Bl -tag -width Ds -offset indent -compact 245.It c 246centimetre 247.It i 248inch 249.It P 250pica (1/6 inch) 251.It p 252point (1/72 inch) 253.It f 254scale 255.Sq u 256by 65536 257.It v 258default vertical span 259.It m 260width of rendered 261.Sq m 262.Pq em 263character 264.It n 265width of rendered 266.Sq n 267.Pq en 268character 269.It u 270default horizontal span for the terminal 271.It M 272mini-em (1/100 em) 273.El 274.Pp 275Using anything other than 276.Sq m , 277.Sq n , 278or 279.Sq v 280is necessarily non-portable across output media. 281See 282.Sx COMPATIBILITY . 283.Pp 284If a scaling unit is not provided, the numerical value is interpreted 285under the default rules of 286.Sq v 287for vertical spaces and 288.Sq u 289for horizontal ones. 290.Pp 291Examples: 292.Bl -tag -width ".Bl -tag -width 2i" -offset indent -compact 293.It Li \&.Bl -tag -width 2i 294two-inch tagged list indentation in 295.Xr mdoc 7 296.It Li \&.HP 2i 297two-inch tagged list indentation in 298.Xr man 7 299.It Li \&.sp 2v 300two vertical spaces 301.El 302.Ss Sentence Spacing 303Each sentence should terminate at the end of an input line. 304By doing this, a formatter will be able to apply the proper amount of 305spacing after the end of sentence (unescaped) period, exclamation mark, 306or question mark followed by zero or more non-sentence closing 307delimiters 308.Po 309.Sq \&) , 310.Sq \&] , 311.Sq \&' , 312.Sq \&" 313.Pc . 314.Pp 315The proper spacing is also intelligently preserved if a sentence ends at 316the boundary of a macro line. 317.Pp 318Examples: 319.Bd -literal -offset indent -compact 320Do not end sentences mid-line like this. Instead, 321end a sentence like this. 322A macro would end like this: 323\&.Xr mandoc 1 \&. 324.Ed 325.Sh REQUEST SYNTAX 326A request or macro line consists of: 327.Pp 328.Bl -enum -compact 329.It 330the control character 331.Sq \&. 332or 333.Sq \(aq 334at the beginning of the line, 335.It 336optionally an arbitrary amount of whitespace, 337.It 338the name of the request or the macro, which is one word of arbitrary 339length, terminated by whitespace, 340.It 341and zero or more arguments delimited by whitespace. 342.El 343.Pp 344Thus, the following request lines are all equivalent: 345.Bd -literal -offset indent 346\&.ig end 347\&.ig end 348\&. ig end 349.Ed 350.Sh MACRO SYNTAX 351Macros are provided by the 352.Xr mdoc 7 353and 354.Xr man 7 355languages and can be defined by the 356.Ic \&de 357request. 358When called, they follow the same syntax as requests, except that 359macro arguments may optionally be quoted by enclosing them 360in double quote characters 361.Pq Sq \(dq . 362Quoted text, even if it contains whitespace or would cause 363a macro invocation when unquoted, is always considered literal text. 364Inside quoted text, pairs of double quote characters 365.Pq Sq Qq 366resolve to single double quote characters. 367.Pp 368To be recognised as the beginning of a quoted argument, the opening 369quote character must be preceded by a space character. 370A quoted argument extends to the next double quote character that is not 371part of a pair, or to the end of the input line, whichever comes earlier. 372Leaving out the terminating double quote character at the end of the line 373is discouraged. 374For clarity, if more arguments follow on the same input line, 375it is recommended to follow the terminating double quote character 376by a space character; in case the next character after the terminating 377double quote character is anything else, it is regarded as the beginning 378of the next, unquoted argument. 379.Pp 380Both in quoted and unquoted arguments, pairs of backslashes 381.Pq Sq \e\e 382resolve to single backslashes. 383In unquoted arguments, space characters can alternatively be included 384by preceding them with a backslash 385.Pq Sq \e\~ , 386but quoting is usually better for clarity. 387.Pp 388Examples: 389.Bl -tag -width Ds -offset indent -compact 390.It Li .Fn strlen \(dqconst char *s\(dq 391Group arguments 392.Qq const char *s 393into one function argument. 394If unspecified, 395.Qq const , 396.Qq char , 397and 398.Qq *s 399would be considered separate arguments. 400.It Li .Op \(dqFl a\(dq 401Consider 402.Qq \&Fl a 403as literal text instead of a flag macro. 404.El 405.Sh REQUEST REFERENCE 406The 407.Xr mandoc 1 408.Nm 409parser recognises the following requests. 410For requests marked as "ignored" or "unsupported", any arguments are 411ignored, and the number of arguments is not checked. 412.Bl -tag -width Ds 413.It Ic \&ab Op Ar message 414Abort processing. 415Currently unsupported. 416.It Ic \&ad Op Cm b | c | l | n | r 417Set line adjustment mode for subsequent text. 418Currently ignored. 419.It Ic \&af Ar registername format 420Assign an output format to a number register. 421Currently ignored. 422.It Ic \&aln Ar newname oldname 423Create an alias for a number register. 424Currently unsupported. 425.It Ic \&als Ar newname oldname 426Create an alias for a request, string, macro, or diversion. 427.It Ic \&am Ar macroname Op Ar endmacro 428Append to a macro definition. 429The syntax of this request is the same as that of 430.Ic \&de . 431.It Ic \&am1 Ar macroname Op Ar endmacro 432Append to a macro definition, switching roff compatibility mode off 433during macro execution (groff extension). 434The syntax of this request is the same as that of 435.Ic \&de1 . 436Since 437.Xr mandoc 1 438does not implement 439.Nm 440compatibility mode at all, it handles this request as an alias for 441.Ic \&am . 442.It Ic \&ami Ar macrostring Op Ar endstring 443Append to a macro definition, specifying the macro name indirectly 444(groff extension). 445The syntax of this request is the same as that of 446.Ic \&dei . 447.It Ic \&ami1 Ar macrostring Op Ar endstring 448Append to a macro definition, specifying the macro name indirectly 449and switching roff compatibility mode off during macro execution 450(groff extension). 451The syntax of this request is the same as that of 452.Ic \&dei1 . 453Since 454.Xr mandoc 1 455does not implement 456.Nm 457compatibility mode at all, it handles this request as an alias for 458.Ic \&ami . 459.It Ic \&as Ar stringname Op Ar string 460Append to a user-defined string. 461The syntax of this request is the same as that of 462.Ic \&ds . 463If a user-defined string with the specified name does not yet exist, 464it is set to the empty string before appending. 465.It Ic \&as1 Ar stringname Op Ar string 466Append to a user-defined string, switching roff compatibility mode off 467during macro execution (groff extension). 468The syntax of this request is the same as that of 469.Ic \&ds1 . 470Since 471.Xr mandoc 1 472does not implement 473.Nm 474compatibility mode at all, it handles this request as an alias for 475.Ic \&as . 476.It Ic \&asciify Ar divname 477Fully unformat a diversion. 478Currently unsupported. 479.It Ic \&backtrace 480Print a backtrace of the input stack. 481This is a groff extension and currently ignored. 482.It Ic \&bd Ar font Oo Ar curfont Oc Op Ar offset 483Artificially embolden by repeated printing with small shifts. 484Currently ignored. 485.It Ic \&bleedat Ar left top width height 486Set the BleedBox page parameter for PDF generation. 487This is a Heirloom extension and currently ignored. 488.It Ic \&blm Ar macroname 489Set a blank line trap. 490Currently unsupported. 491.It Ic \&box Ar divname 492Begin a diversion without including a partially filled line. 493Currently unsupported. 494.It Ic \&boxa Ar divname 495Add to a diversion without including a partially filled line. 496Currently unsupported. 497.It Ic \&bp Oo Cm + Ns | Ns Cm - Oc Ns Ar pagenumber 498Begin a new page. 499Currently ignored. 500.It Ic \&BP Ar source height width position offset flags label 501Define a frame and place a picture in it. 502This is a Heirloom extension and currently unsupported. 503.It Ic \&br 504Break the output line. 505.It Ic \&break 506Break out of a 507.Ic \&while 508loop. 509Currently unsupported. 510.It Ic \&breakchar Ar char ... 511Optional line break characters. 512This is a Heirloom extension and currently ignored. 513.It Ic \&brnl Ar N 514Break output line after the next 515.Ar N 516input lines. 517This is a Heirloom extension and currently ignored. 518.It Ic \&brp 519Break and spread output line. 520Currently, this is implemented as an alias for 521.Ic \&br . 522.It Ic \&brpnl Ar N 523Break and spread output line after the next 524.Ar N 525input lines. 526This is a Heirloom extension and currently ignored. 527.It Ic \&c2 Op Ar char 528Change the no-break control character. 529Currently unsupported. 530.It Ic \&cc Op Ar char 531Change the control character. 532If 533.Ar char 534is not specified, the control character is reset to 535.Sq \&. . 536Trailing characters are ignored. 537.It Ic \&ce Op Ar N 538Center the next 539.Ar N 540input lines without filling. 541.Ar N 542defaults to 1. 543An argument of 0 or less ends centering. 544Currently, high level macros abort centering. 545.It Ic \&cf Ar filename 546Output the contents of a file. 547Ignored because insecure. 548.It Ic \&cflags Ar flags char ... 549Set character flags. 550This is a groff extension and currently ignored. 551.It Ic \&ch Ar macroname Op Ar dist 552Change a trap location. 553Currently ignored. 554.It Ic \&char Ar glyph Op Ar string 555Define or redefine the ASCII character or character escape sequence 556.Ar glyph 557to be rendered as 558.Ar string , 559which can be empty. 560Only partially supported in 561.Xr mandoc 1 ; 562may interact incorrectly with 563.Ic \&tr . 564.It Ic \&chop Ar stringname 565Remove the last character from a macro, string, or diversion. 566Currently unsupported. 567.It Ic \&class Ar classname char ... 568Define a character class. 569This is a groff extension and currently ignored. 570.It Ic \&close Ar streamname 571Close an open file. 572Ignored because insecure. 573.It Ic \&CL Ar color text 574Print text in color. 575This is a Heirloom extension and currently unsupported. 576.It Ic \&color Op Cm 1 | 0 577Activate or deactivate colors. 578This is a groff extension and currently ignored. 579.It Ic \&composite Ar from to 580Define a name component for composite glyph names. 581This is a groff extension and currently unsupported. 582.It Ic \&continue 583Immediately start the next iteration of a 584.Ic \&while 585loop. 586Currently unsupported. 587.It Ic \&cp Op Cm 1 | 0 588Switch 589.Nm 590compatibility mode on or off. 591Currently ignored. 592.It Ic \&cropat Ar left top width height 593Set the CropBox page parameter for PDF generation. 594This is a Heirloom extension and currently ignored. 595.It Ic \&cs Ar font Op Ar width Op Ar emsize 596Constant character spacing mode. 597Currently ignored. 598.It Ic \&cu Op Ar N 599Underline next 600.Ar N 601input lines including whitespace. 602Currently ignored. 603.It Ic \&da Ar divname 604Append to a diversion. 605Currently unsupported. 606.It Ic \&dch Ar macroname Op Ar dist 607Change a trap location in the current diversion. 608This is a Heirloom extension and currently unsupported. 609.It Ic \&de Ar macroname Op Ar endmacro 610Define a 611.Nm 612macro. 613Its syntax can be either 614.Bd -literal -offset indent 615.Pf . Ic \&de Ar macroname 616.Ar definition 617\&.. 618.Ed 619.Pp 620or 621.Bd -literal -offset indent 622.Pf . Ic \&de Ar macroname Ar endmacro 623.Ar definition 624.Pf . Ar endmacro 625.Ed 626.Pp 627Both forms define or redefine the macro 628.Ar macroname 629to represent the 630.Ar definition , 631which may consist of one or more input lines, including the newline 632characters terminating each line, optionally containing calls to 633.Nm 634requests, 635.Nm 636macros or high-level macros like 637.Xr man 7 638or 639.Xr mdoc 7 640macros, whichever applies to the document in question. 641.Pp 642Specifying a custom 643.Ar endmacro 644works in the same way as for 645.Ic \&ig ; 646namely, the call to 647.Sq Pf . Ar endmacro 648first ends the 649.Ar definition , 650and after that, it is also evaluated as a 651.Nm 652request or 653.Nm 654macro, but not as a high-level macro. 655.Pp 656The macro can be invoked later using the syntax 657.Pp 658.D1 Pf . Ar macroname Op Ar argument Op Ar argument ... 659.Pp 660Regarding argument parsing, see 661.Sx MACRO SYNTAX 662above. 663.Pp 664The line invoking the macro will be replaced 665in the input stream by the 666.Ar definition , 667replacing all occurrences of 668.No \e\e$ Ns Ar N , 669where 670.Ar N 671is a digit, by the 672.Ar N Ns th Ar argument . 673For example, 674.Bd -literal -offset indent 675\&.de ZN 676\efI\e^\e\e$1\e^\efP\e\e$2 677\&.. 678\&.ZN XtFree . 679.Ed 680.Pp 681produces 682.Pp 683.D1 \efI\e^XtFree\e^\efP. 684.Pp 685in the input stream, and thus in the output: \fI\^XtFree\^\fP. 686Each occurrence of \e\e$* is replaced with all the arguments, 687joined together with single space characters. 688The variant \e\e$@ is similar, except that each argument is 689individually quoted. 690.Pp 691Since macros and user-defined strings share a common string table, 692defining a macro 693.Ar macroname 694clobbers the user-defined string 695.Ar macroname , 696and the 697.Ar definition 698can also be printed using the 699.Sq \e* 700string interpolation syntax described below 701.Ic ds , 702but this is rarely useful because every macro definition contains at least 703one explicit newline character. 704.Pp 705In order to prevent endless recursion, both groff and 706.Xr mandoc 1 707limit the stack depth for expanding macros and strings 708to a large, but finite number, and 709.Xr mandoc 1 710also limits the length of the expanded input line. 711Do not rely on the exact values of these limits. 712.It Ic \&de1 Ar macroname Op Ar endmacro 713Define a 714.Nm 715macro that will be executed with 716.Nm 717compatibility mode switched off during macro execution. 718This is a groff extension. 719Since 720.Xr mandoc 1 721does not implement 722.Nm 723compatibility mode at all, it handles this request as an alias for 724.Ic \&de . 725.It Ic \&defcolor Ar newname scheme component ... 726Define a color name. 727This is a groff extension and currently ignored. 728.It Ic \&dei Ar macrostring Op Ar endstring 729Define a 730.Nm 731macro, specifying the macro name indirectly (groff extension). 732The syntax of this request is the same as that of 733.Ic \&de . 734The effect is the same as: 735.Pp 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 738Define a 739.Nm 740macro that will be executed with 741.Nm 742compatibility mode switched off during macro execution, 743specifying the macro name indirectly (groff extension). 744Since 745.Xr mandoc 1 746does not implement 747.Nm 748compatibility mode at all, it handles this request as an alias for 749.Ic \&dei . 750.It Ic \&device Ar string ... 751.It Ic \&devicem Ar stringname 752These two requests only make sense with the groff-specific intermediate 753output format and are unsupported. 754.It Ic \&di Ar divname 755Begin a diversion. 756Currently unsupported. 757.It Ic \&do Ar command Op Ar argument ... 758Execute 759.Nm 760request or macro line with compatibility mode disabled. 761Currently unsupported. 762.It Ic \&ds Ar stringname Op Oo \(dq Oc Ns Ar string 763Define a user-defined string. 764The 765.Ar stringname 766and 767.Ar string 768arguments are space-separated. 769If the 770.Ar string 771begins with a double-quote character, that character will not be part 772of the string. 773All remaining characters on the input line form the 774.Ar string , 775including whitespace and double-quote characters, even trailing ones. 776.Pp 777The 778.Ar string 779can be interpolated into subsequent text by using 780.No \e* Ns Bq Ar stringname 781for a 782.Ar stringname 783of arbitrary length, or \e*(NN or \e*N if the length of 784.Ar stringname 785is two or one characters, respectively. 786Interpolation can be prevented by escaping the leading backslash; 787that is, an asterisk preceded by an even number of backslashes 788does not trigger string interpolation. 789.Pp 790Since user-defined strings and macros share a common string table, 791defining a string 792.Ar stringname 793clobbers the macro 794.Ar stringname , 795and the 796.Ar stringname 797used for defining a string can also be invoked as a macro, 798in which case the following input line will be appended to the 799.Ar string , 800forming a new input line passed to the 801.Nm 802parser. 803For example, 804.Bd -literal -offset indent 805\&.ds badidea .S 806\&.badidea 807H SYNOPSIS 808.Ed 809.Pp 810invokes the 811.Ic SH 812macro when used in a 813.Xr man 7 814document. 815Such abuse is of course strongly discouraged. 816.It Ic \&ds1 Ar stringname Op Oo \(dq Oc Ns Ar string 817Define a user-defined string that will be expanded with 818.Nm 819compatibility mode switched off during string expansion. 820This is a groff extension. 821Since 822.Xr mandoc 1 823does not implement 824.Nm 825compatibility mode at all, it handles this request as an alias for 826.Ic \&ds . 827.It Ic \&dwh Ar dist macroname 828Set a location trap in the current diversion. 829This is a Heirloom extension and currently unsupported. 830.It Ic \&dt Op Ar dist macroname 831Set a trap within a diversion. 832Currently unsupported. 833.It Ic \&ec Op Ar char 834Enable the escape mechanism and change the escape character. 835The 836.Ar char 837argument defaults to the backslash 838.Pq Sq \e . 839.It Ic \&ecr 840Restore the escape character. 841Currently unsupported. 842.It Ic \&ecs 843Save the escape character. 844Currently unsupported. 845.It Ic \&el Ar body 846The 847.Dq else 848half of an if/else conditional. 849Pops a result off the stack of conditional evaluations pushed by 850.Ic \&ie 851and uses it as its conditional. 852If no stack entries are present (e.g., due to no prior 853.Ic \&ie 854calls) 855then false is assumed. 856The syntax of this request is similar to 857.Ic \&if 858except that the conditional is missing. 859.It Ic \&em Ar macroname 860Set a trap at the end of input. 861Currently unsupported. 862.It Ic \&EN 863End an equation block. 864See 865.Ic \&EQ . 866.It Ic \&eo 867Disable the escape mechanism completely. 868.It Ic \&EP 869End a picture started by 870.Ic \&BP . 871This is a Heirloom extension and currently unsupported. 872.It Ic \&EQ 873Begin an equation block. 874See 875.Xr eqn 7 876for a description of the equation language. 877.It Ic \&errprint Ar message 878Print a string like an error message. 879This is a Heirloom extension and currently ignored. 880.It Ic \&ev Op Ar envname 881Switch to another environment. 882Currently unsupported. 883.It Ic \&evc Op Ar envname 884Copy an environment into the current environment. 885Currently unsupported. 886.It Ic \&ex 887Abort processing and exit. 888Currently unsupported. 889.It Ic \&fallback Ar curfont font ... 890Select the fallback sequence for a font. 891This is a Heirloom extension and currently ignored. 892.It Ic \&fam Op Ar familyname 893Change the font family. 894This is a groff extension and currently ignored. 895.It Ic \&fc Op Ar delimchar Op Ar padchar 896Define a delimiting and a padding character for fields. 897Currently unsupported. 898.It Ic \&fchar Ar glyphname Op Ar string 899Define a fallback glyph. 900Currently unsupported. 901.It Ic \&fcolor Ar colorname 902Set the fill color for \eD objects. 903This is a groff extension and currently ignored. 904.It Ic \&fdeferlig Ar font string ... 905Defer ligature building. 906This is a Heirloom extension and currently ignored. 907.It Ic \&feature Cm + Ns | Ns Cm - Ns Ar name 908Enable or disable an OpenType feature. 909This is a Heirloom extension and currently ignored. 910.It Ic \&fi 911Break the output line and switch to fill mode, 912which is active by default but can be ended with the 913.Ic \&nf 914request. 915In fill mode, input from subsequent input lines is added to 916the same output line until the next word no longer fits, 917at which point the output line is broken. 918This request is implied by the 919.Xr mdoc 7 920.Ic \&Sh 921macro and by the 922.Xr man 7 923.Ic \&SH , 924.Ic \&SS , 925and 926.Ic \&EE 927macros. 928.It Ic \&fkern Ar font minkern 929Control the use of kerning tables for a font. 930This is a Heirloom extension and currently ignored. 931.It Ic \&fl 932Flush output. 933Currently ignored. 934.It Ic \&flig Ar font string char ... 935Define ligatures. 936This is a Heirloom extension and currently ignored. 937.It Ic \&fp Ar position font Op Ar filename 938Assign font position. 939Currently ignored. 940.It Ic \&fps Ar mapname ... 941Mount a font with a special character map. 942This is a Heirloom extension and currently ignored. 943.It Ic \&fschar Ar font glyphname Op Ar string 944Define a font-specific fallback glyph. 945This is a groff extension and currently unsupported. 946.It Ic \&fspacewidth Ar font Op Ar afmunits 947Set a font-specific width for the space character. 948This is a Heirloom extension and currently ignored. 949.It Ic \&fspecial Ar curfont Op Ar font ... 950Conditionally define a special font. 951This is a groff extension and currently ignored. 952.It Ic \&ft Op Ar font 953Change the font; see 954.Sx Font Selection . 955The 956.Ar font 957argument defaults to 958.Cm P . 959.It Ic \&ftr Ar newname Op Ar oldname 960Translate font name. 961This is a groff extension and currently ignored. 962.It Ic \&fzoom Ar font Op Ar permille 963Zoom font size. 964Currently ignored. 965.It Ic \&gcolor Op Ar colorname 966Set glyph color. 967This is a groff extension and currently ignored. 968.It Ic \&hc Op Ar char 969Set the hyphenation character. 970Currently ignored. 971.It Ic \&hcode Ar char code ... 972Set hyphenation codes of characters. 973Currently ignored. 974.It Ic \&hidechar Ar font char ... 975Hide characters in a font. 976This is a Heirloom extension and currently ignored. 977.It Ic \&hla Ar language 978Set hyphenation language. 979This is a groff extension and currently ignored. 980.It Ic \&hlm Op Ar number 981Set maximum number of consecutive hyphenated lines. 982Currently ignored. 983.It Ic \&hpf Ar filename 984Load hyphenation pattern file. 985This is a groff extension and currently ignored. 986.It Ic \&hpfa Ar filename 987Load hyphenation pattern file, appending to the current patterns. 988This is a groff extension and currently ignored. 989.It Ic \&hpfcode Ar code code ... 990Define mapping values for character codes in hyphenation patterns. 991This is a groff extension and currently ignored. 992.It Ic \&hw Ar word ... 993Specify hyphenation points in words. 994Currently ignored. 995.It Ic \&hy Op Ar mode 996Set automatic hyphenation mode. 997Currently ignored. 998.It Ic \&hylang Ar language 999Set hyphenation language. 1000This is a Heirloom extension and currently ignored. 1001.It Ic \&hylen Ar nchar 1002Minimum word length for hyphenation. 1003This is a Heirloom extension and currently ignored. 1004.It Ic \&hym Op Ar length 1005Set hyphenation margin. 1006This is a groff extension and currently ignored. 1007.It Ic \&hypp Ar penalty ... 1008Define hyphenation penalties. 1009This is a Heirloom extension and currently ignored. 1010.It Ic \&hys Op Ar length 1011Set hyphenation space. 1012This is a groff extension and currently ignored. 1013.It Ic \&ie Ar condition body 1014The 1015.Dq if 1016half of an if/else conditional. 1017The result of the conditional is pushed into a stack used by subsequent 1018invocations of 1019.Ic \&el , 1020which may be separated by any intervening input (or not exist at all). 1021Its syntax is equivalent to 1022.Ic \&if . 1023.It Ic \&if Ar condition body 1024Begin a conditional. 1025This request can also be written as follows: 1026.Bd -unfilled -offset indent 1027.Pf . Ic \&if Ar condition No \e{ Ns Ar body 1028.Ar body ... Ns \e} 1029.Ed 1030.Bd -unfilled -offset indent 1031.Pf . Ic \&if Ar condition No \e{\e 1032.Ar body ... 1033.Pf . No \e} 1034.Ed 1035.Pp 1036The 1037.Ar condition 1038is a boolean expression. 1039Currently, 1040.Xr mandoc 1 1041supports the following subset of roff conditionals: 1042.Bl -bullet 1043.It 1044If 1045.Sq \&! 1046is prefixed to 1047.Ar condition , 1048it is logically inverted. 1049.It 1050If the first character of 1051.Ar condition 1052is 1053.Sq n 1054.Pq nroff mode 1055or 1056.Sq o 1057.Pq odd page , 1058it evaluates to true, and the 1059.Ar body 1060starts with the next character. 1061.It 1062If the first character of 1063.Ar condition 1064is 1065.Sq e 1066.Pq even page , 1067.Sq t 1068.Pq troff mode , 1069or 1070.Sq v 1071.Pq vroff mode , 1072it evaluates to false, and the 1073.Ar body 1074starts with the next character. 1075.It 1076If the first character of 1077.Ar condition 1078is 1079.Sq c 1080.Pq character available , 1081it evaluates to true if the following character is an ASCII character 1082or a valid character escape sequence, or to false otherwise. 1083The 1084.Ar body 1085starts with the character following that next character. 1086.It 1087If the first character of 1088.Ar condition 1089is 1090.Sq d , 1091it evaluates to true if the rest of 1092.Ar condition 1093is the name of an existing user defined macro or string; 1094otherwise, it evaluates to false. 1095.It 1096If the first character of 1097.Ar condition 1098is 1099.Sq r , 1100it evaluates to true if the rest of 1101.Ar condition 1102is the name of an existing number register; 1103otherwise, it evaluates to false. 1104.It 1105If the 1106.Ar condition 1107starts with a parenthesis or with an optionally signed 1108integer number, it is evaluated according to the rules of 1109.Sx Numerical expressions 1110explained below. 1111It evaluates to true if the result is positive, 1112or to false if the result is zero or negative. 1113.It 1114Otherwise, the first character of 1115.Ar condition 1116is regarded as a delimiter and it evaluates to true if the string 1117extending from its first to its second occurrence is equal to the 1118string extending from its second to its third occurrence. 1119.It 1120If 1121.Ar condition 1122cannot be parsed, it evaluates to false. 1123.El 1124.Pp 1125If a conditional is false, its children are not processed, but are 1126syntactically interpreted to preserve the integrity of the input 1127document. 1128Thus, 1129.Pp 1130.D1 \&.if t .ig 1131.Pp 1132will discard the 1133.Sq \&.ig , 1134which may lead to interesting results, but 1135.Pp 1136.D1 \&.if t .if t \e{\e 1137.Pp 1138will continue to syntactically interpret to the block close of the final 1139conditional. 1140Sub-conditionals, in this case, obviously inherit the truth value of 1141the parent. 1142.Pp 1143If the 1144.Ar body 1145section is begun by an escaped brace 1146.Sq \e{ , 1147scope continues until the end of the input line containing the 1148matching closing-brace escape sequence 1149.Sq \e} . 1150If the 1151.Ar body 1152is not enclosed in braces, scope continues until the end of the line. 1153If the 1154.Ar condition 1155is followed by a 1156.Ar body 1157on the same line, whether after a brace or not, then requests and macros 1158.Em must 1159begin with a control character. 1160It is generally more intuitive, in this case, to write 1161.Bd -unfilled -offset indent 1162.Pf . Ic \&if Ar condition No \e{\e 1163.Pf . Ar request 1164.Pf . No \e} 1165.Ed 1166.Pp 1167than having the request or macro follow as 1168.Pp 1169.D1 Pf . Ic \&if Ar condition Pf \e{. Ar request 1170.Pp 1171The scope of a conditional is always parsed, but only executed if the 1172conditional evaluates to true. 1173.Pp 1174Note that the 1175.Sq \e} 1176is converted into a zero-width escape sequence if not passed as a 1177standalone macro 1178.Sq \&.\e} . 1179For example, 1180.Pp 1181.D1 \&.Fl a \e} b 1182.Pp 1183will result in 1184.Sq \e} 1185being considered an argument of the 1186.Sq \&Fl 1187macro. 1188.It Ic \&ig Op Ar endmacro 1189Ignore input. 1190Its syntax can be either 1191.Bd -literal -offset indent 1192.Pf . Cm \&ig 1193.Ar ignored text 1194\&.. 1195.Ed 1196.Pp 1197or 1198.Bd -literal -offset indent 1199.Pf . Cm \&ig Ar endmacro 1200.Ar ignored text 1201.Pf . Ar endmacro 1202.Ed 1203.Pp 1204In the first case, input is ignored until a 1205.Sq \&.. 1206request is encountered on its own line. 1207In the second case, input is ignored until the specified 1208.Sq Pf . Ar endmacro 1209is encountered. 1210Do not use the escape character 1211.Sq \e 1212anywhere in the definition of 1213.Ar endmacro ; 1214it would cause very strange behaviour. 1215.Pp 1216When the 1217.Ar endmacro 1218is a roff request or a roff macro, like in 1219.Pp 1220.D1 \&.ig if 1221.Pp 1222the subsequent invocation of 1223.Ic \&if 1224will first terminate the 1225.Ar ignored text , 1226then be invoked as usual. 1227Otherwise, it only terminates the 1228.Ar ignored text , 1229and arguments following it or the 1230.Sq \&.. 1231request are discarded. 1232.It Ic \&in Op Oo Cm + Ns | Ns Cm - Oc Ns Ar width 1233Change indentation. 1234See 1235.Xr man 7 . 1236Ignored in 1237.Xr mdoc 7 . 1238.It Ic \&index Ar register stringname substring 1239Find a substring in a string. 1240This is a Heirloom extension and currently unsupported. 1241.It Ic \&it Ar expression macro 1242Set an input line trap. 1243The named 1244.Ar macro 1245will be invoked after processing the number of input text lines 1246specified by the numerical 1247.Ar expression . 1248While evaluating the 1249.Ar expression , 1250the unit suffixes described below 1251.Sx Scaling Widths 1252are ignored. 1253.It Ic \&itc Ar expression macro 1254Set an input line trap, not counting lines ending with \ec. 1255Currently unsupported. 1256.It Ic \&IX Ar class keystring 1257To support the generation of a table of contents, 1258.Xr pod2man 1 1259emits this user-defined macro, usually without defining it. 1260To avoid reporting large numbers of spurious errors, 1261.Xr mandoc 1 1262ignores it. 1263.It Ic \&kern Op Cm 1 | 0 1264Switch kerning on or off. 1265Currently ignored. 1266.It Ic \&kernafter Ar font char ... afmunits ... 1267Increase kerning after some characters. 1268This is a Heirloom extension and currently ignored. 1269.It Ic \&kernbefore Ar font char ... afmunits ... 1270Increase kerning before some characters. 1271This is a Heirloom extension and currently ignored. 1272.It Ic \&kernpair Ar font char ... font char ... afmunits 1273Add a kerning pair to the kerning table. 1274This is a Heirloom extension and currently ignored. 1275.It Ic \&lc Op Ar glyph 1276Define a leader repetition character. 1277Currently unsupported. 1278.It Ic \&lc_ctype Ar localename 1279Set the 1280.Dv LC_CTYPE 1281locale. 1282This is a Heirloom extension and currently unsupported. 1283.It Ic \&lds Ar macroname string 1284Define a local string. 1285This is a Heirloom extension and currently unsupported. 1286.It Ic \&length Ar register string 1287Count the number of input characters in a string. 1288Currently unsupported. 1289.It Ic \&letadj Ar lspmin lshmin letss lspmax lshmax 1290Dynamic letter spacing and reshaping. 1291This is a Heirloom extension and currently ignored. 1292.It Ic \&lf Ar lineno Op Ar filename 1293Change the line number for error messages. 1294Ignored because insecure. 1295.It Ic \&lg Op Cm 1 | 0 1296Switch the ligature mechanism on or off. 1297Currently ignored. 1298.It Ic \&lhang Ar font char ... afmunits 1299Hang characters at left margin. 1300This is a Heirloom extension and currently ignored. 1301.It Ic \&linetabs Op Cm 1 | 0 1302Enable or disable line-tabs mode. 1303This is a groff extension and currently unsupported. 1304.It Ic \&ll Op Oo Cm + Ns | Ns Cm - Oc Ns Ar width 1305Change the output line length. 1306If the 1307.Ar width 1308argument is omitted, the line length is reset to its previous value. 1309The default setting for terminal output is 78n. 1310If a sign is given, the line length is added to or subtracted from; 1311otherwise, it is set to the provided value. 1312Using this request in new manuals is discouraged for several reasons, 1313among others because it overrides the 1314.Xr mandoc 1 1315.Fl O Cm width 1316command line option. 1317.It Ic \&lnr Ar register Oo Cm + Ns | Ns Cm - Oc Ns Ar value Op Ar increment 1318Set local number register. 1319This 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 1321Set local floating-point register. 1322This is a Heirloom extension and currently unsupported. 1323.It Ic \&lpfx Ar string 1324Set a line prefix. 1325This is a Heirloom extension and currently unsupported. 1326.It Ic \&ls Op Ar factor 1327Set line spacing. 1328It takes one integer argument specifying the vertical distance of 1329subsequent output text lines measured in v units. 1330Currently ignored. 1331.It Ic \&lsm Ar macroname 1332Set a leading spaces trap. 1333This is a groff extension and currently unsupported. 1334.It Ic \< Op Oo Cm + Ns | Ns Cm - Oc Ns Ar width 1335Set title line length. 1336Currently ignored. 1337.It Ic \&mc Ar glyph Op Ar dist 1338Print margin character in the right margin. 1339The 1340.Ar dist 1341is currently ignored; instead, 1n is used. 1342.It Ic \&mediasize Ar media 1343Set the device media size. 1344This is a Heirloom extension and currently ignored. 1345.It Ic \&minss Ar width 1346Set minimum word space. 1347This is a Heirloom extension and currently ignored. 1348.It Ic \&mk Op Ar register 1349Mark vertical position. 1350Currently ignored. 1351.It Ic \&mso Ar filename 1352Load a macro file using the search path. 1353Ignored because insecure. 1354.It Ic \&na 1355Disable adjusting without changing the adjustment mode. 1356Currently ignored. 1357.It Ic \&ne Op Ar height 1358Declare the need for the specified minimum vertical space 1359before the next trap or the bottom of the page. 1360Currently ignored. 1361.It Ic \&nf 1362Break the output line and switch to no-fill mode. 1363Subsequent input lines are kept together on the same output line 1364even when exceeding the right margin, 1365and line breaks in subsequent input cause output line breaks. 1366This request is implied by the 1367.Xr mdoc 7 1368.Ic \&Bd Fl unfilled 1369and 1370.Ic \&Bd Fl literal 1371macros and by the 1372.Xr man 7 1373.Ic \&EX 1374macro. 1375The 1376.Ic \&fi 1377request switches back to the default fill mode. 1378.It Ic \&nh 1379Turn off automatic hyphenation mode. 1380Currently ignored. 1381.It Ic \&nhychar Ar char ... 1382Define hyphenation-inhibiting characters. 1383This is a Heirloom extension and currently ignored. 1384.It Ic \&nm Op Ar start Op Ar inc Op Ar space Op Ar indent 1385Print line numbers. 1386Currently unsupported. 1387.It Ic \&nn Op Ar number 1388Temporarily turn off line numbering. 1389Currently unsupported. 1390.It Ic \&nop Ar body 1391Execute the rest of the input line as a request, macro, or text line, 1392skipping the 1393.Ic \&nop 1394request and any space characters immediately following it. 1395This 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 1397Define or change a register. 1398A register is an arbitrary string value that defines some sort of state, 1399which influences parsing and/or formatting. 1400For the syntax of 1401.Ar expression , 1402see 1403.Sx Numerical expressions 1404below. 1405If it is prefixed by a sign, the register will be 1406incremented or decremented instead of assigned to. 1407.Pp 1408The 1409.Ar stepsize 1410is used by the 1411.Ic \en+ 1412auto-increment feature. 1413It remains unchanged when omitted while changing an existing register, 1414and it defaults to 0 when defining a new register. 1415.Pp 1416The following 1417.Ar register 1418is handled specially: 1419.Bl -tag -width Ds 1420.It Cm nS 1421If set to a positive integer value, certain 1422.Xr mdoc 7 1423macros will behave in the same way as in the 1424.Em SYNOPSIS 1425section. 1426If set to 0, these macros will behave in the same way as outside the 1427.Em SYNOPSIS 1428section, even when called within the 1429.Em SYNOPSIS 1430section itself. 1431Note that starting a new 1432.Xr mdoc 7 1433section with the 1434.Ic \&Sh 1435macro will reset this register. 1436.El 1437.It Xo 1438.Ic \&nrf Ar register Oo Cm + Ns | Ns Cm - Oc Ns Ar expression 1439.Op Ar increment 1440.Xc 1441Define or change a floating-point register. 1442This is a Heirloom extension and currently unsupported. 1443.It Ic \&nroff 1444Force nroff mode. 1445This is a groff extension and currently ignored. 1446.It Ic \&ns 1447Turn on no-space mode. 1448Currently ignored. 1449.It Ic \&nx Op Ar filename 1450Abort processing of the current input file and process another one. 1451Ignored because insecure. 1452.It Ic \&open Ar stream file 1453Open a file for writing. 1454Ignored because insecure. 1455.It Ic \&opena Ar stream file 1456Open a file for appending. 1457Ignored because insecure. 1458.It Ic \&os 1459Output saved vertical space. 1460Currently ignored. 1461.It Ic \&output Ar string 1462Output directly to intermediate output. 1463Not supported. 1464.It Ic \&padj Op Cm 1 | 0 1465Globally control paragraph-at-once adjustment. 1466This is a Heirloom extension and currently ignored. 1467.It Ic \&papersize Ar media 1468Set the paper size. 1469This is a Heirloom extension and currently ignored. 1470.It Ic \&pc Op Ar char 1471Change the page number character. 1472Currently ignored. 1473.It Ic \&pev 1474Print environments. 1475This is a groff extension and currently ignored. 1476.It Ic \&pi Ar command 1477Pipe output to a shell command. 1478Ignored because insecure. 1479.It Ic \&PI 1480Low-level request used by 1481.Ic \&BP . 1482This is a Heirloom extension and currently unsupported. 1483.It Ic \&pl Op Oo Cm + Ns | Ns Cm - Oc Ns Ar height 1484Change page length. 1485Currently ignored. 1486.It Ic \&pm 1487Print names and sizes of macros, strings, and diversions 1488to standard error output. 1489Currently ignored. 1490.It Ic \&pn Oo Cm + Ns | Ns Cm - Oc Ns Ar number 1491Change the page number of the next page. 1492Currently ignored. 1493.It Ic \&pnr 1494Print all number registers on standard error output. 1495Currently ignored. 1496.It Ic \&po Op Oo Cm + Ns | Ns Cm - Oc Ns Ar offset 1497Set a horizontal page offset. 1498If no argument is specified, the page offset is reverted to its 1499previous value. 1500If a sign is specified, the new page offset is calculated relative 1501to the current one; otherwise, it is absolute. 1502The argument follows the syntax of 1503.Sx Scaling Widths 1504and the default scaling unit is 1505.Cm m . 1506.It Ic \&ps Op Oo Cm + Ns | Ns Cm - Oc Ns size 1507Change point size. 1508Currently ignored. 1509.It Ic \&psbb Ar filename 1510Retrieve the bounding box of a PostScript file. 1511Currently unsupported. 1512.It Ic \&pshape Ar indent length ... 1513Set a special shape for the current paragraph. 1514This is a Heirloom extension and currently unsupported. 1515.It Ic \&pso Ar command 1516Include output of a shell command. 1517Ignored because insecure. 1518.It Ic \&ptr 1519Print the names and positions of all traps on standard error output. 1520This is a groff extension and currently ignored. 1521.It Ic \&pvs Op Oo Cm + Ns | Ns Cm - Oc Ns Ar height 1522Change post-vertical spacing. 1523This is a groff extension and currently ignored. 1524.It Ic \&rchar Ar glyph ... 1525Remove glyph definitions. 1526Currently unsupported. 1527.It Ic \&rd Op Ar prompt Op Ar argument ... 1528Read from standard input. 1529Currently ignored. 1530.It Ic \&recursionlimit Ar maxrec maxtail 1531Set the maximum stack depth for recursive macros. 1532This is a Heirloom extension and currently ignored. 1533.It Ic \&return Op Ar twice 1534Exit the presently executed macro and return to the caller. 1535The argument is currently ignored. 1536.It Ic \&rfschar Ar font glyph ... 1537Remove font-specific fallback glyph definitions. 1538Currently unsupported. 1539.It Ic \&rhang Ar font char ... afmunits 1540Hang characters at right margin. 1541This is a Heirloom extension and currently ignored. 1542.It Ic \&rj Op Ar N 1543Justify the next 1544.Ar N 1545input lines to the right margin without filling. 1546.Ar N 1547defaults to 1. 1548An argument of 0 or less ends right adjustment. 1549.It Ic \&rm Ar macroname 1550Remove a request, macro or string. 1551.It Ic \&rn Ar oldname newname 1552Rename a request, macro, diversion, or string. 1553In 1554.Xr mandoc 1 , 1555user-defined macros, 1556.Xr mdoc 7 1557and 1558.Xr man 7 1559macros, and user-defined strings can be renamed, but renaming of 1560predefined strings and of 1561.Nm 1562requests is not supported, and diversions are not implemented at all. 1563.It Ic \&rnn Ar oldname newname 1564Rename a number register. 1565Currently unsupported. 1566.It Ic \&rr Ar register 1567Remove a register. 1568.It Ic \&rs 1569End no-space mode. 1570Currently ignored. 1571.It Ic \&rt Op Ar dist 1572Return to marked vertical position. 1573Currently ignored. 1574.It Ic \&schar Ar glyph Op Ar string 1575Define global fallback glyph. 1576This is a groff extension and currently unsupported. 1577.It Ic \&sentchar Ar char ... 1578Define sentence-ending characters. 1579This is a Heirloom extension and currently ignored. 1580.It Ic \&shc Op Ar glyph 1581Change the soft hyphen character. 1582Currently ignored. 1583.It Ic \&shift Op Ar number 1584Shift macro arguments 1585.Ar number 1586times, by default once: \e\e$i becomes what \e\e$i+number was. 1587Also decrement \en(.$ by 1588.Ar number . 1589.It Ic \&sizes Ar size ... 1590Define permissible point sizes. 1591This is a groff extension and currently ignored. 1592.It Ic \&so Ar filename 1593Include a source file. 1594The file is read and its contents processed as input in place of the 1595.Ic \&so 1596request line. 1597To avoid inadvertent inclusion of unrelated files, 1598.Xr mandoc 1 1599only accepts relative paths not containing the strings 1600.Qq ../ 1601and 1602.Qq /.. . 1603.Pp 1604This request requires 1605.Xr man 1 1606to change to the right directory before calling 1607.Xr mandoc 1 , 1608per convention to the root of the manual tree. 1609Typical usage looks like: 1610.Pp 1611.Dl \&.so man3/Xcursor.3 1612.Pp 1613As the whole concept is rather fragile, the use of 1614.Ic \&so 1615is discouraged. 1616Use 1617.Xr ln 1 1618instead. 1619.It Ic \&sp Op Ar height 1620Break the output line and emit vertical space. 1621The argument follows the syntax of 1622.Sx Scaling Widths 1623and defaults to one blank line 1624.Pq Li 1v . 1625.It Ic \&spacewidth Op Cm 1 | 0 1626Set the space width from the font metrics file. 1627This is a Heirloom extension and currently ignored. 1628.It Ic \&special Op Ar font ... 1629Define a special font. 1630This is a groff extension and currently ignored. 1631.It Ic \&spreadwarn Op Ar width 1632Warn about wide spacing between words. 1633Currently ignored. 1634.It Ic \&ss Ar wordspace Op Ar sentencespace 1635Set space character size. 1636Currently ignored. 1637.It Ic \&sty Ar position style 1638Associate style with a font position. 1639This is a groff extension and currently ignored. 1640.It Ic \&substring Ar stringname startpos Op Ar endpos 1641Replace a user-defined string with a substring. 1642Currently unsupported. 1643.It Ic \&sv Op Ar height 1644Save vertical space. 1645Currently ignored. 1646.It Ic \&sy Ar command 1647Execute shell command. 1648Ignored because insecure. 1649.It Ic \&T& 1650Re-start a table layout, retaining the options of the prior table 1651invocation. 1652See 1653.Ic \&TS . 1654.It Ic \&ta Op Ar width ... Op Cm T Ar width ... 1655Set tab stops. 1656Each 1657.Ar width 1658argument follows the syntax of 1659.Sx Scaling Widths . 1660If prefixed by a plus sign, it is relative to the previous tab stop. 1661The arguments after the 1662.Cm T 1663marker are used repeatedly as often as needed; for each reuse, 1664they are taken relative to the last previously established tab stop. 1665When 1666.Ic \&ta 1667is called without arguments, all tab stops are cleared. 1668.It Ic \&tc Op Ar glyph 1669Change tab repetition character. 1670Currently unsupported. 1671.It Ic \&TE 1672End a table context. 1673See 1674.Ic \&TS . 1675.It Ic \&ti Oo Cm + Ns | Ns Cm - Oc Ns Ar width 1676Break the output line and indent the next output line by 1677.Ar width . 1678If a sign is specified, the temporary indentation is calculated 1679relative to the current indentation; otherwise, it is absolute. 1680The argument follows the syntax of 1681.Sx Scaling Widths 1682and the default scaling unit is 1683.Cm m . 1684.It Ic \&tkf Ar font minps width1 maxps width2 1685Enable track kerning for a font. 1686Currently ignored. 1687.It Ic \&tl No \& Ap Ar left Ap Ar center Ap Ar right Ap 1688Print a title line. 1689Currently unsupported. 1690.It Ic \&tm Ar string 1691Print to standard error output. 1692Currently ignored. 1693.It Ic \&tm1 Ar string 1694Print to standard error output, allowing leading blanks. 1695This is a groff extension and currently ignored. 1696.It Ic \&tmc Ar string 1697Print to standard error output without a trailing newline. 1698This is a groff extension and currently ignored. 1699.It Ic \&tr Ar glyph glyph ... 1700Output character translation. 1701The first glyph in each pair is replaced by the second one. 1702Character escapes can be used; for example, 1703.Pp 1704.Dl tr \e(xx\e(yy 1705.Pp 1706replaces all invocations of \e(xx with \e(yy. 1707.It Ic \&track Ar font minps width1 maxps width2 1708Static letter space tracking. 1709This is a Heirloom extension and currently ignored. 1710.It Ic \&transchar Ar char ... 1711Define transparent characters for sentence-ending. 1712This is a Heirloom extension and currently ignored. 1713.It Ic \&trf Ar filename 1714Output the contents of a file, disallowing invalid characters. 1715This is a groff extension and ignored because insecure. 1716.It Ic \&trimat Ar left top width height 1717Set the TrimBox page parameter for PDF generation. 1718This is a Heirloom extension and currently ignored. 1719.It Ic \&trin Ar glyph glyph ... 1720Output character translation, ignored by 1721.Ic \&asciify . 1722Currently unsupported. 1723.It Ic \&trnt Ar glyph glyph ... 1724Output character translation, ignored by \e!. 1725Currently unsupported. 1726.It Ic \&troff 1727Force troff mode. 1728This is a groff extension and currently ignored. 1729.It Ic \&TS 1730Begin a table, which formats input in aligned rows and columns. 1731See 1732.Xr tbl 7 1733for a description of the tbl language. 1734.It Ic \&uf Ar font 1735Globally set the underline font. 1736Currently ignored. 1737.It Ic \&ul Op Ar N 1738Underline next 1739.Ar N 1740input lines. 1741Currently ignored. 1742.It Ic \&unformat Ar divname 1743Unformat spaces and tabs in a diversion. 1744Currently unsupported. 1745.It Ic \&unwatch Ar macroname 1746Disable notification for string or macro. 1747This is a Heirloom extension and currently ignored. 1748.It Ic \&unwatchn Ar register 1749Disable notification for register. 1750This is a Heirloom extension and currently ignored. 1751.It Ic \&vpt Op Cm 1 | 0 1752Enable or disable vertical position traps. 1753This is a groff extension and currently ignored. 1754.It Ic \&vs Op Oo Cm + Ns | Ns Cm - Oc Ns Ar height 1755Change vertical spacing. 1756Currently ignored. 1757.It Ic \&warn Ar flags 1758Set warning level. 1759Currently ignored. 1760.It Ic \&warnscale Ar si 1761Set the scaling indicator used in warnings. 1762This is a groff extension and currently ignored. 1763.It Ic \&watch Ar macroname 1764Notify on change of string or macro. 1765This is a Heirloom extension and currently ignored. 1766.It Ic \&watchlength Ar maxlength 1767On change, report the contents of macros and strings 1768up to the specified length. 1769This is a Heirloom extension and currently ignored. 1770.It Ic \&watchn Ar register 1771Notify on change of register. 1772This is a Heirloom extension and currently ignored. 1773.It Ic \&wh Ar dist Op Ar macroname 1774Set a page location trap. 1775Currently unsupported. 1776.It Ic \&while Ar condition body 1777Repeated execution while a 1778.Ar condition 1779is true, with syntax similar to 1780.Ic \&if . 1781Currently implemented with two restrictions: cannot nest, 1782and each loop must start and end in the same scope. 1783.It Ic \&write Oo \(dq Oc Ns Ar string 1784Write to an open file. 1785Ignored because insecure. 1786.It Ic \&writec Oo \(dq Oc Ns Ar string 1787Write to an open file without appending a newline. 1788Ignored because insecure. 1789.It Ic \&writem Ar macroname 1790Write macro or string to an open file. 1791Ignored because insecure. 1792.It Ic \&xflag Ar level 1793Set the extension level. 1794This is a Heirloom extension and currently ignored. 1795.El 1796.Ss Numerical expressions 1797The 1798.Ic \&nr , 1799.Ic \&if , 1800and 1801.Ic \&ie 1802requests accept integer numerical expressions as arguments. 1803These are always evaluated using the C 1804.Vt int 1805type; integer overflow works the same way as in the C language. 1806Numbers consist of an arbitrary number of digits 1807.Sq 0 1808to 1809.Sq 9 1810prefixed by an optional sign 1811.Sq + 1812or 1813.Sq - . 1814Each number may be followed by one optional scaling unit described below 1815.Sx Scaling Widths . 1816The following equations hold: 1817.Bd -literal -offset indent 18181i = 6v = 6P = 10m = 10n = 72p = 1000M = 240u = 240 1819254c = 100i = 24000u = 24000 18201f = 65536u = 65536 1821.Ed 1822.Pp 1823The following binary operators are implemented. 1824Unless otherwise stated, they behave as in the C language: 1825.Pp 1826.Bl -tag -width 2n -compact 1827.It Ic + 1828addition 1829.It Ic - 1830subtraction 1831.It Ic * 1832multiplication 1833.It Ic / 1834division 1835.It Ic % 1836remainder of division 1837.It Ic < 1838less than 1839.It Ic > 1840greater than 1841.It Ic == 1842equal to 1843.It Ic = 1844equal to, same effect as 1845.Ic == 1846(this differs from C) 1847.It Ic <= 1848less than or equal to 1849.It Ic >= 1850greater than or equal to 1851.It Ic <> 1852not equal to (corresponds to C 1853.Ic != ; 1854this one is of limited portability, it is supported by Heirloom roff, 1855but not by groff) 1856.It Ic & 1857logical and (corresponds to C 1858.Ic && ) 1859.It Ic \&: 1860logical or (corresponds to C 1861.Ic || ) 1862.It Ic <? 1863minimum (not available in C) 1864.It Ic >? 1865maximum (not available in C) 1866.El 1867.Pp 1868There is no concept of precedence; evaluation proceeds from left to right, 1869except when subexpressions are enclosed in parentheses. 1870Inside parentheses, whitespace is ignored. 1871.Sh ESCAPE SEQUENCE REFERENCE 1872The 1873.Xr mandoc 1 1874.Nm 1875parser recognises the following escape sequences. 1876In 1877.Xr mdoc 7 1878and 1879.Xr man 7 1880documents, using escape sequences is discouraged except for those 1881described in the 1882.Sx LANGUAGE SYNTAX 1883section above. 1884.Pp 1885A backslash followed by any character not listed here 1886simply prints that character itself. 1887.Bl -tag -width Ds 1888.It Ic \e<newline> 1889A backslash at the end of an input line can be used to continue the 1890logical input line on the next physical input line, joining the text 1891on both lines together as if it were on a single input line. 1892.It Ic \e<space> 1893The escape sequence backslash-space 1894.Pq Sq \e\ \& 1895is an unpaddable space-sized non-breaking space character; see 1896.Sx Whitespace 1897and 1898.Xr mandoc_char 7 . 1899.It Ic \e! 1900Embed text up to and including the end of the input line into the 1901current diversion or into intermediate output without interpreting 1902requests, macros, and escapes. 1903Currently unsupported. 1904.It Ic \e\(dq 1905The rest of the input line is treated as 1906.Sx Comments . 1907.It Ic \e# 1908Line continuation with comment. 1909Discard the rest of the physical input line and continue the logical 1910input line on the next physical input line, joining the text on 1911both lines together as if it were on a single input line. 1912This is a groff extension. 1913.It Ic \e$ Ns Ar arg 1914Macro argument expansion, see 1915.Ic \&de . 1916.It Ic \e% 1917Hyphenation allowed at this point of the word; ignored by 1918.Xr mandoc 1 . 1919.It Ic \e& 1920Non-printing zero-width character, 1921often used for various kinds of escaping; see 1922.Sx Whitespace , 1923.Xr mandoc_char 7 , 1924and the 1925.Dq MACRO SYNTAX 1926and 1927.Dq Delimiters 1928sections in 1929.Xr mdoc 7 . 1930.It Ic \e\(aq 1931Acute accent special character; use 1932.Ic \e(aa 1933instead. 1934.It Ic \e( Ns Ar cc 1935.Sx Special Characters 1936with two-letter names, see 1937.Xr mandoc_char 7 . 1938.It Ic \e) 1939Zero-width space transparent to end-of-sentence detection; 1940ignored by 1941.Xr mandoc 1 . 1942.It Ic \e*[ Ns Ar name Ns Ic \&] 1943Interpolate the string with the 1944.Ar name . 1945For short names, there are variants 1946.Ic \e* Ns Ar c 1947and 1948.Ic \e*( Ns Ar cc . 1949.Pp 1950One string is predefined on the 1951.Nm 1952language level: 1953.Ic \e*(.T 1954expands to the name of the output device, 1955for example ascii, utf8, ps, pdf, html, or markdown. 1956.Pp 1957Macro sets traditionally predefine additional strings which are not 1958portable and differ across implementations. 1959Those supported by 1960.Xr mandoc 1 1961are listed in 1962.Xr mandoc_char 7 . 1963.Pp 1964Strings can be defined, changed, and deleted with the 1965.Ic \&ds , 1966.Ic \&as , 1967and 1968.Ic \&rm 1969requests. 1970.It Ic \e, 1971Left italic correction (groff extension); ignored by 1972.Xr mandoc 1 . 1973.It Ic \e- 1974Special character 1975.Dq mathematical minus sign ; 1976see 1977.Xr mandoc_char 7 1978for details. 1979.It Ic \e/ 1980Right italic correction (groff extension); ignored by 1981.Xr mandoc 1 . 1982.It Ic \e: 1983Breaking the line is allowed at this point of the word 1984without inserting a hyphen. 1985.It Ic \e? 1986Embed the text up to the next 1987.Ic \e? 1988into the current diversion without interpreting requests, macros, 1989and escapes. 1990This is a groff extension and currently unsupported. 1991.It Ic \e[ Ns Ar name Ns Ic \&] 1992.Sx Special Characters 1993with names of arbitrary length, see 1994.Xr mandoc_char 7 . 1995.It Ic \e^ 1996One-twelfth em half-narrow space character, effectively zero-width in 1997.Xr mandoc 1 . 1998.It Ic \e_ 1999Underline special character; use 2000.Ic \e(ul 2001instead. 2002.It Ic \e` 2003Grave accent special character; use 2004.Ic \e(ga 2005instead. 2006.It Ic \e{ 2007Begin conditional input; see 2008.Ic \&if . 2009.It Ic \e\(ba 2010One-sixth em narrow space character, effectively zero-width in 2011.Xr mandoc 1 . 2012.It Ic \e} 2013End conditional input; see 2014.Ic \&if . 2015.It Ic \e~ 2016Paddable non-breaking space character. 2017.It Ic \e0 2018Digit width space character. 2019.It Ic \eA\(aq Ns Ar string Ns Ic \(aq 2020Anchor definition; ignored by 2021.Xr mandoc 1 . 2022.It Ic \ea 2023Leader character; ignored by 2024.Xr mandoc 1 . 2025.It Ic \eB\(aq Ns Ar string Ns Ic \(aq 2026Interpolate 2027.Sq 1 2028if 2029.Ar string 2030conforms to the syntax of 2031.Sx Numerical expressions 2032explained above or 2033.Sq 0 2034otherwise. 2035.It Ic \eb\(aq Ns Ar string Ns Ic \(aq 2036Bracket building function; ignored by 2037.Xr mandoc 1 . 2038.It Ic \eC\(aq Ns Ar name Ns Ic \(aq 2039.Sx Special Characters 2040with names of arbitrary length. 2041.It Ic \ec 2042When encountered at the end of an input text line, 2043the next input text line is considered to continue that line, 2044even if there are request or macro lines in between. 2045No whitespace is inserted. 2046.It Ic \eD\(aq Ns Ar string Ns Ic \(aq 2047Draw graphics function; ignored by 2048.Xr mandoc 1 . 2049.It Ic \ed 2050Move down by half a line; ignored by 2051.Xr mandoc 1 . 2052.It Ic \eE 2053Escape character intended to not be interpreted in copy mode. 2054In 2055.Xr mandoc 1 , 2056it currently does the same as 2057.Ic \e 2058itself. 2059.It Ic \ee 2060Backslash special character. 2061.It Ic \eF[ Ns Ar name Ns Ic \&] 2062Switch font family (groff extension); ignored by 2063.Xr mandoc 1 . 2064For short names, there are variants 2065.Ic \eF Ns Ar c 2066and 2067.Ic \eF( Ns Ar cc . 2068.It Ic \ef[ Ns Ar name Ns Ic \&] 2069Switch to the font 2070.Ar name , 2071see 2072.Sx Font Selection . 2073For short names, there are variants 2074.Ic \ef Ns Ar c 2075and 2076.Ic \ef( Ns Ar cc . 2077An empty name 2078.Ic \ef[] 2079defaults to 2080.Ic \efP . 2081.It Ic \eg[ Ns Ar name Ns Ic \&] 2082Interpolate the format of a number register; ignored by 2083.Xr mandoc 1 . 2084For short names, there are variants 2085.Ic \eg Ns Ar c 2086and 2087.Ic \eg( Ns Ar cc . 2088.It Ic \eH\(aq Ns Oo +|- Oc Ns Ar number Ns Ic \(aq 2089Set the height of the current font; ignored by 2090.Xr mandoc 1 . 2091.It Ic \eh\(aq Ns Oo Cm \&| Oc Ns Ar width Ns Ic \(aq 2092Horizontal motion. 2093If the vertical bar is given, the motion is relative to the current 2094indentation. 2095Otherwise, it is relative to the current position. 2096The default scaling unit is 2097.Cm m . 2098.It Ic \ek[ Ns Ar name Ns Ic \&] 2099Mark horizontal input place in register; ignored by 2100.Xr mandoc 1 . 2101For short names, there are variants 2102.Ic \ek Ns Ar c 2103and 2104.Ic \ek( Ns Ar cc . 2105.It Ic \eL\(aq Ns Ar number Ns Oo Ar c Oc Ns Ic \(aq 2106Vertical line drawing function; ignored by 2107.Xr mandoc 1 . 2108.It Ic \el\(aq Ns Ar width Ns Oo Ar c Oc Ns Ic \(aq 2109Draw a horizontal line of 2110.Ar width 2111using the glyph 2112.Ar c . 2113.It Ic \eM[ Ns Ar name Ns Ic \&] 2114Set fill (background) color (groff extension); ignored by 2115.Xr mandoc 1 . 2116For short names, there are variants 2117.Ic \eM Ns Ar c 2118and 2119.Ic \eM( Ns Ar cc . 2120.It Ic \em[ Ns Ar name Ns Ic \&] 2121Set glyph drawing color (groff extension); ignored by 2122.Xr mandoc 1 . 2123For short names, there are variants 2124.Ic \em Ns Ar c 2125and 2126.Ic \em( Ns Ar cc . 2127.It Ic \eN\(aq Ns Ar number Ns Ic \(aq 2128Character 2129.Ar number 2130on the current font. 2131.It Ic \en Ns Oo +|- Oc Ns Ic \&[ Ns Ar name Ns Ic \&] 2132Interpolate the number register 2133.Ar name . 2134For short names, there are variants 2135.Ic \en Ns Ar c 2136and 2137.Ic \en( Ns Ar cc . 2138If the optional sign is specified, 2139the register is first incremented or decremented by the 2140.Ar stepsize 2141that was specified in the relevant 2142.Ic \&nr 2143request, and the changed value is interpolated. 2144.It Ic \eO Ns Ar digit , Ic \eO[5 Ns arguments Ns Ic \&] 2145Suppress output. 2146This is a groff extension and currently unsupported. 2147With an argument of 2148.Ic 1 , 2 , 3 , 2149or 2150.Ic 4 , 2151it is ignored. 2152.It Ic \eo\(aq Ns Ar string Ns Ic \(aq 2153Overstrike, writing all the characters contained in the 2154.Ar string 2155to the same output position. 2156In terminal and HTML output modes, 2157only the last one of the characters is visible. 2158.It Ic \ep 2159Break 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 2161Set number register; ignored by 2162.Xr mandoc 1 . 2163.It Ic \er 2164Move up by one line; ignored by 2165.Xr mandoc 1 . 2166.It Ic \eS\(aq Ns Ar number Ns Ic \(aq 2167Slant output; ignored by 2168.Xr mandoc 1 . 2169.It Ic \es\(aq Ns Oo +|- Oc Ns Ar number Ns Ic \(aq 2170Change point size; ignored by 2171.Xr mandoc 1 . 2172Alternative forms 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 \&] , 2176and 2177.Ic \es Ns Oo +|- Oc Ns Ic \&[ Ns Ar number Ns Ic \&] 2178are also parsed and ignored. 2179.It Ic \et 2180Horizontal tab; ignored by 2181.Xr mandoc 1 . 2182.It Ic \eu 2183Move up by half a line; ignored by 2184.Xr mandoc 1 . 2185.It Ic \eV[ Ns Ar name Ns Ic \&] 2186Interpolate an environment variable; ignored by 2187.Xr mandoc 1 . 2188For short names, there are variants 2189.Ic \eV Ns Ar c 2190and 2191.Ic \eV( Ns Ar cc . 2192.It Ic \ev\(aq Ns Ar number Ns Ic \(aq 2193Vertical motion; ignored by 2194.Xr mandoc 1 . 2195.It Ic \ew\(aq Ns Ar string Ns Ic \(aq 2196Interpolate the width of the 2197.Ar string . 2198The 2199.Xr mandoc 1 2200implementation assumes that after expansion of user-defined strings, the 2201.Ar string 2202only contains normal characters, no escape sequences, and that each 2203character has a width of 24 basic units. 2204.It Ic \eX\(aq Ns Ar string Ns Ic \(aq 2205Output 2206.Ar string 2207as device control function; ignored in nroff mode and by 2208.Xr mandoc 1 . 2209.It Ic \ex\(aq Ns Ar number Ns Ic \(aq 2210Extra line space function; ignored by 2211.Xr mandoc 1 . 2212.It Ic \eY[ Ns Ar name Ns Ic \&] 2213Output a string as a device control function; ignored in nroff mode and by 2214.Xr mandoc 1 . 2215For short names, there are variants 2216.Ic \eY Ns Ar c 2217and 2218.Ic \eY( Ns Ar cc . 2219.It Ic \eZ\(aq Ns Ar string Ns Ic \(aq 2220Print 2221.Ar string 2222with zero width and height; ignored by 2223.Xr mandoc 1 . 2224.It Ic \ez 2225Output the next character without advancing the cursor position. 2226.El 2227.Sh COMPATIBILITY 2228The 2229.Xr mandoc 1 2230implementation of the 2231.Nm 2232language is incomplete. 2233Major unimplemented features include: 2234.Pp 2235.Bl -dash -compact 2236.It 2237For security reasons, 2238.Xr mandoc 1 2239never reads or writes external files except via 2240.Ic \&so 2241requests with safe relative paths. 2242.It 2243There is no automatic hyphenation, no adjustment to the right margin, 2244and very limited support for centering; the output is always set flush-left. 2245.It 2246Support for setting tabulator and leader characters is missing, 2247and support for manually changing indentation is limited. 2248.It 2249The 2250.Sq u 2251scaling unit is the default terminal unit. 2252In traditional troff systems, this unit changes depending on the 2253output media. 2254.It 2255Width measurements are implemented in a crude way 2256and often yield wrong results. 2257Support for explicit movement requests and escapes is limited. 2258.It 2259There is no concept of output pages, no support for floats, 2260graphics drawing, and picture inclusion; 2261terminal output is always continuous. 2262.It 2263Requests regarding color, font families, font sizes, 2264and glyph manipulation are ignored. 2265Font support is very limited. 2266Kerning is not implemented, and no ligatures are produced. 2267.It 2268The 2269.Qq \(aq 2270macro control character does not suppress output line breaks. 2271.It 2272Diversions and environments are not implemented, 2273and support for traps is very incomplete. 2274.It 2275Use of macros is not supported inside 2276.Xr tbl 7 2277code. 2278.El 2279.Pp 2280The special semantics of the 2281.Cm nS 2282number register is an idiosyncracy of 2283.Ox 2284manuals and not supported by other 2285.Xr mdoc 7 2286implementations. 2287.Sh SEE ALSO 2288.Xr mandoc 1 , 2289.Xr eqn 7 , 2290.Xr man 7 , 2291.Xr mandoc_char 7 , 2292.Xr mdoc 7 , 2293.Xr tbl 7 2294.Rs 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 2300.%N 54 2301.%C Murray Hill, New Jersey 2302.%D 1976 and 1992 2303.%U http://www.kohala.com/start/troff/cstr54.ps 2304.Re 2305.Rs 2306.%A Joseph F. Ossanna 2307.%A Brian W. Kernighan 2308.%A Gunnar Ritter 2309.%T Heirloom Documentation Tools Nroff/Troff User's Manual 2310.%D September 17, 2007 2311.%U http://heirloom.sourceforge.net/doctools/troff.pdf 2312.Re 2313.Sh HISTORY 2314The RUNOFF typesetting system, whose input forms the basis for 2315.Nm , 2316was written in MAD and FAP for the CTSS operating system by Jerome E. 2317Saltzer in 1964. 2318Doug McIlroy rewrote it in BCPL in 1969, renaming it 2319.Nm . 2320Dennis M. Ritchie rewrote McIlroy's 2321.Nm 2322in PDP-11 assembly for 2323.At v1 , 2324Joseph F. Ossanna improved roff and renamed it nroff 2325for 2326.At v2 , 2327then ported nroff to C as troff, which Brian W. Kernighan released with 2328.At v7 . 2329In 1989, James Clarke re-implemented troff in C++, naming it groff. 2330.Sh AUTHORS 2331.An -nosplit 2332This 2333.Nm 2334reference was written by 2335.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv 2336and 2337.An Ingo Schwarze Aq Mt schwarze@openbsd.org . 2338