2 .\" The above line should force the use of eqn as a preprocessor
4 Copyright (C) 1989-2000 Free Software Foundation, Inc.
6 Permission is granted to make and distribute verbatim copies of
7 this manual provided the copyright notice and this permission notice
8 are preserved on all copies.
10 Permission is granted to copy and distribute modified versions of this
11 manual under the conditions for verbatim copying, provided that the
12 entire resulting derived work is distributed under the terms of a
13 permission notice identical to this one.
15 Permission is granted to copy and distribute translations of this
16 manual into another language, under the above conditions for modified
17 versions, except that this permission notice may be included in
18 translations approved by the Free Software Foundation instead of in
21 .\" This man page must be preprocessed with eqn.
24 .TH GROFF_OUT @MAN5EXT@ "@MDATE@" "Groff Version @VERSION@"
26 groff_out \- groff intermediate output format
28 This manual page describes the format output by GNU troff.
29 The output format used by GNU troff is very similar to that used
30 by Unix device-independent troff. Only the differences are documented
35 command is in scaled points (units of
39 is the argument to the
41 command in the DESC file.)
44 command is also in scaled points.
46 The first three output commands are guaranteed to be:
56 line is present in the DESC file, troff will use the following
61 is any sequence of characters terminated by a space or a newline;
62 the first character should be printed at the current position,
63 the the current horizontal position should be increased by
64 the width of the first character, and so on for each character.
65 The width of the character is that given in the font file,
66 appropriately scaled for the current point size, and rounded
67 so that it is a multiple of the horizontal resolution.
68 Special characters cannot be printed using this command.
73 command except that after printing each character, the current horizontal
74 position is increased by the sum of the width of that character
78 Note that single characters can have the eighth bit set, as can the
79 names of fonts and special characters.
81 The names of characters and fonts can be of arbitrary length; drivers
82 should not assume that they will be only two characters long.
84 When a character is to be printed, that character will always be
86 Unlike device-independent troff, it is not necessary
87 for drivers to search special fonts to find a character.
91 drawing command has been extended.
92 These extensions will not be used by GNU pic if the
97 Set the shade of gray to be used for filling solid objects to
100 must be an integer between 0 and 1000, where 0 corresponds solid white
101 and 1000 to solid black, and values in between correspond to
102 intermediate shades of gray.
103 This applies only to solid circles, solid ellipses and solid
105 By default, a level of 1000 will be used.
106 Whatever color a solid object has, it should completely obscure
107 everything beneath it.
108 A value greater than 1000 or less than 0 can also be used:
109 this means fill with the shade of gray that is currently being used
111 Normally this will be black, but some drivers may provide
112 a way of changing this.
114 \fBDC \fId\fR\*(ic\en
115 Draw a solid circle with a diameter of
117 with the leftmost point at the current position.
119 \fBDE \fIdx dy\fR\*(ic\en
120 Draw a solid ellipse with a horizontal diameter of
122 and a vertical diameter of
124 with the leftmost point at the current position.
129 \fBDp\fR $dx sub 1$ $dy sub 1$ $dx sub 2$ $dy sub 2$ $...$ $dx sub n$ $dy sub n$\en
131 for $i = 1 ,..., n+1$, the
133 vertex at the current position
134 $+ sum from j=1 to i-1 ( dx sub j , dy sub j )$.
136 GNU pic only uses this command to generate triangles and rectangles.
138 \fBDP\fR $dx sub 1$ $dy sub 1$ $dx sub 2$ $dy sub 2$ $...$ $dx sub n$ $dy sub n$\en
141 but draw a solid rather than outlined polygon.
143 \fBDt \fIn\fR\*(ic\en
144 Set the current line thickness to
147 Traditionally Unix troff drivers use a line thickness proportional to the current
148 point size; drivers should continue to do this if no
150 command has been given, or if a
152 command has been given with a negative value of
156 selects the smallest available line thickness.
158 A difficulty arises in how the current position should be changed after
159 the execution of these commands.
160 This is not of great importance since the code generated by GNU pic
161 does not depend on this.
162 Given a drawing command of the form
164 \fB\eD\(fm\fIc\fR $x sub 1$ $y sub 1$ $x sub 2$ $y sub 2$ $...$ $x sub n$ $y sub n$\(fm
175 Unix troff will treat each of the $x sub i$ as a horizontal quantity,
176 and each of the $y sub i$ as a vertical quantity and will assume that
177 the width of the drawn object is $sum from i=1 to n x sub i$,
178 and that the height is $sum from i=1 to n y sub i$.
179 (The assumption about the height can be seen by examining the
183 registers after using such a
185 command in a \ew escape sequence.)
186 This rule also holds for all the original drawing commands
187 with the exception of
189 For the sake of compatibility GNU troff also follows this rule,
190 even though it produces an ugly result in the case of the
193 and, to a lesser extent,
196 Thus after executing a
200 \fBD\fIc\fR $x sub 1$ $y sub 1$ $x sub 2$ $y sub 2$ $...$ $x sub n$ $y sub n$\en
202 the current position should be increased by
203 $( sum from i=1 to n x sub i , sum from i=1 to n y sub i )$.
205 There is a continuation convention which permits the argument to the
207 command to contain newlines:
208 when outputting the argument to the
211 will follow each newline in the argument with a
214 (as usual, it will terminate the entire argument with a newline);
215 thus if the line after the line containing the
219 then the newline ending the line containing the
221 command should be treated as part of the argument to the
227 and the part of the line following the
229 should be treated like the part of the line following the
233 .BR groff_font (@MAN5EXT@)