{"id":4452,"date":"2022-12-20T17:49:20","date_gmt":"2022-12-20T20:49:20","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/groff_out-man5\/"},"modified":"2022-12-20T17:49:20","modified_gmt":"2022-12-20T20:49:20","slug":"groff_out-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/groff_out-man5\/","title":{"rendered":"GROFF_OUT (man5)"},"content":{"rendered":"<h1 align=\"center\">GROFF_OUT<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#LANGUAGE CONCEPTS\">LANGUAGE CONCEPTS<\/a><br \/> <a href=\"#COMMAND REFERENCE\">COMMAND REFERENCE<\/a><br \/> <a href=\"#POSTPROCESSING\">POSTPROCESSING<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#COMPATIBILITY\">COMPATIBILITY<\/a><br \/> <a href=\"#FILES\">FILES<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">groff_out \u2212 groff intermediate output format<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This manual page describes the <i>intermediate output<\/i> format of the GNU <b>roff<\/b>(7) text processing system <b>groff<\/b>(1). This output is produced by a run of the GNU <b>troff<\/b>(1) program. It contains already all device-specific information, but it is not yet fed into a device postprocessor program.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">As the GNU <i>roff<\/i> processor <b>groff<\/b>(1) is a wrapper program around <b>troff<\/b> that automatically calls a postprocessor, this output does not show up normally. This is why it is called <i>intermediate<\/i> within the <i>groff system<\/i>. The <b>groff<\/b> program provides the option <b>\u2212Z<\/b> to inhibit postprocessing, such that the produced <i>intermediate output<\/i> is sent to standard output just like calling <b>troff<\/b> manually.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In this document, the term <i>troff output<\/i> describes what is output by the GNU <b>troff<\/b> program, while <i>intermediate output<\/i> refers to the language that is accepted by the parser that prepares this output for the postprocessors. This parser is smarter on whitespace and implements obsolete elements for compatibility, otherwise both formats are the same. Both formats can be viewed directly with <b>gxditview<\/b>(1).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The main purpose of the <i>intermediate output<\/i> concept is to facilitate the development of postprocessors by providing a common programming interface for all devices. It has a language of its own that is completely different from the <b>groff<\/b>(7) language. While the <i>groff<\/i> language is a high-level programming language for text processing, the <i>intermediate output<\/i> language is a kind of low-level assembler language by specifying all positions on the page for writing and drawing.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The pre-<i>groff roff<\/i> versions are denoted as <i>classical troff<\/i>. The <i>intermediate output<\/i> produced by <b>groff<\/b> is fairly readable, while <i>classical troff<\/i> output was hard to understand because of strange habits that are still supported, but not used any longer by <i>GNU troff<\/i>.<\/p>\n<h2>LANGUAGE CONCEPTS <a name=\"LANGUAGE CONCEPTS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">During the run of <b>troff<\/b>, the <i>roff<\/i> input is cracked down to the information on what has to be printed at what position on the intended device. So the language of the <i>intermediate output<\/i> format can be quite small. Its only elements are commands with or without arguments. In this document, the term \u201ccommand\u201d always refers to the <i>intermediate output<\/i> language, never to the <i>roff<\/i> language used for document formatting. There are commands for positioning and text writing, for drawing, and for device controlling.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Separation<\/b> <i><br \/> Classical troff output<\/i> had strange requirements on whitespace. The <b>groff<\/b> output parser, however, is smart about whitespace by making it maximally optional. The whitespace characters, i.e., the <i>tab<\/i>, <i>space<\/i>, and <i>newline<\/i> characters, always have a syntactical meaning. They are never printable because spacing within the output is always done by positioning commands.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Any sequence of <i>space<\/i> or <i>tab<\/i> characters is treated as a single <i>syntactical space<\/i>. It separates commands and arguments, but is only required when there would occur a clashing between the command code and the arguments without the space. Most often, this happens when variable length command names, arguments, argument lists, or command clusters meet. Commands and arguments with a known, fixed length need not be separated by <i>syntactical space<\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">A line break is a syntactical element, too. Every command argument can be followed by whitespace, a comment, or a newline character. Thus a <i>syntactical line break<\/i> is defined to consist of optional <i>syntactical space<\/i> that is optionally followed by a comment, and a newline character.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The normal commands, those for positioning and text, consist of a single letter taking a fixed number of arguments. For historical reasons, the parser allows stacking of such commands on the same line, but fortunately, in <i>groff intermediate output<\/i>, every command with at least one argument is followed by a line break, thus providing excellent readability.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The other commands \u2014 those for drawing and device controlling \u2014 have a more complicated structure; some recognize long command names, and some take a variable number of arguments. So all <b>D<\/b> and <b>x<\/b> commands were designed to request a <i>syntactical line break<\/i> after their last argument. Only one command, \u2018<b>x\u00a0X<\/b>\u2019 has an argument that can stretch over several lines, all other commands must have all of their arguments on the same line as the command, i.e., the arguments may not be split by a line break.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Empty lines, i.e., lines containing only space and\/or a comment, can occur everywhere. They are just ignored.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Argument Units<\/b> <br \/> Some commands take integer arguments that are assumed to represent values in a measurement unit, but the letter for the corresponding <i>scale indicator<\/i> is not written with the output command arguments; see <b>groff<\/b>(7) and <i>Groff: The GNU Implementation of troff<\/i>, the <i>groff<\/i> Texinfo manual, for more on this topic. Most commands assume the scale indicator\u00a0<b>u<\/b>, the basic unit of the device, some use\u00a0<b>z<\/b>, the <i>scaled point unit<\/i> of the device, while others, such as the color commands expect plain integers. Note that these scale indicators are relative to the chosen device. They are defined by the parameters specified in the device\u2019s <i>DESC<\/i> file; see <b>groff_font<\/b>(5).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Note that single characters can have the eighth bit set, as can the names of fonts and special characters (this is, glyphs). The names of glyphs and fonts can be of arbitrary length. A glyph that is to be printed will always be in the current font.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">A string argument is always terminated by the next whitespace character (space, tab, or newline); an embedded <b>#<\/b> character is regarded as part of the argument, not as the beginning of a comment command. An integer argument is already terminated by the next non-digit character, which then is regarded as the first character of the next argument or command.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Document Parts<\/b> <br \/> A correct <i>intermediate output<\/i> document consists of two parts, the <i>prologue<\/i> and the <i>body<\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The task of the <i>prologue<\/i> is to set the general device parameters using three exactly specified commands. The <i>groff prologue<\/i> is guaranteed to consist of the following three lines (in that order):<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>x\u00a0T<\/b> <i>device<\/i> <b><br \/> x\u00a0res<\/b> <i>n\u00a0h\u00a0v<\/i> <b><br \/> x init<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">with the arguments set as outlined in subsection \u201cDevice Control Commands\u201d below. However, the parser for the <i>intermediate output<\/i> format is able to swallow additional whitespace and comments as well.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>body<\/i> is the main section for processing the document data. Syntactically, it is a sequence of any commands different from the ones used in the <i>prologue<\/i>. Processing is terminated as soon as the first <b>x\u00a0stop<\/b> command is encountered; the last line of any <i>groff intermediate output<\/i> always contains such a command.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Semantically, the <i>body<\/i> is page oriented. A new page is started by a <b>p\u00a0<\/b>command. Positioning, writing, and drawing commands are always done within the current page, so they cannot occur before the first <b>p\u00a0<\/b>command. Absolute positioning (by the <b>H<\/b> and <b>V\u00a0<\/b>commands) is done relative to the current page, all other positioning is done relative to the current location within this page.<\/p>\n<h2>COMMAND REFERENCE <a name=\"COMMAND REFERENCE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This section describes all <i>intermediate output<\/i> commands, the classical commands as well as the <i>groff<\/i> extensions.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Comment Command <br \/> #<\/b><i>anything<\/i><b>\u2329 end-of-line\u232a<\/b><\/p>\n<p style=\"margin-left:22%;\">A comment. Ignore any characters from the <b>#\u00a0<\/b>character up to the next newline character.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This command is the only possibility for commenting in the <i>intermediate output<\/i>. Each comment can be preceded by arbitrary <i>syntactical space<\/i>; every command can be terminated by a comment.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Simple Commands<\/b> <br \/> The commands in this subsection have a command code consisting of a single character, taking a fixed number of arguments. Most of them are commands for positioning and text writing. These commands are smart about whitespace. Optionally, <i>syntactical space<\/i> can be inserted before, after, and between the command letter and its arguments. All of these commands are stackable, i.e., they can be preceded by other simple commands or followed by arbitrary other commands on the same line. A separating <i>syntactical space<\/i> is only necessary when two integer arguments would clash or if the preceding argument ends with a string argument. <b><br \/> C\u00a0<\/b><i>xxx<\/i>\u2329 white-space\u232a<\/p>\n<p style=\"margin-left:22%;\">Print a glyph (special character) named <i>xxx<\/i>. The trailing <i>syntactical space<\/i> or <i>line break<\/i> is necessary to allow glyph names of arbitrary length. The glyph is printed at the current print position; the glyph\u2019s size is read from the font file. The print position is not changed.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"4%\">\n<p><b>c\u00a0<\/b><i>c<\/i><\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"78%\">\n<p>Print glyph with single-letter name\u00a0<i>c<\/i> at the current print position; the glyph\u2019s size is read from the font file. The print position is not changed.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"4%\">\n<p><b>f\u00a0<\/b><i>n<\/i><\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"78%\">\n<p>Set font to font number\u00a0<i>n<\/i> (a non-negative integer).<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"4%\">\n<p><b>H\u00a0<\/b><i>n<\/i><\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"78%\">\n<p>Move right to the absolute vertical position\u00a0<i>n<\/i> (a non-negative integer in basic units\u00a0<b>u<\/b>) relative to left edge of current page.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"4%\">\n<p><b>h\u00a0<\/b><i>n<\/i><\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"78%\">\n<p>Move <i>n<\/i> (a non-negative integer) basic units\u00a0<b>u<\/b> horizontally to the right. [CSTR\u00a0#54] allows negative values for <i>n<\/i> also, but <i>groff<\/i> doesn\u2019t use this.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>m\u00a0<\/b><i>color-scheme<\/i> [<i>component &#8230;<\/i>]<\/p>\n<p style=\"margin-left:22%;\">Set the color for text (glyphs), line drawing, and the outline of graphic objects using different color schemes; the analogous command for the filling color of graphic objects is <b>DF<\/b>. The color components are specified as integer arguments between 0 and 65536. The number of color components and their meaning vary for the different color schemes. These commands are generated by the <i>groff<\/i> escape sequence <b>m<\/b>. No position changing. These commands are a <i>groff<\/i> extension. <b><br \/> mc\u00a0<\/b><i>cyan magenta yellow<\/i><\/p>\n<p style=\"margin-left:32%;\">Set color using the CMY color scheme, having the 3\u00a0color components cyan, magenta, and yellow.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"4%\">\n<p><b>md\u00a0<\/b><\/p>\n<\/td>\n<td width=\"6%\"><\/td>\n<td width=\"68%\">\n<p>Set color to the default color value (black in most cases). No component arguments.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\"><b>mg\u00a0<\/b><i>gray<\/i><\/p>\n<p style=\"margin-left:32%;\">Set color to the shade of gray given by the argument, an integer between 0 (black) and 65536 (white).<\/p>\n<p style=\"margin-left:22%;\"><b>mk\u00a0<\/b><i>cyan magenta yellow black<\/i><\/p>\n<p style=\"margin-left:32%;\">Set color using the CMYK color scheme, having the 4\u00a0color components cyan, magenta, yellow, and black.<\/p>\n<p style=\"margin-left:22%;\"><b>mr\u00a0<\/b><i>red green blue<\/i><\/p>\n<p style=\"margin-left:32%;\">Set color using the RGB color scheme, having the 3\u00a0color components red, green, and blue.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><b>N\u00a0<\/b><i>n<\/i><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>Print glyph with index\u00a0<i>n<\/i> (an integer, normally non-negative) of the current font. The print position is not changed. If <b>\u2212T\u00a0html<\/b> or <b>\u2212T\u00a0xhtml<\/b> is used, negative values are emitted also to indicate an unbreakable space with given width. For example, <b>N\u00a0\u2212193<\/b> represents an unbreakable space which has a width of 193u. This command is a <i>groff<\/i> extension.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><b>n\u00a0<\/b><i>b\u00a0a<\/i><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>Inform the device about a line break, but no positioning is done by this command. In <i>classical troff<\/i>, the integer arguments <i>b<\/i> and\u00a0<i>a<\/i> informed about the space before and after the current line to make the <i>intermediate output<\/i> more human readable without performing any action. In <i>groff<\/i>, they are just ignored, but they must be provided for compatibility reasons.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><b>p\u00a0<\/b><i>n<\/i><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>Begin a new page in the outprint. The page number is set to\u00a0<i>n<\/i>. This page is completely independent of pages formerly processed even if those have the same page number. The vertical position on the outprint is automatically set to\u00a00. All positioning, writing, and drawing is always done relative to a page, so a <b>p\u00a0<\/b>command must be issued before any of these commands.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><b>s\u00a0<\/b><i>n<\/i><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>Set point size to <i>n<\/i> scaled points (this is unit\u00a0<b>z<\/b> in GNU <b>troff<\/b>). <i>Classical troff<\/i> used the unit <i>points<\/i> (<b>p<\/b>) instead; see section \u201cCompatibility\u201d below.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>t\u00a0<\/b><i>xyz&#8230;<\/i>\u2329 white-space\u232a <b><br \/> t\u00a0<\/b><i>xyz&#8230; dummy-arg<\/i>\u2329 white-space\u232a<\/p>\n<p style=\"margin-left:22%;\">Print a word, i.e., a sequence of glyphs with single-letter names <i>x<\/i>, <i>y<\/i>, <i>z<\/i>, etc., terminated by a space character or a line break; an optional second integer argument is ignored (this allows the formatter to generate an even number of arguments). The first glyph should be printed at the current position, the current horizontal position should then be increased by the width of the first glyph, and so on for each glyph. The widths of the glyph are read from the font file, scaled for the current point size, and rounded to a multiple of the horizontal resolution. Special characters (glyphs with names longer than a single letter) cannot be printed using this command; use the <b>C<\/b> command for those glyphs. This command is a <i>groff<\/i> extension; it is only used for devices whose <i>DESC<\/i> file contains the <b>tcommand<\/b> keyword; see <b>groff_font<\/b>(5).<\/p>\n<p style=\"margin-left:11%;\"><b>u\u00a0<\/b><i>n xyz&#8230;<\/i>\u2329 white-space\u232a<\/p>\n<p style=\"margin-left:22%;\">Print word with track kerning. This is the same as the <b>t<\/b> command except that after printing each glyph, the current horizontal position is increased by the sum of the width of that glyph and\u00a0<i>n<\/i> (an integer in basic units\u00a0<b>u<\/b>). This command is a <i>groff<\/i> extension; it is only used for devices whose <i>DESC<\/i> file contains the <b>tcommand<\/b> keyword; see <b>groff_font<\/b>(5).<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"4%\">\n<p><b>V\u00a0<\/b><i>n<\/i><\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"78%\">\n<p>Move down to the absolute vertical position\u00a0<i>n<\/i> (a non-negative integer in basic units\u00a0<b>u<\/b>) relative to upper edge of current page.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"4%\">\n<p><b>v\u00a0<\/b><i>n<\/i><\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"78%\">\n<p>Move <i>n<\/i> basic units\u00a0<b>u<\/b> down (<i>n<\/i> is a non-negative integer). [CSTR\u00a0#54] allows negative values for <i>n<\/i> also, but <i>groff<\/i> doesn\u2019t use this.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"4%\">\n<p><b>w\u00a0<\/b><\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"78%\">\n<p>Informs about a paddable whitespace to increase readability. The spacing itself must be performed explicitly by a move command.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Graphics Commands<\/b> <br \/> Each graphics or drawing command in the <i>intermediate output<\/i> starts with the letter\u00a0<b>D<\/b> followed by one or two characters that specify a subcommand; this is followed by a fixed or variable number of integer arguments that are separated by a single space character. A <b>D\u00a0<\/b>command may not be followed by another command on the same line (apart from a comment), so each <b>D\u00a0<\/b>command is terminated by a <i>syntactical line break<\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>troff<\/b> output follows the classical spacing rules (no space between command and subcommand, all arguments are preceded by a single space character), but the parser allows optional space between the command letters and makes the space before the first argument optional. As usual, each space can be any sequence of tab and space characters.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Some graphics commands can take a variable number of arguments. In this case, they are integers representing a size measured in basic units\u00a0<b>u<\/b>. The <i>h<\/i> arguments stand for horizontal distances where positive means right, negative left. The <i>v<\/i> arguments stand for vertical distances where positive means down, negative up. All these distances are offsets relative to the current location.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Unless indicated otherwise, each graphics command directly corresponds to a similar <i>groff<\/i> <b>D<\/b> escape sequence; see <b>groff<\/b>(7).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Unknown <b>D\u00a0<\/b>commands are assumed to be device-specific. Its arguments are parsed as strings; the whole information is then sent to the postprocessor.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In the following command reference, the syntax element <i>\u2329 line-break\u232a<\/i> means a <i>syntactical line break<\/i> as defined in subsection \u201cSeparation\u201d above. <b><br \/> D~\u00a0<\/b><i>h <small><small>1\u00a0<\/small><\/small> v <small><small>1<\/small><\/small> h <small><small>2\u00a0<\/small><\/small> v <small><small>2<\/small><\/small><\/i> &#8230; <i>h <small><small>n\u00a0<\/small><\/small> v <small><small>n<\/small><\/small><\/i> \u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">Draw B-spline from current position to offset (<i>h <small><small>1<\/small><\/small><\/i> ,\u00a0<i>v <small><small>1<\/small><\/small><\/i> ), then to offset (<i>h <small><small>2<\/small><\/small><\/i> ,\u00a0<i>v <small><small>2<\/small><\/small><\/i> ) if given, etc., up to (<i>h <small><small>n<\/small><\/small><\/i> ,\u00a0<i>v <small><small>n<\/small><\/small><\/i> ). This command takes a variable number of argument pairs; the current position is moved to the terminal point of the drawn curve.<\/p>\n<p style=\"margin-left:11%;\"><b>Da\u00a0<\/b><i>h <small><small>1\u00a0<\/small><\/small> v <small><small>1<\/small><\/small> h <small><small>2\u00a0<\/small><\/small> v <small><small>2<\/small><\/small><\/i> \u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">Draw arc from current position to (<i>h <small><small>1<\/small><\/small><\/i> ,\u00a0<i>v <small><small>1<\/small><\/small><\/i> )+(<i>h <small><small>2<\/small><\/small><\/i> ,\u00a0<i>v <small><small>2<\/small><\/small><\/i> ) with center at (<i>h <small><small>1<\/small><\/small><\/i> ,\u00a0<i>v <small><small>1<\/small><\/small><\/i> ); then move the current position to the final point of the arc.<\/p>\n<p style=\"margin-left:11%;\"><b>DC\u00a0<\/b><i>d<\/i>\u2329 line-break\u232a <b><br \/> DC\u00a0<\/b><i>d dummy-arg<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">Draw a solid circle using the current fill color with diameter\u00a0<i>d<\/i> (integer in basic units\u00a0<b>u<\/b>) with leftmost point at the current position; then move the current position to the rightmost point of the circle. An optional second integer argument is ignored (this allows the formatter to generate an even number of arguments). This command is a <i>groff<\/i> extension.<\/p>\n<p style=\"margin-left:11%;\"><b>Dc\u00a0<\/b><i>d<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">Draw circle line with diameter\u00a0<i>d<\/i> (integer in basic units\u00a0<b>u<\/b>) with leftmost point at the current position; then move the current position to the rightmost point of the circle.<\/p>\n<p style=\"margin-left:11%;\"><b>DE\u00a0<\/b><i>h v<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">Draw a solid ellipse in the current fill color with a horizontal diameter of\u00a0<i>h<\/i> and a vertical diameter of\u00a0<i>v<\/i> (both integers in basic units\u00a0<b>u<\/b>) with the leftmost point at the current position; then move to the rightmost point of the ellipse. This command is a <i>groff<\/i> extension.<\/p>\n<p style=\"margin-left:11%;\"><b>De\u00a0<\/b><i>h v<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">Draw an outlined ellipse with a horizontal diameter of\u00a0<i>h<\/i> and a vertical diameter of\u00a0<i>v<\/i> (both integers in basic units\u00a0<b>u<\/b>) with the leftmost point at current position; then move to the rightmost point of the ellipse.<\/p>\n<p style=\"margin-left:11%;\"><b>DF\u00a0<\/b><i>color-scheme<\/i> [<i>component &#8230;<\/i>]\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">Set fill color for solid drawing objects using different color schemes; the analogous command for setting the color of text, line graphics, and the outline of graphic objects is <b>m<\/b>. The color components are specified as integer arguments between 0 and 65536. The number of color components and their meaning vary for the different color schemes. These commands are generated by the <i>groff<\/i> escape sequences <b>D\u2019F\u00a0<\/b>&#8230;<b>\u2019<\/b> and <b>M<\/b> (with no other corresponding graphics commands). No position changing. This command is a <i>groff<\/i> extension. <b><br \/> DFc\u00a0<\/b><i>cyan magenta yellow<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:32%;\">Set fill color for solid drawing objects using the CMY color scheme, having the 3\u00a0color components cyan, magenta, and yellow.<\/p>\n<p style=\"margin-left:22%;\"><b>DFd\u00a0<\/b>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:32%;\">Set fill color for solid drawing objects to the default fill color value (black in most cases). No component arguments.<\/p>\n<p style=\"margin-left:22%;\"><b>DFg\u00a0<\/b><i>gray<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:32%;\">Set fill color for solid drawing objects to the shade of gray given by the argument, an integer between 0 (black) and 65536 (white).<\/p>\n<p style=\"margin-left:22%;\"><b>DFk\u00a0<\/b><i>cyan magenta yellow black<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:32%;\">Set fill color for solid drawing objects using the CMYK color scheme, having the 4\u00a0color components cyan, magenta, yellow, and black.<\/p>\n<p style=\"margin-left:22%;\"><b>DFr\u00a0<\/b><i>red green blue<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:32%;\">Set fill color for solid drawing objects using the RGB color scheme, having the 3\u00a0color components red, green, and blue.<\/p>\n<p style=\"margin-left:11%;\"><b>Df\u00a0<\/b><i>n<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">The argument <i>n<\/i> must be an integer in the range \u221232767 to 32767. <br \/> 0\u2264<i>n<\/i>\u22641000<\/p>\n<p style=\"margin-left:32%;\">Set the color for filling solid drawing objects to a shade of gray, where 0 corresponds to solid white, 1000 (the default) to solid black, and values in between to intermediate shades of gray; this is obsoleted by command <b>DFg<\/b>.<\/p>\n<p style=\"margin-left:22%;\"><i>n<\/i><0 or <i>n<\/i>>1000<\/p>\n<p style=\"margin-left:32%;\">Set the filling color to the color that is currently being used for the text and the outline, see command <b>m<\/b>. For example, the command sequence<\/p>\n<p style=\"margin-left:43%; margin-top: 1em\">mg 0 0 65536 <br \/> Df \u22121<\/p>\n<p style=\"margin-left:32%; margin-top: 1em\">sets all colors to blue.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">No position changing. This command is a <i>groff<\/i> extension.<\/p>\n<p style=\"margin-left:11%;\"><b>Dl\u00a0<\/b><i>h v<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">Draw line from current position to offset (<i>h<\/i>,\u00a0<i>v<\/i>) (integers in basic units\u00a0<b>u<\/b>); then set current position to the end of the drawn line.<\/p>\n<p style=\"margin-left:11%;\"><b>Dp\u00a0<\/b><i>h <small><small>1\u00a0<\/small><\/small> v <small><small>1<\/small><\/small> h <small><small>2\u00a0<\/small><\/small> v <small><small>2<\/small><\/small><\/i> &#8230; <i>h <small><small>n\u00a0<\/small><\/small> v <small><small>n<\/small><\/small><\/i> \u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">Draw a polygon line from current position to offset (<i>h <small><small>1<\/small><\/small><\/i> ,\u00a0<i>v <small><small>1<\/small><\/small><\/i> ), from there to offset (<i>h <small><small>2<\/small><\/small><\/i> ,\u00a0<i>v <small><small>2<\/small><\/small><\/i> ), etc., up to offset (<i>h <small><small>n<\/small><\/small><\/i> ,\u00a0<i>v <small><small>n<\/small><\/small><\/i> ), and from there back to the starting position. For historical reasons, the position is changed by adding the sum of all arguments with odd index to the actual horizontal position and the even ones to the vertical position. Although this doesn\u2019t make sense it is kept for compatibility. This command is a <i>groff<\/i> extension.<\/p>\n<p style=\"margin-left:11%;\"><b>DP\u00a0<\/b><i>h <small><small>1\u00a0<\/small><\/small> v <small><small>1<\/small><\/small> h <small><small>2\u00a0<\/small><\/small> v <small><small>2<\/small><\/small><\/i> &#8230; <i>h <small><small>n\u00a0<\/small><\/small> v <small><small>n<\/small><\/small><\/i> \u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">The same macro as the corresponding <b>Dp<\/b> command with the same arguments, but draws a solid polygon in the current fill color rather than an outlined polygon. The position is changed in the same way as with <b>Dp<\/b>. This command is a <i>groff<\/i> extension.<\/p>\n<p style=\"margin-left:11%;\"><b>Dt\u00a0<\/b><i>n<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">Set the current line thickness to\u00a0<i>n<\/i> (an integer in basic units\u00a0<b>u<\/b>) if <i>n<\/i>>0; if <i>n<\/i>=0 select the smallest available line thickness; if <i>n<\/i><0 set the line thickness proportional to the point size (this is the default before the first <b>Dt<\/b> command was specified). For historical reasons, the horizontal position is changed by adding the argument to the actual horizontal position, while the vertical position is not changed. Although this doesn\u2019t make sense it is kept for compatibility. This command is a <i>groff<\/i> extension.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Device Control Commands<\/b> <br \/> Each device control command starts with the letter <b>x<\/b> followed by a space character (optional or arbitrary space\/tab in <i>groff<\/i>) and a subcommand letter or word; each argument (if any) must be preceded by a <i>syntactical space<\/i>. All <b>x<\/b> commands are terminated by a <i>syntactical line break<\/i>; no device control command can be followed by another command on the same line (except a comment).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The subcommand is basically a single letter, but to increase readability, it can be written as a word, i.e., an arbitrary sequence of characters terminated by the next tab, space, or newline character. All characters of the subcommand word but the first are simply ignored. For example, <b>troff<\/b> outputs the initialization command <b>x\u00a0i<\/b> as <b>x\u00a0init<\/b> and the resolution command <b>x\u00a0r<\/b> as <b>x\u00a0res<\/b>. But writings like <b>x\u00a0i_like_groff<\/b> and <b>x\u00a0roff_is_groff<\/b> are accepted as well to mean the same commands.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In the following, the syntax element <i>\u2329 line-break\u232a<\/i> means a <i>syntactical line break<\/i> as defined in subsection \u201cSeparation\u201d above. <b><br \/> xF\u00a0<\/b><i>name<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">(<i>Filename<\/i> control command) <br \/> Use <i>name<\/i> as the intended name for the current file in error reports. This is useful for remembering the original file name when <b>groff<\/b> uses an internal piping mechanism. The input file is not changed by this command. This command is a <i>groff<\/i> extension.<\/p>\n<p style=\"margin-left:11%;\"><b>xf\u00a0<\/b><i>n\u00a0s<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">(<i>font<\/i> control command) <br \/> Mount font position\u00a0<i>n<\/i> (a non-negative integer) with font named\u00a0<i>s<\/i> (a text word); see <b>groff_font<\/b>(5).<\/p>\n<p style=\"margin-left:11%;\"><b>xH\u00a0<\/b><i>n<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">(<i>Height<\/i> control command) <br \/> Set character height to\u00a0<i>n<\/i> (a positive integer in scaled points\u00a0<b>z<\/b>). <i>Classical troff<\/i> used the unit points (<b>p<\/b>) instead; see section \u201cCompatibility\u201d below.<\/p>\n<p style=\"margin-left:11%;\"><b>xi\u00a0<\/b>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">(<i>init<\/i> control command) <br \/> Initialize device. This is the third command of the <i>prologue<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><b>xp\u00a0<\/b>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">(<i>pause<\/i> control command) <br \/> Parsed but ignored. The classical documentation reads <i>pause device, can be restarted<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><b>xr\u00a0<\/b><i>n\u00a0h\u00a0v<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">(<i>resolution<\/i> control command) <br \/> Resolution is\u00a0<i>n<\/i>, while <i>h<\/i> is the minimal horizontal motion, and <i>v<\/i> the minimal vertical motion possible with this device; all arguments are positive integers in basic units\u00a0<b>u<\/b> per inch. This is the second command of the <i>prologue<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><b>xS\u00a0<\/b><i>n<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">(<i>Slant<\/i> control command) <br \/> Set slant to\u00a0<i>n<\/i> degrees (an integer in basic units\u00a0<b>u<\/b>).<\/p>\n<p style=\"margin-left:11%;\"><b>xs\u00a0<\/b>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">(<i>stop<\/i> control command) <br \/> Terminates the processing of the current file; issued as the last command of any <i>intermediate troff output<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><b>xt\u00a0<\/b>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">(<i>trailer<\/i> control command) <br \/> Generate trailer information, if any. In <b>groff<\/b>, this is actually just ignored.<\/p>\n<p style=\"margin-left:11%;\"><b>xT\u00a0<\/b><i>xxx<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">(<i>Typesetter<\/i> control command) <br \/> Set name of device to word <i>xxx<\/i>, a sequence of characters ended by the next whitespace character. The possible device names coincide with those from the groff <b>\u2212T<\/b> option. This is the first command of the <i>prologue<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><b>xu\u00a0<\/b><i>n<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">(<i>underline<\/i> control command) <br \/> Configure underlining of spaces. If <i>n<\/i> is\u00a01, start underlining of spaces; if <i>n<\/i> is\u00a00, stop underlining of spaces. This is needed for the <b>cu<\/b> request in <b>nroff<\/b> mode and is ignored otherwise. This command is a <i>groff<\/i> extension.<\/p>\n<p style=\"margin-left:11%;\"><b>xX\u00a0<\/b><i>anything<\/i>\u2329 line-break\u232a<\/p>\n<p style=\"margin-left:22%;\">(<i>X-escape<\/i> control command) <br \/> Send string <i>anything<\/i> uninterpreted to the device. If the line following this command starts with a <b>+<\/b> character this line is interpreted as a continuation line in the following sense. The <b>+<\/b> is ignored, but a newline character is sent instead to the device, the rest of the line is sent uninterpreted. The same applies to all following lines until the first character of a line is not a <b>+<\/b> character. This command is generated by the <i>groff<\/i> escape sequence <b>X<\/b>. The line-continuing feature is a <i>groff<\/i> extension.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Obsolete Command<\/b> <br \/> In <i>classical troff<\/i> output, emitting a single glyph was mostly done by a very strange command that combined a horizontal move and the printing of a glyph. It didn\u2019t have a command code, but is represented by a 3-character argument consisting of exactly 2\u00a0digits and a character.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"4%\">\n<p><i>ddc<\/i><\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"78%\">\n<p>Move right <i>dd<\/i> (exactly two decimal digits) basic units\u00a0<b>u<\/b>, then print glyph with single-letter name\u00a0<i>c<\/i>.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">In <i>groff<\/i>, arbitrary <i>syntactical space<\/i> around and within this command is allowed to be added. Only when a preceding command on the same line ends with an argument of variable length a separating space is obligatory. In <i>classical troff<\/i>, large clusters of these and other commands were used, mostly without spaces; this made such output almost unreadable.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">For modern high-resolution devices, this command does not make sense because the width of the glyphs can become much larger than two decimal digits. In <b>groff<\/b>, this is only used for the devices <b>X75<\/b>, <b>X75-12<\/b>, <b>X100<\/b>, and <b>X100-12<\/b>. For other devices, the commands <b>t<\/b> and\u00a0<b>u<\/b> provide a better functionality.<\/p>\n<h2>POSTPROCESSING <a name=\"POSTPROCESSING\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>roff<\/i> postprocessors are programs that have the task to translate the <i>intermediate output<\/i> into actions that are sent to a device. A device can be some piece of hardware such as a printer, or a software file format suitable for graphical or text processing. The <i>groff<\/i> system provides powerful means that make the programming of such postprocessors an easy task.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">There is a library function that parses the <i>intermediate output<\/i> and sends the information obtained to the device via methods of a class with a common interface for each device. So a <i>groff<\/i> postprocessor must only redefine the methods of this class. For details, see the reference in section \u201cFiles\u201d below.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This section presents the <i>intermediate output<\/i> generated from the same input for three different devices. The input is the sentence <i>hell world<\/i> fed into <b>groff<\/b> on the command line.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"38%\">\n<p style=\"margin-top: 1em\">High-resolution device <i>ps<\/i><\/p>\n<\/td>\n<td width=\"48%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:14%; margin-top: 1em\"><b>shell><\/b> echo &#8220;hell world&#8221; | groff \u2212Z \u2212T ps<\/p>\n<p style=\"margin-left:14%; margin-top: 1em\"><b>x T ps <br \/> x res 72000 1 1 <br \/> x init <br \/> p1 <br \/> x font 5 TR <br \/> f5 <br \/> s10000 <br \/> V12000 <br \/> H72000 <br \/> thell <br \/> wh2500 <br \/> tw <br \/> H96620 <br \/> torld <br \/> n12000 0 <br \/> x trailer <br \/> V792000 <br \/> x stop<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This output can be fed into the postprocessor <b>grops<\/b>(1) to get its representation as a PostScript file, or <b>gropdf<\/b>(1) to output directly to PDF.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"43%\">\n<p style=\"margin-top: 1em\">Low-resolution device <i>latin1<\/i><\/p>\n<\/td>\n<td width=\"43%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:14%; margin-top: 1em\">This is similar to the high-resolution device except that the positioning is done at a minor scale. Some comments (lines starting with <i>#<\/i>) were added for clarification; they were not generated by the formatter.<\/p>\n<p style=\"margin-left:14%; margin-top: 1em\"><b>shell><\/b> &#8220;hell world&#8221; | groff \u2212Z \u2212T latin1<\/p>\n<p style=\"margin-left:14%; margin-top: 1em\"><i># prologue<\/i> <b><br \/> x T latin1 <br \/> x res 240 24 40 <br \/> x init<\/b> <i><br \/> # begin a new page<\/i> <b><br \/> p1<\/b> <i><br \/> # font setup<\/i> <b><br \/> x font 1 R <br \/> f1 <br \/> s10<\/b> <i><br \/> # initial positioning on the page<\/i> <b><br \/> V40 <br \/> H0<\/b> <i><br \/> # write text \u2018hell\u2019<\/i> <b><br \/> thell<\/b> <i><br \/> # inform about a space, and do it by a horizontal jump<\/i> <b><br \/> wh24<\/b> <i><br \/> # write text \u2018world\u2019<\/i> <b><br \/> tworld<\/b> <i><br \/> # announce line break, but do nothing because &#8230;<\/i> <b><br \/> n40 0<\/b> <i><br \/> # &#8230; the end of the document has been reached<\/i> <b><br \/> x trailer <br \/> V2640 <br \/> x stop<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This output can be fed into the postprocessor <b>grotty<\/b>(1) to get a formatted text document.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"34%\">\n<p style=\"margin-top: 1em\">Classical style output<\/p>\n<\/td>\n<td width=\"52%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:14%; margin-top: 1em\">As a computer monitor has a very low resolution compared to modern printers the <i>intermediate output<\/i> for the X\u00a0devices can use the jump-and-write command with its 2-digit displacements.<\/p>\n<p style=\"margin-left:14%; margin-top: 1em\"><b>shell><\/b> &#8220;hell world&#8221; | groff \u2212Z \u2212T X100<\/p>\n<p style=\"margin-left:14%; margin-top: 1em\"><b>x T X100 <br \/> x res 100 1 1 <br \/> x init <br \/> p1 <br \/> x font 5 TR <br \/> f5 <br \/> s10 <br \/> V16 <br \/> H100<\/b> <i><br \/> # write text with old-style jump-and-write command<\/i> <b><br \/> ch07e07l03lw06w11o07r05l03dh7 <br \/> n16 0 <br \/> x trailer <br \/> V1100 <br \/> x stop<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This output can be fed into the postprocessor <b>xditview<\/b>(1x) or <b>gxditview<\/b>(1) for displaying in\u00a0X.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Due to the obsolete jump-and-write command, the text clusters in the classical output are almost unreadable.<\/p>\n<h2>COMPATIBILITY <a name=\"COMPATIBILITY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>intermediate output<\/i> language of the <i>classical troff<\/i> was first documented in [CSTR\u00a0#97] . The <i>groff intermediate output<\/i> format is compatible with this specification except for the following features.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"86%\">\n<p style=\"margin-top: 1em\">The classical quasi device independence is not yet implemented.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"86%\">\n<p>The old hardware was very different from what we use today. So the <i>groff<\/i> devices are also fundamentally different from the ones in <i>classical troff<\/i>. For example, the classical PostScript device was called <i>post<\/i> and had a resolution of 720 units per inch, while <i>groff<\/i>\u2019s <i>ps<\/i> device has a resolution of 72000 units per inch. Maybe, by implementing some rescaling mechanism similar to the classical quasi device independence, these could be integrated into modern <i>groff<\/i>.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"86%\">\n<p>The B-spline command <b>D~<\/b> is correctly handled by the <i>intermediate output<\/i> parser, but the drawing routines aren\u2019t implemented in some of the postprocessor programs.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"86%\">\n<p>The argument of the commands <b>s<\/b> and <b>x H<\/b> has the implicit unit scaled point\u00a0<b>z<\/b> in <i>groff<\/i>, while <i>classical troff<\/i> had point (<b>p<\/b>). This isn\u2019t an incompatibility, but a compatible extension, for both units coincide for all devices without a <i>sizescale<\/i> parameter, including all classical and the <i>groff<\/i> text devices. The few <i>groff<\/i> devices with a sizescale parameter either did not exist, had a different name, or seem to have had a different resolution. So conflicts with classical devices are very unlikely.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"86%\">\n<p>The position changing after the commands <b>Dp<\/b>, <b>DP<\/b>, and <b>Dt<\/b> is illogical, but as old versions of groff used this feature it is kept for compatibility reasons.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">The differences between <i>groff<\/i> and <i>classical troff<\/i> are documented in <b>groff_diff<\/b>(7).<\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>\/usr\/share\/groff\/1.22.4\/font\/dev<\/i>name<i>\/DESC<\/i><\/p>\n<p style=\"margin-left:22%;\">Device description file for device <i>name<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><i>src\/libs\/libdriver\/input.cpp<\/i><\/p>\n<p style=\"margin-left:22%;\">Defines the parser and postprocessor for the <i>intermediate output<\/i>. It is located relative to the top directory of the <i>groff<\/i> source tree. This parser is the definitive specification of the <i>groff intermediate output<\/i> format.<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">James Clark wrote an early version of this document, which described only the differences between <b>ditroff<\/b>(7)\u2019s output format and that of GNU <i>roff<\/i>. The present version was completely rewritten in 2001 by <a href=\"mailto:groff-bernd.warken-72@web.de\">Bernd Warken<\/a>.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">A reference like <b>groff<\/b>(7) refers to a manual page; here <b>groff<\/b> in section\u00a0<i>7<\/i> of the man page documentation system. To read the example, look up section\u00a07 in your desktop help system or call from the shell prompt<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>shell><\/b> man 7 groff<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">For more details, see <b>man<\/b>(1). <b><br \/> groff<\/b>(1)<\/p>\n<p style=\"margin-left:22%;\">option <b>\u2212Z<\/b> and further readings on groff.<\/p>\n<p style=\"margin-left:11%;\"><b>groff<\/b>(7)<\/p>\n<p style=\"margin-left:22%;\">for details of the <i>groff<\/i> language such as numerical units and escape sequences.<\/p>\n<p style=\"margin-left:11%;\"><b>groff_font<\/b>(5)<\/p>\n<p style=\"margin-left:22%;\">for details on the device scaling parameters of the <i>DESC<\/i> file.<\/p>\n<p style=\"margin-left:11%;\"><b>troff<\/b>(1)<\/p>\n<p style=\"margin-left:22%;\">generates the device-independent intermediate output.<\/p>\n<p style=\"margin-left:11%;\"><b>roff<\/b>(7)<\/p>\n<p style=\"margin-left:22%;\">for historical aspects and the general structure of roff systems.<\/p>\n<p style=\"margin-left:11%;\"><b>groff_diff<\/b>(7)<\/p>\n<p style=\"margin-left:22%;\">The differences between the intermediate output in groff and classical troff.<\/p>\n<p style=\"margin-left:11%;\"><b>gxditview<\/b>(1)<\/p>\n<p style=\"margin-left:22%;\">Viewer for the <i>intermediate output<\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>grodvi<\/b>(1), <b>grohtml<\/b>(1), <b>grolbp<\/b>(1), <b>grolj4<\/b>(1), <b>grops<\/b>(1), <b>grotty<\/b>(1)<\/p>\n<p style=\"margin-left:22%;\">the groff postprocessor programs.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>Groff: The GNU Implementation of troff<\/i>, by Trent A. Fisher and Werner Lemberg, is the primary <i>groff<\/i> manual. You can browse it interactively with \u201cinfo groff\u201d.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>classical troff output language<\/i> is described in two AT&#038;T Bell Labs CSTR documents available on-line at <a href=\"http:\/\/cm.bell-labs.com\/cm\/cs\/cstr.html\">Bell Labs CSTR site<\/a>. <br \/> [CSTR #97]<\/p>\n<p style=\"margin-left:22%;\"><i>A Typesetter-independent TROFF<\/i> by <i>Brian Kernighan<\/i> is the original and most comprehensive documentation on the output language; see <a href=\"http:\/\/cm.bell-labs.com\/cm\/cs\/cstr\/97.ps.gz\">CSTR\u00a0#97<\/a>.<\/p>\n<p style=\"margin-left:11%;\">[CSTR\u00a0#54]<\/p>\n<p style=\"margin-left:22%;\">The 1992 revision of the <i>Nroff\/Troff User\u2019s Manual<\/i> by <i>J. F. Ossanna<\/i> and <i>Brian Kernighan<\/i> isn\u2019t as comprehensive as [CSTR\u00a0#97] regarding the output language; see <a href=\"http:\/\/cm.bell-labs.com\/cm\/cs\/cstr\/54.ps.gz\">CSTR\u00a0#54<\/a>.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  groff_out \u2212 groff intermediate output format <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1435,1291],"class_list":["post-4452","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-groff_out","tag-man5"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4452"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4452\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}