ROFF(7)
๐ธ ROFF(7) โ Miscellaneous Information Manual ๐ธ
okay bestie, sit DOWN, because we're about to get into roff, the roff language reference for mandoc ๐
โจ NAME โจ
roff โ the roff language reference, but for mandoc specifically ๐</purl>
๐ฆ DESCRIPTION ๐ฆ
So roff is a general purpose text formatting language โจ and here's the tea: the classic implementations of the mdoc(7) and man(7) manual formatting languages are literally built on top of it. That means a LOT of real-world manuals have lil sprinkles of roff requests and escape sequences mixed right into their mdoc(7) or man(7) code. To format those manuals correctly, mandoc(1) supports a subset of roff requests and escapes ๐ซถ
โ ๏ธ real talk: even though this manual page lists allroffrequests and escape sequences, it only has partial info about the requests thatmandoc(1)does not support, and about language features that just don't matter for manual pages. For the full, completeroffmanuals, go check the "SEE ALSO" section, iykyk ๐
Input lines that start with the control character '.' get parsed for requests and macros. Those lines are called "request lines" or "macro lines" respectively ๐
Requests change the processing state and mess with the formatting; some macros also define the document structure and produce formatted output. The single quote ("'") is accepted as an alternative control character, and mandoc(1) treats it exactly the same as '.' โญ
Lines that don't start with control characters are called "text lines" ๐ธ They give you free-form text to be printed; how that text actually gets formatted depends on the respective processing context.
๐ง LANGUAGE SYNTAX ๐ง
roff documents may contain only graphable 7-bit ASCII characters, the space character, and โ in certain circumstances โ the tab character. The backslash character '\' marks the start of an escape sequence, used for stuff like "Comments" and "Special Characters" โจ For a complete listing of escape sequences, go look at "ESCAPE SEQUENCE REFERENCE" down below ๐
๐ฌ Comments ๐ฌ
Text following an escaped double-quote '\"' โ whether it's in a request, macro, or text line โ is ignored to the end of the line. A request line beginning with a control character and the comment escape '.\"' is also ignored. And on top of that, request lines with only a control character and optional trailing whitespace get stripped from input entirely ๐งน
Examples:
.\" This is a comment line.
.\" The next line is ignored:
.
.Sh EXAMPLES \" This is a comment, too.
example text \" And so is this.
๐ Special Characters ๐
Special characters encode special glyphs and they get rendered differently across output media. They can show up in request, macro, and text lines. Sequences begin with the escape character '\' followed by one of:
- an open-parenthesis
'('for two-character sequences - an open-bracket
'['for n-character sequences (terminated at a close-bracket']') - or just a single one character sequence
Examples:
\(em Two-letter em dash escape.
\e One-letter backslash escape.
See mandoc_char(7) for a complete list ๐
๐ Font Selection ๐
In mdoc(7) and man(7) documents, fonts are usually selected with macros. The \f escape sequence and the ft request can be used to manually change the font, but this is not recommended in mdoc(7) documents. Such manual font changes get overridden by many subsequent macros, no cap ๐ญ
The following fonts are supported:
Bโ Bold font.BIโ A font that is both bold and italic.CBโ Bold constant width font. Same asBin terminal output.CIโ Italic constant width font. Same asIin terminal output.CRโ Regular constant width font. Same asRin terminal output.CWโ An alias forCR.Iโ Italic font.Pโ Return to the previous font. If a macro caused a font change since the last\feascape sequence orftrequest, this returns to the font before the last font change in the macro rather than to the font before the last manual font change.Rโ Roman font. This is the default font.1โ An alias forR.2โ An alias forI.3โ An alias forB.4โ An alias forBI.
Examples:
\fBbold\fR
Write in bold, then switch to regular font mode.
\fIitalic\fP
Write in italic, then return to previous font mode.
\f(BIbold italic\fP
Write in bold italic, then return to previous font mode.
๐ซง Whitespace ๐ซง
Whitespace = the space character. In text lines, whitespace is preserved within a line. In request and macro lines, whitespace delimits arguments and gets discarded ๐จ
Unescaped trailing spaces get stripped from text line input unless you're in a literal context. In general, trailing whitespace on any input line is discouraged for reasons of portability. In the rare case that you genuinely need a space character at the end of an input line, you can force it with '\ \&' โจ
Literal space characters can be produced in the output using escape sequences. In macro lines, they can also be included in arguments using quotation โ see "MACRO SYNTAX" for the details ๐
Blank text lines, which may include whitespace, are only permitted within literal contexts. If the first character of a text line is a space, that line is printed with a leading newline.
๐ Scaling Widths ๐
Many requests and macros support scaled widths for their arguments. The syntax for a scaled width is:
[+-]?[0-9]*.[0-9]*[:unit:]
where a decimal must be preceded or followed by at least one digit โญ
The following scaling units are accepted:
cโ centimetreiโ inchPโ pica (1/6 inch)pโ point (1/72 inch)fโ scale'u'by 65536vโ default vertical spanmโ width of rendered'm'(em) characternโ width of rendered'n'(en) characteruโ default horizontal span for the terminalMโ mini-em (1/100 em)
โ ๏ธ Using anything other than'm','n', or'v'is necessarily non-portable across output media. See "COMPATIBILITY".
If a scaling unit is not provided, the numerical value is interpreted under the default rules of 'v' for vertical spaces and 'u' for horizontal ones ๐
Examples:
.Bl -tag -width 2i
two-inch tagged list indentation in mdoc(7)
.HP 2i
two-inch tagged list indentation in man(7)
.sp 2v
two vertical spaces
๐ธ Sentence Spacing ๐ธ
Each sentence should terminate at the end of an input line ๐ซถ By doing this, a formatter will be able to apply the proper amount of spacing after the end of sentence โ that's an (unescaped) period, exclamation mark, or question mark followed by zero or more non-sentence closing delimiters (')', ']', "'", '"').
The proper spacing is also intelligently preserved if a sentence ends at the boundary of a macro line โจ
If an input line happens to end with a period, exclamation or question mark that isn't the end of a sentence, append a zero-width space ('\&') ๐
Examples:
Do not end sentences mid-line like this. Instead,
end a sentence like this.
A macro would end like this:
.Xr mandoc 1 .
An abbreviation at the end of an input line needs escaping, e.g.\&
like this.
๐ REQUEST SYNTAX ๐
A request or macro line consists of:
- the control character
'.'or"'"at the beginning of the line, - optionally an arbitrary amount of whitespace,
- the name of the request or the macro, which is one word of arbitrary length, terminated by whitespace,
- and zero or more arguments delimited by whitespace.
So like, the following request lines are ALL equivalent:
.ig end
.ig end
. ig end
๐ MACRO SYNTAX ๐
Macros are provided by the mdoc(7) and man(7) languages and can be defined by the de request. When called, they follow the same syntax as requests, EXCEPT that macro arguments may optionally be quoted by enclosing them in double quote characters ('"') โจ Quoted text โ even if it contains whitespace or would cause a macro invocation when unquoted โ is always considered literal text. Inside quoted text, pairs of double quote characters ('""') resolve to single double quote characters ๐
To be recognised as the beginning of a quoted argument, the opening quote character must be preceded by a space character. A quoted argument extends to the next double quote character that is not part of a pair, or to the end of the input line, whichever comes earlier. Leaving out the terminating double quote character at the end of the line is discouraged. For clarity, if more arguments follow on the same input line, it's recommended to follow the terminating double quote character by a space character; in case the next character after the terminating double quote character is anything else, it is regarded as the beginning of the next, unquoted argument ๐
Both in quoted and unquoted arguments, pairs of backslashes ('\\') resolve to single backslashes. In unquoted arguments, space characters can alternatively be included by preceding them with a backslash ('\ '), but quoting is usually better for clarity ๐ซง
Examples:
.Fn strlen "const char *s"
Group arguments "const char *s" into one function
argument. If unspecified, "const", "char", and "*s" would
be considered separate arguments.
.Op "Fl a"
Consider "Fl a" as literal text instead of a flag macro.
๐ REQUEST REFERENCE ๐
The mandoc(1) roff parser recognises the following requests. For requests marked as "ignored" or "unsupported", any arguments are ignored, and the number of arguments is not checked ๐
ab [message]โ Abort processing. Currently unsupported.ad [b | c | l | n | r]โ Set line adjustment mode for subsequent text. Currently ignored.af registername formatโ Assign an output format to a number register. Currently ignored.aln newname oldnameโ Create an alias for a number register. Currently unsupported.als newname oldnameโ Create an alias for a request, string, macro, or diversion.am macroname [endmacro]โ Append to a macro definition. The syntax of this request is the same as that ofde.am1 macroname [endmacro]โ Append to a macro definition, switching roff compatibility mode off during macro execution (groff extension). The syntax of this request is the same as that ofde1. Sincemandoc(1)does not implement roff compatibility mode at all, it handles this request as an alias foram.amimacrostring [endstring] โ appends to a macro definition, but you name the macro indirectly (groff extension, bestie). Same syntax rules asdei. โจami1macrostring [endstring] โ same deal, but it flips roff compatibility mode off while the macro runs, and names the macro indirectly (groff extension). Syntax is identical todei1. Sincemandoc(1)doesn't do roff compatibility mode at all, it just treats this as an alias forami. ๐asstringname [string] โ append to a user-defined string. Syntax = same asds. And lowkey important: if a string with that name doesn't exist yet, it gets set to the empty string first, then the appending happens. ๐as1stringname [string] โ append to a user-defined string while switching roff compatibility mode off during macro execution (groff extension). Syntax = same asds1. Again, sincemandoc(1)never implements roff compatibility mode, it handles this as an alias foras. ๐ฆasciifydivname โ fully unformat a diversion. Currently unsupported. ๐backtraceโ print a backtrace of the input stack. It's a groff extension and currently ignored.bdfont [curfont] [offset] โ artificially embolden by printing repeatedly with tiny shifts. Currently ignored.bleedatleft top width height โ set theBleedBoxpage parameter for PDF generation. Heirloom extension, currently ignored.blmmacroname โ set a blank line trap. Currently unsupported.boxdivname โ begin a diversion without including a partially filled line. Currently unsupported.boxadivname โ add to a diversion without including a partially filled line. Currently unsupported.bp[+|-]pagenumber โ begin a new page. Currently ignored.BPsource height width position offset flags label โ define a frame and drop a picture into it. Heirloom extension, currently unsupported.brโ break the output line. โ๏ธbreakโ break out of the innermostwhileloop. ๐ชbreakcharchar ... โ optional line break characters. Heirloom extension, currently ignored.brnlN โ break the output line after the next N input lines. Heirloom extension, currently ignored.brpโ break and spread the output line. Currently implemented as an alias forbr.brpnlN โ break and spread the output line after the next N input lines. Heirloom extension, currently ignored.c2[char] โ change the no-break control character. Currently unsupported.cc[char] โ change the control character. If you don't pass char, the control character resets to.. Any trailing characters? Ignored, bestie. ๐ce[N] โ center the next N input lines without filling them. N defaults to1. An argument of0or less ends centering. Currently, high-level macros abort centering.cffilename โ output the contents of a file. Ignored because insecure. ๐จcflagsflags char ... โ set character flags. groff extension, currently ignored.chmacroname [dist] โ change a trap location. Currently ignored.charglyph [string] โ define or redefine the ASCII character or character escape sequence glyph so it renders as string, which can be empty. Only partially supported inmandoc(1); may interact incorrectly withtr. โ ๏ธchopstringname โ remove the last character from a macro, string, or diversion. Currently unsupported.classclassname char ... โ define a character class. groff extension, currently ignored.closestreamname โ close an open file. Ignored because insecure. ๐จCLcolor text โ print text in color. Heirloom extension, currently unsupported.color[1|0] โ activate or deactivate colors. groff extension, currently ignored.compositefrom to โ define a name component for composite glyph names. groff extension, currently unsupported.continueโ immediately start the next iteration of awhileloop. Currently unsupported.cp[1|0] โ switch roff compatibility mode on or off. Currently ignored.cropatleft top width height โ set theCropBoxpage parameter for PDF generation. Heirloom extension, currently ignored.csfont [width [emsize]] โ constant character spacing mode. Currently ignored.cu[N] โ underline the next N input lines, whitespace included. Currently ignored.dadivname โ append to a diversion. Currently unsupported.dchmacroname [dist] โ change a trap location in the current diversion. Heirloom extension, currently unsupported.demacroname [endmacro] โ define a roff macro. Okay so this one's the big one, and its syntax can be either
.de macroname
definition
..
or
.de macroname endmacro
definition
.endmacro
Both forms define or redefine the macro macroname to represent the definition, which may consist of one or more input lines โ newline characters terminating each line included, bestie โ optionally containing calls to roff requests, roff macros, or high-level macros like man(7) or mdoc(7) macros, whichever applies to the document in question. ๐ซถ
Specifying a custom endmacro works the same way as for ig; namely, the call to .endmacro first ends the definition, and after that it's also evaluated as a roff request or roff macro โ but not as a high-level macro.
The macro can be invoked later using the syntax
.macroname [argument [argument ...]]
For how arguments get parsed, go read โMACRO SYNTAXโ above. ๐
The line invoking the macro gets replaced in the input stream by the definition, with every occurrence of \\$N โ where N is a digit โ swapped for the *N*th argument. For example,
.de ZN
\fI\^\\$1\^\fP\\$2
..
.ZN XtFree .
produces
\fI\^XtFree\^\fP.
in the input stream, and thus in the output: XtFree. Each occurrence of \\$* gets replaced with all the arguments, joined together with single space characters. The variant \\$@ is similar, except each argument is individually quoted. ๐ธ
Since macros and user-defined strings share a common string table, defining a macro macroname clobbers the user-defined string macroname, and the definition can also be printed using the \* string interpolation syntax described below ds โ but this is rarely useful, because every macro definition contains at least one explicit newline character. ๐
In order to prevent endless recursion, both groff and mandoc(1) limit the stack depth for expanding macros and strings to a large, but finite number, and mandoc(1) also limits the length of the expanded input line. Do not rely on the exact values of these limits.
de1macroname [endmacro] โ define a roff macro that will be executed with roff compatibility mode switched off during macro execution. groff extension. Sincemandoc(1)doesn't implement roff compatibility mode at all, it handles this request as an alias forde. โจdefcolornewname scheme component ... โ define a color name. groff extension, currently ignored.deimacrostring [endstring] โ define a roff macro while specifying the macro name indirectly (groff extension). Same syntax asde. The effect is the same as:
.de \*[macrostring] [\*[endstring]]
dei1macrostring [endstring] โ define a roff macro that will be executed with roff compatibility mode switched off during macro execution, naming the macro indirectly (groff extension). Sincemandoc(1)doesn't implement roff compatibility mode at all, it handles this request as an alias fordei. ๐devicestring ...devicemstringname
These two requests only make sense with the groff-specific intermediate output format, and are unsupported. ๐
didivname โ begin a diversion. Currently unsupported.docommand [argument ...] โ execute a roff request or macro line with compatibility mode disabled. Currently unsupported.dsstringname [["]string] โ define a user-defined string. The stringname and string arguments are space-separated. If the string begins with a double-quote character, that character will not be part of the string. All the remaining characters on the input line form the string, including whitespace and double-quote characters, even trailing ones. ๐
The string can be interpolated into subsequent text by using \*[stringname] for a stringname of arbitrary length, or \*(NN or \*N if the length of stringname is two or one characters, respectively. Interpolation can be prevented by escaping the leading backslash; that is, an asterisk preceded by an even number of backslashes does not trigger string interpolation. ๐ง
Since user-defined strings and macros share a common string table, defining a string stringname clobbers the macro stringname, and the stringname used for defining a string can also be invoked as a macro โ in which case the following input line will be appended to the string, forming a new input line passed to the roff parser. For example,
.ds badidea .S
.badidea
H SYNOPSIS
invokes the SH macro when used in a man(7) document. Such abuse is of course strongly discouraged. ๐ญ
ds1stringname [["]string]โ Defines a user-defined string, but this one gets expanded with roff compatibility mode switched off during string expansion. It's a groff extension. And sincemandoc(1)doesn't do roff compatibility mode at all, bestie, it just treats this as an alias fords. ๐dwhdist macronameโ Sets a location trap inside the current diversion. This is a Heirloom extension and rn it's currently unsupported. ๐ญdt[dist macroname]โ Sets a trap within a diversion. Also currently unsupported. ๐ec[char]โ Turns the escape mechanism on and swaps out the escape character. The char argument defaults to the backslash (\). โจecrโ Restores the escape character. Currently unsupported. ๐ecsโ Saves the escape character. Currently unsupported. ๐elbodyโ The โelseโ half of an if/else conditional, no cap. It pops a result off the stack of conditional evaluations thatiepushed, and uses that as its conditional. If there are no stack entries at all (like, say, because nobody callediefirst) then it just assumes false. The syntax here is basicallyifbut with the conditional part missing. ๐emmacronameโ Sets a trap at the end of input. Currently unsupported. ๐ญENโ Ends an equation block. PeepEQ. ๐งฎeoโ Disables the escape mechanism completely. Like, gone gone. ๐ซถEPโ Ends a picture that was started byBP. This is a Heirloom extension and currently unsupported. ๐ผ๏ธEQโ Begins an equation block. Go readeqn(7)for the whole rundown on the equation language, bestie. โจerrprintmessageโ Prints a string that looks like an error message. This is a Heirloom extension and currently ignored. ๐ev[envname]โ Switches to another environment. Currently unsupported. ๐evc[envname]โ Copies an environment into the current environment. Currently unsupported. ๐exโ Aborts processing and exits. Currently unsupported. ๐ชfallbackcurfont font ...โ Picks the fallback sequence for a font. This is a Heirloom extension and currently ignored. ๐fam[familyname]โ Changes the font family. This is a groff extension and currently ignored. ๐คfc[delimchar [padchar]]โ Defines a delimiting character and a padding character for fields. Currently unsupported. ๐ญfcharglyphname [string]โ Defines a fallback glyph. Currently unsupported. ๐fcolorcolornameโ Sets the fill color for\Dobjects. This is a groff extension and currently ignored. ๐จfdeferligfont string ...โ Defers ligature building. This is a Heirloom extension and currently ignored. โจfeature+|-nameโ Enables or disables an OpenType feature. This is a Heirloom extension and currently ignored. ๐ฅfiโ Breaks the output line and switches over to fill mode, which is active by default but can be ended with thenfrequest. In fill mode, input from the following input lines keeps getting added to the same output line until the next word no longer fits โ and at that point the output line gets broken. This request is implied by themdoc(7)Shmacro and by theman(7)SH,SS, andEEmacros. ๐fkernfont minkernโ Controls whether kerning tables get used for a font. This is a Heirloom extension and currently ignored. ๐คflโ Flushes output. Currently ignored. ๐ฟfligfont string char ...โ Defines ligatures. This is a Heirloom extension and currently ignored. ๐fpposition font [filename]โ Assigns a font position. Currently ignored. ๐fpsmapname ...โ Mounts a font that has a special character map. This is a Heirloom extension and currently ignored. ๐บ๏ธfscharfont glyphname [string]โ Defines a font-specific fallback glyph. This is a groff extension and currently unsupported. ๐fspacewidthfont [afmunits]โ Sets a font-specific width for the space character. This is a Heirloom extension and currently ignored. โฃfspecialcurfont [font ...]โ Conditionally defines a special font. This is a groff extension and currently ignored. โจft[font]โ Changes the font; check out โFont Selectionโ. The font argument defaults toP. ๐ftrnewname [oldname]โ Translates a font name. This is a groff extension and currently ignored. ๐คfzoomfont [permille]โ Zooms the font size. Currently ignored. ๐gcolor[colorname]โ Sets the glyph color. This is a groff extension and currently ignored. ๐hc[char]โ Sets the hyphenation character. Currently ignored. โ๏ธhcodechar code ...โ Sets hyphenation codes for characters. Currently ignored. ๐ขhidecharfont char ...โ Hides characters in a font. This is a Heirloom extension and currently ignored. ๐hlalanguageโ Sets the hyphenation language. This is a groff extension and currently ignored. ๐hlm[number]โ Sets the maximum number of consecutive hyphenated lines. Currently ignored. ๐hpffilenameโ Loads a hyphenation pattern file. This is a groff extension and currently ignored. ๐hpfafilenameโ Loads a hyphenation pattern file, appending it to the current patterns. This is a groff extension and currently ignored. ๐hpfcodecode code ...โ Defines mapping values for character codes in hyphenation patterns. This is a groff extension and currently ignored. ๐ขhwword ...โ Specifies hyphenation points in words. Currently ignored. โ๏ธhy[mode]โ Sets the automatic hyphenation mode. Currently ignored. โ๏ธhylanglanguageโ Sets the hyphenation language. This is a Heirloom extension and currently ignored. ๐hylenncharโ Sets the minimum word length for hyphenation. This is a Heirloom extension and currently ignored. ๐hym[length]โ Sets the hyphenation margin. This is a groff extension and currently ignored. ๐hypppenalty ...โ Defines hyphenation penalties. This is a Heirloom extension and currently ignored. โ ๏ธhys[length]โ Sets the hyphenation space. This is a groff extension and currently ignored. ๐iecondition bodyโ The โifโ half of an if/else conditional. The result of the conditional gets pushed onto a stack that laterelinvocations use โ and those can be separated by literally any amount of input in between (or not exist at all, no pressure). Its syntax is equivalent toif. ๐ifcondition bodyโ Begins a conditional. This request can also be written like this:
.if condition \{body
body ...\}
.if condition \{\
body ...
.\}
The condition is a boolean expression. Right now, mandoc(1) supports this subset of roff conditionals:
- If
!is prefixed to condition, it gets logically inverted. ๐ - If the first character of condition is
n(nroff mode) oro(odd page), it evaluates to true, and the body starts with the next character. - If the first character of condition is
e(even page),t(troff mode), orv(vroff mode), it evaluates to false, and the body starts with the next character. - If the first character of condition is
c(character available), it evaluates to true if the following character is an ASCII character or a valid character escape sequence, and false otherwise. The body starts with the character following that next character. - If the first character of condition is
d, it evaluates to true if the rest of condition is the name of an existing user defined macro or string; otherwise it's false. - If the first character of condition is
r, it evaluates to true if the rest of condition is the name of an existing number register; otherwise it's false. - If the condition starts with a parenthesis or with an optionally signed integer number, it gets evaluated according to the rules of โNumerical expressionsโ explained below. It evaluates to true if the result is positive, and false if the result is zero or negative.
- Otherwise, the first character of condition is treated as a delimiter, and it evaluates to true if the string from its first to its second occurrence is equal to the string from its second to its third occurrence.
- If condition can't be parsed, it evaluates to false. ๐
If a conditional is false, its children are not processed โ but they are syntactically interpreted, so the integrity of the input document stays intact. So like:
.if t .ig
will discard the .ig, which may lead to interesting results, but
.if t .if t \{\
will keep syntactically interpreting all the way to the block close of the final conditional. Sub-conditionals, in this case, obviously inherit the truth value of the parent. ๐
If the body section is begun by an escaped brace \{, scope continues until the end of the input line containing the matching closing-brace escape sequence \}. If the body is not enclosed in braces, scope continues until the end of the line. If the condition is followed by a body on the same line โ whether after a brace or not โ then requests and macros must begin with a control character. In that case it's generally more intuitive to write
.if condition \{\
.request
.\}
than having the request or macro follow as
.if condition \{.request
The scope of a conditional is always parsed, but only executed if the conditional evaluates to true. โจ
Heads up bestie: the\}gets converted into a zero-width escape sequence if it's not passed as a standalone macro.\}. For example,
.Fl a \} b
will result in \} being considered an argument of the Fl macro. ๐ญ
ig[endmacro]โ Ignores input. Its syntax can be either
.ig
ignored text
..
or
okay so bestie, first case? everything gets ignored until we bump into a .. request sitting all alone on its own line ๐
. Second case? input stays ignored until that specific .endmacro you named rolls up.
.ig endmacro
ignored text
.endmacro
And omg please listen โ do not use the escape character \ anywhere in the definition of endmacro. It would cause very strange behaviour and that's not the vibe we're going for ๐ญ.
When the endmacro is a roff request or a roff macro, like in
.ig if
then the subsequent invocation of if will first terminate the ignored text, and then be invoked as usual โจ. Otherwise, it only terminates the ignored text, and arguments following it โ or the .. request โ get discarded. gone. bye ๐ซถ.
in [[+|-]width]โ change the indentation. Seeman(7). It gets ignored inmdoc(7)๐.index register stringname substringโ find a substring inside a string. This is a Heirloom extension and it's currently unsupported, so no slay today ๐.it expression macroโ set an input line trap ๐ฅ. The named macro gets invoked after processing the number of input text lines specified by the numerical expression. And while it's evaluating that expression, the unit suffixes described below under โScaling Widthsโ are ignored.itc expression macroโ set an input line trap, but it does not count lines ending with\c. Currently unsupported.IX class keystringโ to support the generation of a table of contents,pod2man(1)emits this user-defined macro, usually without ever defining it. To avoid reporting large numbers of spurious errors,mandoc(1)just ignores it ๐.kern [1 | 0]โ switch kerning on or off. Currently ignored.kernafter font char ... afmunits ...โ increase kerning after some characters. Heirloom extension, currently ignored.kernbefore font char ... afmunits ...โ increase kerning before some characters. Heirloom extension, currently ignored.kernpair font char ... font char ... afmunitsโ add a kerning pair to the kerning table. Heirloom extension, currently ignored.lc [glyph]โ define a leader repetition character. Currently unsupported.lc_ctype localenameโ set theLC_CTYPElocale. Heirloom extension, currently unsupported.lds macroname stringโ define a local string. Heirloom extension, currently unsupported.length register stringโ count the number of input characters in a string. Currently unsupported.letadj lspmin lshmin letss lspmax lshmaxโ dynamic letter spacing and reshaping โจ. Heirloom extension, currently ignored.lf lineno [filename]โ change the line number for error messages. Ignored because insecure ๐.lg [1 | 0]โ switch the ligature mechanism on or off. Currently ignored.lhang font char ... afmunitsโ hang characters at the left margin. Heirloom extension, currently ignored.linetabs [1 | 0]โ enable or disable line-tabs mode. This is a groff extension and currently unsupported.ll [[+|-]width]โ change the output line length ๐. If the width argument is omitted, the line length is reset to its previous value. The default setting for terminal output is78n. If a sign is given, the line length is added to or subtracted from; otherwise, it is set to the provided value.
Using this request in new manuals is discouraged for several reasons โ among others, because it overrides themandoc(1)-O widthcommand line option. So likeโฆ don't, bestie ๐ .
lnr register [+|-]value [increment]โ set local number register. Heirloom extension, currently unsupported.lnrf register [+|-]value [increment]โ set local floating-point register. Heirloom extension, currently unsupported.lpfx stringโ set a line prefix. Heirloom extension, currently unsupported.ls [factor]โ set line spacing. It takes one integer argument specifying the vertical distance of subsequent output text lines, measured invunits. Currently ignored.lsm macronameโ set a leading spaces trap. This is a groff extension and currently unsupported.lt [[+|-]width]โ set title line length. Currently ignored.mc glyph [dist]โ print margin character in the right margin. The dist is currently ignored; instead,1nis used.mediasize mediaโ set the device media size. Heirloom extension, currently ignored.minss widthโ set minimum word space. Heirloom extension, currently ignored.mk [register]โ mark vertical position. Currently ignored.mso filenameโ load a macro file using the search path. Ignored because insecure ๐.naโ disable adjusting without changing the adjustment mode. Currently ignored.ne [height]โ declare the need for the specified minimum vertical space before the next trap or the bottom of the page. Currently ignored.nfโ break the output line and switch to no-fill mode ๐ฅ. Subsequent input lines are kept together on the same output line even when exceeding the right margin, and line breaks in subsequent input cause output line breaks. This request is implied by themdoc(7)Bd -unfilledandBd -literalmacros and by theman(7)EXmacro. Thefirequest switches back to the default fill mode ๐.nhโ turn off automatic hyphenation mode. Currently ignored.nhychar char ...โ define hyphenation-inhibiting characters. Heirloom extension, currently ignored.nm [start [inc [space [indent]]]]โ print line numbers. Currently unsupported.nn [number]โ temporarily turn off line numbering. Currently unsupported.nop bodyโ execute the rest of the input line as a request, macro, or text line, skipping thenoprequest and any space characters immediately following it. This is mostly used to indent text lines inside macro definitions โจ.nr register [+|-]expression [stepsize]โ define or change a register ๐. A register is an arbitrary string value that defines some sort of state, which influences parsing and/or formatting. For the syntax of expression, see โNumerical expressionsโ below. If it is prefixed by a sign, the register will be incremented or decremented instead of assigned to.
The stepsize is used by the \n+ auto-increment feature. It remains unchanged when omitted while changing an existing register, and it defaults to 0 when defining a new register.
The following register is handled specially:
nSโ if set to a positive integer value, certainmdoc(7)macros will behave in the same way as in theSYNOPSISsection. If set to0, these macros will behave in the same way as outside theSYNOPSISsection, even when called within theSYNOPSISsection itself. Note that starting a newmdoc(7)section with theShmacro will reset this register ๐.
nrf register [+|-]expression [increment]โ define or change a floating-point register. Heirloom extension, currently unsupported.nroffโ force nroff mode. This is a groff extension and currently ignored.nsโ turn on no-space mode. Currently ignored.nx [filename]โ abort processing of the current input file and process another one. Ignored because insecure ๐.open stream fileโ open a file for writing. Ignored because insecure ๐.opena stream fileโ open a file for appending. Ignored because insecure ๐.osโ output saved vertical space. Currently ignored.output stringโ output directly to intermediate output. Not supported.padj [1 | 0]โ globally control paragraph-at-once adjustment. Heirloom extension, currently ignored.papersize mediaโ set the paper size. Heirloom extension, currently ignored.pc [char]โ change the page number character. Currently ignored.pevโ print environments. This is a groff extension and currently ignored.pi commandโ pipe output to a shell command. Ignored because insecure ๐.PIโ low-level request used byBP. This is a Heirloom extension and currently unsupported.pl [[+|-]height]โ change page length. Currently ignored.pmโ print names and sizes of macros, strings, and diversions to standard error output. Currently ignored.pn [+|-]numberโ change the page number of the next page. Currently ignored.pnrโ print all number registers on standard error output. Currently ignored.po [[+|-]offset]โ set a horizontal page offset. If no argument is specified, the page offset is reverted to its previous value. If a sign is specified, the new page offset is calculated relative to the current one; otherwise, it is absolute. The argument follows the syntax of โScaling Widthsโ and the default scaling unit ism.ps [[+|-]size]โ change point size. Currently ignored.psbb filenameโ retrieve the bounding box of a PostScript file. Currently unsupported.pshape indent length ...โ set a special shape for the current paragraph. Heirloom extension, currently unsupported.pso commandโ include output of a shell command. Ignored because insecure ๐.ptrโ print the names and positions of all traps on standard error output. This is a groff extension and currently ignored.pvs [[+|-]height]โ change post-vertical spacing. This is a groff extension and currently ignored.rchar glyph ...โ remove glyph definitions. Currently unsupported.rd [prompt [argument ...]]โ read from standard input. Currently ignored.recursionlimit maxrec maxtailโ set the maximum stack depth for recursive macros. This is a Heirloom extension and currently ignored.
and we're still going, bestie โ more requests coming right up ๐
return[twice] โ Bail out of the macro you're currently vibing in and hand control back to whoever called it ๐ซถ. That twice argument? Yeah it's just sitting there. Currently ignored, bestie.rfscharfont glyph ... โ Deletes the font-specific fallback glyph definitions. Currently unsupported ๐ญ.rhangfont char ... afmunits โ Hangs characters off the right margin. This one's a Heirloom extension and it's currently ignored ๐.rj[N] โ Right-justifies the next N input lines to the right margin, no filling involved. N defaults to1. And if you pass0or anything less, right adjustment just... ends. Bye ๐.rmmacroname โ Yeets a request, macro or string out of existence โจ.rnoldname newname โ Renames a request, macro, diversion, or string. Okay so real talk: inmandoc(1), user-defined macros,mdoc(7)andman(7)macros, and user-defined strings can be renamed. But renaming predefined strings and roff requests is not supported, and diversions aren't implemented at all ๐.rnnoldname newname โ Renames a number register. Currently unsupported.rrregister โ Removes a register. Gone, periodt ๐ .rsโ Ends no-space mode. Currently ignored.rt[dist] โ Returns to the marked vertical position. Currently ignored.scharglyph [string] โ Defines a global fallback glyph. This is a groff extension and currently unsupported.sentcharchar ... โ Defines sentence-ending characters. Heirloom extension, currently ignored ๐ฅฒ.shc[glyph] โ Swaps out the soft hyphen character. Currently ignored.shift[number] โ Shifts macro arguments number times (default is once):\\$ibecomes what\\$i+numberwas. Also decrements\n(.$by number. Sliding everything over, iconic behaviour honestly โจ.sizessize ... โ Defines the permissible point sizes. groff extension, currently ignored.sofilename โ Includes a source file ๐ซถ. The file gets read and its contents are processed as input right in place of thesorequest line. Now, to avoid accidentally slurping up unrelated files,mandoc(1)only accepts relative paths that don't contain the strings"../"and"/..".
This request needs man(1) to change to the right directory before calling mandoc(1) โ per convention, the root of the manual tree. Typical usage looks like this:
.so man3/Xcursor.3
But ngl, the whole concept is rather fragile, so usingsois discouraged. Useln(1)instead, bestie ๐.
sp[height] โ Breaks the output line and emits vertical space. The argument follows the syntax of "Scaling Widths" and defaults to one blank line (1v).spacewidth[1 | 0] โ Sets the space width from the font metrics file. Heirloom extension, currently ignored.special[font ...] โ Defines a special font. groff extension, currently ignored.spreadwarn[width] โ Warns you about wide spacing between words. Currently ignored.sswordspace [sentencespace] โ Sets the space character size. Currently ignored.styposition style โ Associates a style with a font position. groff extension, currently ignored.substringstringname startpos [endpos] โ Replaces a user-defined string with a substring. Currently unsupported ๐ญ.sv[height] โ Saves vertical space. Currently ignored.sycommand โ Executes a shell command. Ignored because insecure ๐จ.T&โ Re-starts a table layout, keeping all the options from the prior table invocation. SeeTS.ta[width ... [T width ...]] โ Sets tab stops โจ. Every width argument follows the syntax of "Scaling Widths". If it's prefixed with a plus sign, it's relative to the previous tab stop. The arguments after theTmarker get used over and over, as often as needed; and for each reuse they're taken relative to the last previously established tab stop. Calltawith no arguments at all and every tab stop gets cleared ๐ .tc[glyph] โ Changes the tab repetition character. Currently unsupported.TEโ Ends a table context. SeeTS.ti[+|-]width โ Breaks the output line and indents the next output line by width. If you specify a sign, the temporary indentation is calculated relative to the current indentation; otherwise it's absolute. The argument follows the syntax of "Scaling Widths", and the default scaling unit ism.tkffont minps width1 maxps width2 โ Enables track kerning for a font. Currently ignored.tl'left'center'right' โ Prints a title line. Currently unsupported.tmstring โ Prints to standard error output. Currently ignored.tm1string โ Prints to standard error output, but allows leading blanks. groff extension, currently ignored.tmcstring โ Prints to standard error output without a trailing newline. groff extension, currently ignored.trglyph glyph ... โ Output character translation ๐. The first glyph in each pair gets replaced by the second one. Character escapes work here too โ for example:
tr \(xx\(yy
replaces all invocations of \(xx with \(yy.
trackfont minps width1 maxps width2 โ Static letter space tracking. Heirloom extension, currently ignored.transcharchar ... โ Defines transparent characters for sentence-ending. Heirloom extension, currently ignored.trffilename โ Outputs the contents of a file, disallowing invalid characters. groff extension, ignored because insecure ๐จ.trimatleft top width height โ Sets theTrimBoxpage parameter for PDF generation. Heirloom extension, currently ignored.tringlyph glyph ... โ Output character translation, ignored by asciify. Currently unsupported.trntglyph glyph ... โ Output character translation, ignored by\!. Currently unsupported.troffโ Forces troff mode. groff extension, currently ignored.TSโ Begins a table, which formats input in aligned rows and columns ๐. Seetbl(7)for a description of the tbl language.uffont โ Globally sets the underline font. Currently ignored.ul[N] โ Underlines the next N input lines. Currently ignored.unformatdivname โ Unformats spaces and tabs in a diversion. Currently unsupported.unwatchmacroname โ Disables notification for a string or macro. Heirloom extension, currently ignored.unwatchnregister โ Disables notification for a register. Heirloom extension, currently ignored.vpt[1 | 0] โ Enables or disables vertical position traps. groff extension, currently ignored.vs[[+|-]height] โ Changes vertical spacing. Currently ignored.warnflags โ Sets the warning level. Currently ignored.warnscalesi โ Sets the scaling indicator used in warnings. groff extension, currently ignored.watchmacroname โ Notifies you when a string or macro changes. Heirloom extension, currently ignored.watchlengthmaxlength โ On change, reports the contents of macros and strings up to the specified length. Heirloom extension, currently ignored.watchnregister โ Notifies you when a register changes. Heirloom extension, currently ignored.whdist [macroname] โ Sets a page location trap. Currently unsupported.whilecondition body โ Repeatedly executes while a condition is true, with syntax similar toif. Currently implemented with two restrictions: it cannot nest, and each loop must start and end in the same scope ๐.write["]string โ Writes to an open file. Ignored because insecure ๐จ.writec["]string โ Writes to an open file without appending a newline. Ignored because insecure ๐จ.writemmacroname โ Writes a macro or string to an open file. Ignored because insecure ๐จ.xflaglevel โ Sets the extension level. Heirloom extension, currently ignored.
๐ข Numerical expressions ๐ข
The nr, if, and ie requests accept integer numerical expressions as arguments. These are always evaluated using the C int type; integer overflow works the same way as in the C language. Numbers are made of an arbitrary number of digits 0 to 9, prefixed by an optional sign + or -. Each number may be followed by one optional scaling unit, described down below in "Scaling Widths". These equations hold, no cap:
1i = 6v = 6P = 10m = 10n = 72p = 1000M = 240u = 240
254c = 100i = 24000u = 24000
1f = 65536u = 65536
The following binary operators are implemented. Unless stated otherwise, they behave just like in the C language:
+โ addition-โ subtraction*โ multiplication/โ division%โ remainder of division<โ less than>โ greater than==โ equal to=โ equal to, same effect as==(this differs from C ๐)<=โ less than or equal to>=โ greater than or equal to<>โ not equal to (corresponds to C!=; this one is of limited portability โ it's supported by Heirloom roff, but not by groff)&โ logical and (corresponds to C&&):โ logical or (corresponds to C||)<?โ minimum (not available in C)>?โ maximum (not available in C)
And here's the tea: there is no concept of precedence โ. Evaluation just proceeds from left to right, except when subexpressions are wrapped in parentheses. Inside parentheses, whitespace is ignored ๐ซถ.
The mandoc(1) roff parser is out here recognising the following escape sequences, bestie. But real talk: in mdoc(7) and man(7) documents, using escape sequences is discouraged โ except for the ones described up in the โLANGUAGE SYNTAXโ section above. So don't get cute unless you know what you're doing. ๐
And here's the chill part: a backslash followed by any character that's not listed here just prints that character itself. No drama, no error. ๐ซถ
\<newline>โ a backslash chillin' at the very end of an input line continues the logical input line onto the next physical input line. Basically it joins the text on both lines together like they were always one single input line. Girlboss line-wrapping. โจ\<space>โ the backslash-space combo (\) is an unpaddable space-sized non-breaking space character. Peep โWhitespaceโ andmandoc_char(7)for the lore.\!โ embeds text up to and including the end of the input line into the current diversion, or into intermediate output, without interpreting requests, macros, and escapes. Currently unsupported, so don't hold your breath. ๐ญ\"โ everything left on this input line gets treated as โCommentsโ. Ghosted, fr fr. ๐\#โ line continuation, but make it a comment. It discards the rest of the physical input line and continues the logical input line on the next physical input line, joining the text on both lines together as if it were a single input line. This one's a groff extension, iykyk. ๐ฆ\$argโ macro argument expansion. Go readdefor the full tea.\%โ hyphenation is allowed at this point of the word.mandoc(1)ignores it. Iconic of it honestly.\&โ a non-printing, zero-width character. It's the it-girl of escaping tricks. Check โWhitespaceโ,mandoc_char(7), and the โMACRO SYNTAXโ and โDelimitersโ sections inmdoc(7).\'โ acute accent special character. But bestie, use\(aainstead. ๐\(ccโ โSpecial Charactersโ with two-letter names. Seemandoc_char(7).\)โ a zero-width space that's transparent to end-of-sentence detection.mandoc(1)ignores it. She's there but she's not there. โจ\*[name]โ interpolates the string with the name. For short names there are variants\*cand\*(cc.
One string comes predefined right at the roff language level: \*(.T expands to the name of the output device โ like ascii, utf8, ps, pdf, html, or markdown. Slay. ๐
Macro sets traditionally predefine extra strings on top of that, but those are not portable and differ across implementations. The ones mandoc(1) supports are listed in mandoc_char(7).
Strings can be defined, changed, and deleted with the ds, as, and rm requests. ๐
\,โ left italic correction (groff extension).mandoc(1)ignores it.\-โ the special character โmathematical minus signโ. Details are inmandoc_char(7).\/โ right italic correction (groff extension).mandoc(1)ignores it.\:โ breaking the line is allowed at this point of the word, without inserting a hyphen. Sneaky lil line break.\?โ embeds the text up to the next\?into the current diversion without interpreting requests, macros, and escapes. This is a groff extension and currently unsupported. ๐ญ\[name]โ โSpecial Charactersโ with names of arbitrary length. Seemandoc_char(7).\^โ a one-twelfth em half-narrow space character. Inmandoc(1)it's effectively zero-width. Basically a ghost. ๐ป\_โ underline special character. Use\(ulinstead, bestie.- **
\``** โ grave accent special character. Use(ga` instead. \{โ begin conditional input. Seeif.\|โ a one-sixth em narrow space character. Inmandoc(1)it's effectively zero-width too.\}โ end conditional input. Seeif.\~โ a paddable non-breaking space character.\0โ a digit width space character.\A'string'โ anchor definition.mandoc(1)ignores it.\aโ leader character.mandoc(1)ignores it.\B'string'โ interpolates'1'if the string conforms to the syntax of โNumerical expressionsโ explained above, or'0'otherwise. Built-in vibe check, honestly. โจ\b'string'โ bracket building function.mandoc(1)ignores it.\C'name'โ โSpecial Charactersโ with names of arbitrary length.\cโ when it shows up at the end of an input text line, the next input text line is considered to continue that line, even if there are request or macro lines in between. And no whitespace is inserted. Periodt.\D'string'โ draw graphics function.mandoc(1)ignores it.\dโ move down by half a line.mandoc(1)ignores it.\Eโ escape character intended to not be interpreted in copy mode. Inmandoc(1)it currently does the exact same thing as\itself. Twins. ๐\eโ backslash special character.\F[name]โ switch font family (groff extension).mandoc(1)ignores it. For short names there are variants\Fcand\F(cc.\f[name]โ switch to the font name. See โFont Selectionโ. For short names there are variants\fcand\f(cc. An empty name\f[]defaults to\fP. ๐\g[name]โ interpolate the format of a number register.mandoc(1)ignores it. For short names there are variants\gcand\g(cc.\H'[+|-]number'โ set the height of the current font.mandoc(1)ignores it.\h'[|]width'โ horizontal motion. If the vertical bar is given, the motion is relative to the current indentation. Otherwise it's relative to the current position. The default scaling unit ism. ๐ซ\k[name]โ mark horizontal input place in register.mandoc(1)ignores it. For short names there are variants\kcand\k(cc.\L'number[c]'โ vertical line drawing function.mandoc(1)ignores it.\l'width[c]'โ draw a horizontal line of width using the glyphc. Slay, actual drawing.\M[name]โ set fill (background) color (groff extension).mandoc(1)ignores it. For short names there are variants\Mcand\M(cc.\m[name]โ set glyph drawing color (groff extension).mandoc(1)ignores it. For short names there are variants\mcand\m(cc.\N'number'โ character number on the current font.\n[+|-][name]โ interpolate the number register name. For short names there are variants\ncand\n(cc. If the optional sign is specified, the register is first incremented or decremented by the stepsize that was specified in the relevantnrrequest, and then the changed value is what gets interpolated. Glow up, then show up. ๐\Odigit,\O[5arguments]โ suppress output. This is a groff extension and currently unsupported. With an argument of1,2,3, or4, it is ignored. ๐\o'string'โ overstrike, writing all the characters contained in the string to the same output position. In terminal and HTML output modes, only the last one of the characters is visible. They're all stacked and only the top one gets the spotlight. ๐\pโ break the output line at the end of the current word.\R'name [+|-]number'โ set number register.mandoc(1)ignores it.\rโ move up by one line.mandoc(1)ignores it.\S'number'โ slant output.mandoc(1)ignores it.\s'[+|-]number'โ change point size.mandoc(1)ignores it. The alternative forms\s[+|-]n,\s[+|-]'number',\s[[+|-]number], and\s[+|-][number]are also parsed and ignored. So many fits, all of them ghosted. ๐ญ\tโ horizontal tab.mandoc(1)ignores it.\uโ move up by half a line.mandoc(1)ignores it.\V[name]โ interpolate an environment variable.mandoc(1)ignores it. For short names there are variants\Vcand\V(cc.\v'number'โ vertical motion.mandoc(1)ignores it.\w'string'โ interpolate the width of the string. Themandoc(1)implementation assumes that after expansion of user-defined strings, the string only contains normal characters, no escape sequences, and that each character has a width of24basic units. Very much an approximation era. ๐\X'string'โ output string as device control function. Ignored in nroff mode and bymandoc(1).\x'number'โ extra line space function.mandoc(1)ignores it.\Y[name]โ output a string as a device control function. Ignored in nroff mode and bymandoc(1). For short names there are variants\Ycand\Y(cc.\Z'string'โ print string with zero width and height.mandoc(1)ignores it.\zโ output the next character without advancing the cursor position.
๐ COMPATIBILITY ๐
Real talk: the mandoc(1) implementation of the roff language is incomplete. Not everything made it to the party. The major unimplemented features include:
- For security reasons,
mandoc(1)never reads or writes external files โ except viasorequests with safe relative paths. ๐ - There's no automatic hyphenation, no adjustment to the right margin, and only very limited support for centering; the output is always set flush-left. Minimalist queen. โจ
- Support for setting tabulator and leader characters is missing, and support for manually changing indentation is limited.
- The
'u'scaling unit is the default terminal unit. In traditional troff systems, this unit changes depending on the output media. - Width measurements are implemented in a crude way and often yield wrong results. Support for explicit movement requests and escapes is limited. ๐ฌ
- There's no concept of output pages, no support for floats, graphics drawing, and picture inclusion; terminal output is always continuous. No page breaks, just vibes. ๐
- Requests regarding color, font families, font sizes, and glyph manipulation are ignored. Font support is very limited. Kerning is not implemented, and no ligatures are produced.
- The
"'"macro control character does not suppress output line breaks. - Diversions and environments are not implemented, and support for traps is very incomplete.
- Use of macros is not supported inside
tbl(7)code. ๐ซ
Also, the special semantics of thenSnumber register is an idiosyncrasy of OpenBSD manuals and is not supported by othermdoc(7)implementations. So don't expect everyone to get it. ๐ซถ
๐ SEE ALSO ๐
mandoc(1), eqn(7), man(7), mandoc_char(7), mdoc(7), tbl(7)
Joseph F. Ossanna and Brian W. Kernighan, Troff User's Manual, AT&T Bell Laboratories, Computing Science Technical Report, 54, http://www.kohala.com/start/troff/cstr54.ps, Murray Hill, New Jersey, 1976 and 1992.
Joseph F. Ossanna, Brian W. Kernighan, and Gunnar Ritter, Heirloom Documentation Tools Nroff/Troff User's Manual, http://heirloom.sourceforge.net/doctools/troff.pdf, September 17, 2007. ๐
๐ HISTORY ๐
okay so bestie, storytime, because the roff lore is genuinely iconic ๐
The RUNOFF typesetting system โ whose input forms the basis for roff โ was written in MAD and FAP for the CTSS operating system by Jerome E. Saltzer in 1964. โจ
Then Doug McIlroy rewrote it in BCPL in 1969, renaming it roff. ๐
And THEN Dennis M. Ritchie rewrote McIlroy's roff in PDP-11 assembly for Version 1 AT&T UNIX, and Joseph F. Ossanna improved roff and renamed it nroff for Version 2 AT&T UNIX, then ported nroff to C as troff, which Brian W. Kernighan released with Version 7 AT&T UNIX. ๐
Then in 1989, James Clark re-implemented troff in C++, naming it groff. ๐ฆ
the way this is literally a whole lineage of absolute legends passing the torch... main character energy for SIXTY YEARS straight, no cap ๐ซถ
๐ AUTHORS ๐
This roff reference was written by Kristaps Dzonsons <kristaps@bsd.lv> and Ingo Schwarze <schwarze@openbsd.org>. ๐
ngl bestie, these two ate and left absolutely no crumbs โ every single flag, escape, macro and cursed corner of this page? theirs. periodt. ๐
and that's a wrap on the whole roff saga, fr fr ๐ธ this version is from the Debian crew, dated September 18, 2021 โ go forth and typeset something gorgeous, bestie, you've got this ๐โจ๐
๐ฆ where this page comes from
- arch rolling: mandoc 1.14.6-5 ยท ISC
- debian trixie: mandoc 1.14.6-4 ยท ISC
- ubuntu questing: mandoc 1.14.6-4
- ubuntu resolute: mandoc 1.14.6-4build1 ยท ISC
- ubuntu stonking: mandoc 1.14.6-4build1 ยท ISC
- Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
- Copyright (c) 2010-2019 Ingo Schwarze <schwarze@openbsd.org>
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms