]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/groff/man/groff_out.man
This commit was generated by cvs2svn to compensate for changes in r146895,
[FreeBSD/FreeBSD.git] / contrib / groff / man / groff_out.man
1 '\" e
2 .\" The above line should force the use of eqn as a preprocessor
3 .ig
4 groff_out.5
5
6 Last update: 13 Apr 2003
7
8 This file is part of groff, the GNU roff type-setting system.
9
10 Copyright (C) 1989, 2001, 2002, 2003 Free Software Foundation, Inc.
11 rewritten from scrach 2001 by Bernd Warken <bwarken@mayn.de>
12
13 Permission is granted to copy, distribute and/or modify this document
14 under the terms of the GNU Free Documentation License, Version 1.1 or
15 any later version published by the Free Software Foundation; with the
16 Invariant Sections being this .ig-section and AUTHORS, with no
17 Front-Cover Texts, and with no Back-Cover Texts.
18
19 A copy of the Free Documentation License is included as a file called
20 FDL in the main directory of the groff source package.
21 ..
22 .
23 .\" --------------------------------------------------------------------
24 .\" Setup
25 .\" --------------------------------------------------------------------
26 .
27 .mso www.tmac
28 .
29 .if n \{\
30 .  mso tty-char.tmac
31 .  ftr CR R
32 .  ftr CI I
33 .  ftr CB B
34 .\}
35 .
36 .if '\*[.T]'dvi' \
37 .  ftr CB CW
38 .
39 .if t \{\
40 .EQ
41 delim $$
42 .EN
43 .\}
44 .
45 .\" ----------------- Document configuration
46 .
47 .\" Number register to decide whether the commands `{' and `}' are used
48 .\" 0: disable (actual default); 1: enable
49 .nr @USE_ENV_STACK 0
50 .
51 .ig
52 Unfortunately, old versions of groff used an illogical position change
53 after some D\~commands (Dp, DP, Dt).  If the number register
54 @STUPID_DRAWING_POSITIONING is 1 (actual default) then change position
55 after these commands, otherwise the position is not changed.
56 ..
57 .nr @STUPID_DRAWING_POSITIONING 1
58 .
59 .\" ----------------- Syntactical definitions
60 .
61 .\" comments when escapes are switched off
62 .de c
63 ..
64 .\" Begin of macro definitions
65 .eo
66 .
67 .de Text
68 .  nop \)\$*
69 ..
70 .c follow-up line for a .TP header
71 .de TP+
72 .  br
73 .  ns
74 .  TP \$1
75 ..
76 .c a bulleted paragraph
77 .de Topic
78 .  TP 2m
79 .  nop \[bu]
80 ..
81 .de ShellCommand
82 .  br
83 .  IR "shell>" "\h'1m'\f[CB]\$*\f[]\/"
84 ..
85 .ec
86 .\" End of macro definitions
87 .
88 .c ----------------- Semantical definitions
89 .
90 .nr @maxcolor 65536
91 .ds @backslash \[rs]\"
92 .ds @linebreak \f[R]\[la]line_break\[ra]\f[]\"
93 .
94 .\" Begin of macro definitions
95 .eo
96 .
97 .c format: .unit <letter> <punctuation>
98 .de unit
99 .  BR \$@
100 ..
101 .c argument in italic with punctuation
102 .de argument
103 .  if (\n[.$] == 0) \
104 .    return
105 .  IR \$@
106 ..
107 .c comma separated list of indexed variables
108 .de list1..n
109 .  ds @arg1 \$1\"
110 .  nop \c
111 .  ie t \
112 .    nop $\*[@arg1] sub 1$, $\*[@arg1] sub 2$, .\|.\|., $\*[@arg1] sub n$ \c
113 .  el \{\
114 .    IR \*[@arg1]1 ,
115 .    IR \*[@arg1]2 ,
116 .    nop \&...,
117 .    I \*[@arg1]n
118 .  \}
119 .  rm @arg1
120 ..
121 .de offset
122 .  if (\n[.$] < 2) \
123 .    ab `.offset' needs at least 2 arguments
124 .  ds @arg1 \$1\"
125 .  ds @arg2 \$2\"
126 .  shift 2
127 .  nop (\f[I]\,\*[@arg1]\/\f[],\ \f[I]\,\*[@arg2]\/\f[])\$*
128 .  rm @arg1
129 .  rm @arg2
130 ..
131 .de indexed_offset
132 .  if (\n[.$] < 4) \
133 .    ab `.indexed_offset' needs at least 4 arguments
134 .  ds @arg1 \$1\"
135 .  ds @index1 \$2\"
136 .  ds @arg2 \$3\"
137 .  ds @index2 \$4\"
138 .  shift 4
139 .  ie t \{\
140 .    ie \B'\*[@index1]' \{\
141 .      nop ($\*[@arg1] sub roman \*[@index1]$,\ \c
142 .    \}
143 .    el \{\
144 .      nop ($\*[@arg1] sub \*[@index1]$,\ \c
145 .    \}
146 .    ie \B'\*[@index2]' \{\
147 .      nop $\*[@arg2] sub roman \*[@index2]$)\$* \c
148 .    \}
149 .    el \{\
150 .      nop $\*[@arg2] sub \*[@index2]$)\$* \c
151 .    \}
152 .  \}
153 .  el \{\
154 .    nop (\f[I]\*[@arg1]\*[@index1]\f[],\ \c
155 .    nop \f[I]\*[@arg2]\*[@index2]\f[])\$* \c
156 .  \}
157 .  rm @arg1
158 .  rm @arg2
159 .  rm @index1
160 .  rm @index2
161 ..
162 .c format: .command <name> "<arguments>" <punctuation>
163 .de command
164 .  ds @arg1 \$1\"
165 .  ds @arg2 \$2\"
166 .  shift 2
167 .  IP "\f[B]\*[@arg1]\f[]\ \f[I]\,\*[@arg2]\/\f[]\$*"
168 .  rm @arg1
169 .  rm @arg2
170 ..
171 .c format: .command+ <name> "<arguments>" <punctuation>
172 .c continue previous .command heading
173 .de command+
174 .  ds @arg1 \$1\"
175 .  ds @arg2 \$2\"
176 .  shift 2
177 .  TP+
178 .  Text "\f[B]\*[@arg1]\f[]\ \f[I]\,\*[@arg2]\/\f[]\$*"
179 .  rm @arg1
180 .  rm @arg2
181 ..
182 .c format: .D-command <subcommand> "<arguments>"
183 .de D-command
184 .  ds @sub \$1\"
185 .  shift 1
186 .  IP "\f[B]D\*[@sub]\f[]\ \f[I]\,\$*\/\f[]\|\*[@linebreak]"
187 .  rm @sub
188 ..
189 .c format: .D-command+ <subcommand> "<arguments>"
190 .c continue previous .D-command heading
191 .de D-command+
192 .  ds @sub \$1\"
193 .  shift 1
194 .  TP+
195 .  Text "\f[B]D\*[@sub]\f[]\ \f[I]\,\$*\/\f[]\*[@linebreak]"
196 .  rm @sub
197 ..
198 .de Da-command
199 .  shift 1
200 .  ie t \
201 .    ds @args $h sub 1$\~$v sub 1$ $h sub 2$\~$v sub 2$\"
202 .  el \
203 .    ds @args \f[I]h1\~v1 h2\~v2\f[]\"
204 .  IP "\f[B]Da\f[]\ \*[@args]\|\*[@linebreak]"
205 .  rm @args
206 ..
207 .c graphics command .D with a variable number of arguments
208 .c format: .D-multiarg <subcommand>
209 .de D-multiarg
210 .  ds @sub \$1\"
211 .  shift 1
212 .  ie t \{\
213 .    ds @args "$h sub 1$\~$v sub 1$ $h sub 2$\~$v sub 2$ .\|.\|. \"
214 .    as @args "$h sub n$\~$v sub n$\"
215 .  \}
216 .  el \
217 .    ds @args \f[I]h1\~v1 h2\~v2\f[] ... \f[I]\,hn\~vn\f[]\"
218 .  IP "\f[B]D\*[@sub]\f[]\ \*[@args]\|\*[@linebreak]"
219 .  rm @args
220 .  rm @sub
221 ..
222 .c format: .x-command <subname> "<arguments>"
223 .de x-command
224 .  ds @sub \$1\"
225 .  shift 1
226 .  ds @args
227 .  if (\n[.$] > 0) \
228 .    ds @args \ \f[I]\,\$*\/\f[]\"
229 .  IP "\f[B]x\*[@sub]\f[]\*[@args]\f[]\|\*[@linebreak]"
230 .  rm @sub
231 .  rm @args
232 ..
233 .de xsub
234 .  RI "(" "\$1" " control command)"
235 .  br
236 ..
237 .ec
238 .\" End of macro definitions 
239 .
240 .
241 .\" --------------------------------------------------------------------
242 .\" Title
243 .\" --------------------------------------------------------------------
244 .
245 .TH GROFF_OUT @MAN5EXT@ "@MDATE@" "Groff Version @VERSION@"
246 .
247 .SH NAME
248 groff_out \- groff intermediate output format
249 .
250 .
251 .\" --------------------------------------------------------------------
252 .SH DESCRIPTION
253 .\" --------------------------------------------------------------------
254 .
255 This manual page describes the intermediate output format of the GNU
256 .BR roff (@MAN7EXT@)
257 text processing system.
258 .
259 This output is produced by a run of the GNU
260 .BR troff (@MAN1EXT@)
261 program before it is fed into a device postprocessor program.
262 .
263 .P
264 As the GNU roff processor
265 .BR groff (@MAN1EXT@)
266 is a wrapper program around troff that automatically calls a
267 postprocessor, this output does not show up normally.
268 .
269 This is why it is called
270 .I intermediate
271 within the
272 .I groff
273 .IR system .
274 .
275 The
276 .B groff
277 program provides the option
278 .B -Z
279 to inhibit postprocessing, such that the produced intermediate output
280 is sent to standard output just like calling
281 .B troff
282 manually.
283 .
284 .P
285 In this document, the term
286 .I troff output
287 describes what is output by the GNU troff program, while
288 .I intermediate output
289 refers to the language that is accepted by the parser that prepares
290 this output for the postprocessors.
291 .
292 This parser is smarter on whitespace and implements obsolete elements
293 for compatibility, otherwise both formats are the same.
294 .
295 The pre-groff roff versions are denoted as
296 .I classical
297 .IR troff .
298 .
299 .P
300 The main purpose of the intermediate output concept is to facilitate
301 the development of postprocessors by providing a common programming
302 interface for all devices.
303 .
304 It has a language of its own that is completely different from the
305 .BR groff (@MAN7EXT@)
306 language.
307 .
308 While the
309 .I groff
310 language is a high-level programming language for text processing, the
311 intermediate output language is a kind of low-level assembler language
312 by specifying all positions on the page for writing and drawing.
313 .
314 .P
315 The intermediate output produced by
316 .I groff
317 is fairly readable, while
318 .I classical troff
319 output was hard to understand because of strange habits that are
320 still supported, but not used any longer by
321 .I GNU
322 .IR troff .
323 .
324 .
325 .\" --------------------------------------------------------------------
326 .SH "LANGUAGE CONCEPTS"
327 .\" --------------------------------------------------------------------
328 .
329 During the run of
330 .BR troff , 
331 the roff input is cracked down to the information on what has to be
332 printed at what position on the intended device.
333 .
334 So the language of the intermediate output format can be quite small.
335 .
336 Its only elements are commands with or without arguments.
337 .
338 In this document, the term "command" always refers to the intermediate
339 output language, never to the roff language used for document
340 formatting.
341 .
342 There are commands for positioning and text writing, for drawing, and
343 for device controlling.
344 .
345 .
346 .\" --------------------------------------------------------------------
347 .SS "Separation"
348 .\" --------------------------------------------------------------------
349 .
350 .I Classical troff output
351 had strange requirements on whitespace.
352 .
353 The
354 .I groff
355 output parser, however, is smart about whitespace by making it
356 maximally optional.
357 .
358 The whitespace characters, i.e.\& the
359 .IR tab ,
360 .IR space ,
361 and
362 .I newline
363 characters, always have a syntactical meaning.
364 .
365 They are never printable because spacing within the output is always
366 done by positioning commands.
367 .
368 .P
369 Any sequence of
370 .I space
371 or
372 .I tab
373 characters is treated as a single
374 .B syntactical
375 .BR space .
376 .
377 It separates commands and arguments, but is only required when there
378 would occur a clashing between the command code and the arguments
379 without the space.
380 .
381 Most often, this happens when variable length command names,
382 arguments, argument lists, or command clusters meet.
383 .
384 Commands and arguments with a known, fixed length need not be
385 separated by syntactical space.
386 .
387 .P
388 A line break is a syntactical element, too.
389 .
390 Every command argument can be followed by whitespace, a comment, or a
391 newline character.
392 .
393 Thus a
394 .B syntactical line break
395 is defined to consist of optional syntactical space that is optionally
396 followed by a comment, and a newline character.
397 .
398 .P
399 The normal commands, those for positioning and text, consist of a
400 single letter taking a fixed number of arguments.
401 .
402 For historical reasons, the parser allows to stack such commands on
403 the same line, but fortunately, in groff intermediate output, every
404 command with at least one argument is followed by a line break, thus
405 providing excellent readability.
406 .
407 .P
408 The other commands \[em] those for drawing and device controlling \[em]
409 have a more complicated structure; some recognize long command names,
410 and some take a variable number of arguments.
411 .
412 So all
413 .B D
414 and
415 .B x
416 commands were designed to request a
417 .I syntactical line break
418 after their last argument.
419 .
420 Only one command,
421 .RB ` x\ X '
422 has an argument that can stretch over several lines, all other
423 commands must have all of their arguments on the same line as the
424 command, i.e.\& the arguments may not be splitted by a line break.
425 .
426 .P
427 Empty lines, i.e.\& lines containing only space and/or a comment, can
428 occur everywhere.
429 .
430 They are just ignored.
431 .
432 .
433 .\" --------------------------------------------------------------------
434 .SS "Argument Units"
435 .\" --------------------------------------------------------------------
436 .
437 Some commands take integer arguments that are assumed to represent
438 values in a measurement unit, but the letter for the corresponding
439 .I scale indicator
440 is not written with the output command arguments; see
441 .BR groff (@MAN7EXT@)
442 and the groff info file for more on this topic.
443 .
444 Most commands assume the scale indicator\~\c
445 .unit u ,
446 the basic unit of the device, some use\~\c
447 .unit z , 
448 the
449 .I scaled point unit
450 of the device, while others, such as the color commands expect plain
451 integers.
452 .
453 Note that these scale indicators are relative to the chosen device.
454 .
455 They are defined by the parameters specified in the device's
456 .I DESC
457 file; see
458 .BR groff_font (@MAN5EXT@).
459 .
460 .P
461 Note that single characters can have the eighth bit set, as can the
462 names of fonts and special characters.
463 .
464 The names of characters and fonts can be of arbitrary length.
465 .
466 A character that is to be printed will always be in the current font.
467 .
468 .P
469 A string argument is always terminated by the next whitespace
470 character (space, tab, or newline); an embedded
471 .B #
472 character is regarded as part of the argument, not as the beginning of
473 a comment command.
474 .
475 An integer argument is already terminated by the next non-digit
476 character, which then is regarded as the first character of the next
477 argument or command.
478 .
479 .
480 .\" --------------------------------------------------------------------
481 .SS "Document Parts"
482 .\" --------------------------------------------------------------------
483 A correct intermediate output document consists of two parts, the
484 prologue and the body.
485 .
486 .P
487 The task of the
488 .I prologue
489 is to set the general device parameters using three exactly specified
490 commands.
491 .
492 The
493 .I groff prologue
494 is guaranteed to consist of the following three lines (in that order):
495 .RS
496 .P
497 .B x\ T
498 .I device
499 .br
500 .B x\ res
501 .I n\ h\ v
502 .br
503 .B x init
504 .RE
505 .P
506 with the arguments set as outlined in the section
507 .BR "Device Control Commands" .
508 .
509 But the parser for the intermediate output format is able to swallow
510 additional whitespace and comments as well.
511 .
512 .P
513 The
514 .I body
515 is the main section for processing the document data.
516 .
517 Syntactically, it is a sequence of any commands different from the
518 ones used in the prologue.
519 .
520 Processing is terminated as soon as the first
521 .B x\ stop
522 command is encountered; the last line of any groff intermediate output
523 always contains such a command.
524 .
525 .P
526 Semantically, the body is page oriented.
527 .
528 A new page is started by a
529 .BR p \~command.
530 .
531 Positioning, writing, and drawing commands are always done within the
532 current page, so they cannot occur before the first
533 .BR p \~command.
534 .
535 Absolute positioning (by the
536 .B H
537 and
538 .BR V \~commands)
539 is done relative to the current page, all other positioning
540 is done relative to the current location within this page.
541 .
542 .
543 .\" --------------------------------------------------------------------
544 .SH "COMMAND REFERENCE"
545 .\" --------------------------------------------------------------------
546 .
547 This section describes all intermediate output commands, the classical
548 commands as well as the
549 .I groff
550 extensions.
551 .
552 .
553 .\" --------------------------------------------------------------------
554 .SS "Comment Command"
555 .\" --------------------------------------------------------------------
556 .
557 .TP
558 .BI # anything \[la]end_of_line\[ra]
559 A comment.
560 .
561 Ignore any characters from the
562 .BR # \~\c
563 character up to the next newline character.
564 .
565 .P
566 This command is the only possibility for commenting in the intermediate
567 output.
568 .
569 Each comment can be preceded by arbitrary
570 .I syntactical
571 .IR space ;
572 every command can be terminated by a comment.
573 .
574 .
575 .\" --------------------------------------------------------------------
576 .SS "Simple Commands"
577 .\" --------------------------------------------------------------------
578 .
579 The commands in this subsection have a command code consisting of a
580 single character, taking a fixed number of arguments.
581 .
582 Most of them are commands for positioning and text writing.
583 .
584 These commands are smart about whitespace.
585 .
586 Optionally,
587 .I syntactical space
588 can be inserted before, after, and between the command letter and its
589 arguments.
590 .
591 All of these commands are stackable, i.e., they can be preceded by
592 other simple commands or followed by arbitrary other commands on the
593 same line.
594 .
595 A separating syntactical space is only necessary when two integer
596 arguments would clash or if the preceding argument ends with a string
597 argument.
598 .
599 .
600 .if (\n[@USE_ENV_STACK] == 1) \{\
601 .command {
602 Open a new environment by copying the actual device configuration data
603 to the environment stack.
604 .
605 The current environment is setup by the device specification and
606 manipulated by the setting commands.
607 .
608 .
609 .command }
610 Close the actual environment (opened by a preceding
611 .BR { \~command)
612 and restore the previous environment from the environment
613 stack as the actual device configuration data.
614 .
615 \}              \" endif @USE_ENV_STACK
616 .
617 .
618 .command C xxx \[la]white_space\[ra]
619 Print a special groff character named
620 .argument xxx .
621 .
622 The trailing syntactical space or line break is necessary to allow
623 character names of arbitrary length.
624 .
625 The character is printed at the current print position;
626 the character's size is read from the font file.
627 .
628 The print position is not changed.
629 .
630 .
631 .command c c
632 Print character\~\c
633 .argument c
634 at the current print position;
635 the character's size is read from the font file.
636 .
637 The print position is not changed.
638 .
639 .
640 .command f n
641 Set font to font number\~\c
642 .argument n
643 (a non-negative integer).
644 .
645 .
646 .command H n
647 Move right to the absolute vertical position\~\c
648 .argument n
649 (a non-negative integer in basic units\~\c
650 .unit u )
651 relative to left edge of current page.
652 .
653 .
654 .command h n
655 Move
656 .argument n
657 (a non-negative integer) basic units\~\c
658 .unit u
659 horizontally to the right.
660 .
661 .I [54]
662 allows negative values for
663 .I n
664 also, but
665 .I groff
666 doesn't use this.
667 .
668 .
669 .command m "color_scheme \f[R][\f[]component .\|.\|.\f[R]]\f[]"
670 Set the color for text (glyphs), line drawing, and the outline of
671 graphic objects using different color schemes; the analoguous command
672 for the filling color of graphic objects is
673 .BR DF .
674 .
675 The color components are specified as integer arguments between 0 and
676 \n[@maxcolor].
677 .
678 The number of color components and their meaning vary for the
679 different color schemes.
680 .
681 These commands are generated by the groff escape sequence
682 .BR \*[@backslash]m .
683 .
684 No position changing.
685 .
686 These commands are a groff extension.
687 .
688 .
689 .RS
690 .
691 .command mc "cyan magenta yellow"
692 Set color using the CMY color scheme, having the 3\~color components
693 cyan, magenta, and yellow.
694 .
695 .
696 .command md
697 Set color to the default color value
698 (black in most cases).
699 .
700 No component arguments.
701 .
702 .
703 .command mg "gray"
704 Set color to the shade of gray given by the argument, an integer
705 between 0 (black) and \n[@maxcolor] (white).
706 .
707 .
708 .command mk "cyan magenta yellow black"
709 Set color using the CMYK color scheme, having the 4\~color components
710 cyan, magenta, yellow, and black.
711 .
712 .command mr "red green blue"
713 Set color using the RGB color scheme, having the 3\~color components
714 red, green, and blue.
715 .
716 .RE
717 .
718 .
719 .command N n
720 Print character with index\~\c
721 .argument n
722 (an integer, normally non-negative) of the current font.
723 .
724 The print position is not changed.
725 .
726 If
727 .B \-T\~html
728 is used, negative values are emitted also to indicate an unbreakable space
729 with given width.
730 .
731 For example,
732 .B N\~-193
733 represents an unbreakable space which has a width of 193u.
734 .
735 This command is a groff extension.
736 .
737 .
738 .command n b\ a
739 Inform the device about a line break, but no positioning is done by
740 this command.
741 .
742 In classical troff, the integer arguments
743 .argument b
744 and\~\c
745 .argument a
746 informed about the space before and after the current line to
747 make the intermediate output more human readable without performing
748 any action.
749 .
750 In groff, they are just ignored, but they must be provided for
751 compatibility reasons.
752 .
753 .
754 .command p n
755 Begin a new page in the outprint.
756 .
757 The page number is set to\~\c
758 .argument n .
759 .
760 This page is completely independent of pages formerly processed even
761 if those have the same page number.
762 .
763 The vertical position on the outprint is automatically set to\~0.
764 .
765 All positioning, writing, and drawing is always done relative to a
766 page, so a
767 .BR p \~command
768 must be issued before any of these commands.
769 .
770 .
771 .command s n
772 Set point size to
773 .argument n
774 scaled points
775 (this is unit\~\c
776 .unit z
777 in GNU
778 .BR troff ).
779 .
780 Classical troff used the unit
781 .I points
782 (\c
783 .unit p )
784 instead; see section
785 .BR COMPATIBILITY .
786 .
787 .
788 .command t xxx \[la]white_space\[ra]
789 .command+ t "xxx dummy_arg" \[la]white_space\[ra]
790 Print a word, i.e.\& a sequence of characters
791 .argument xxx
792 terminated by a space character or a line break; an optional second
793 integer argument is ignored (this allows the formatter to generate
794 an even number of arguments).
795 .
796 The first character should be printed at the current position, the
797 current horizontal position should then be increased by the width of
798 the first character, and so on for each character.
799 .
800 The widths of the characters are read from the font file, scaled for the
801 current point size, and rounded to a multiple of the horizontal
802 resolution.
803 .
804 Special characters cannot be printed using this command (use the
805 .B C
806 command for named characters).
807 .
808 This command is a groff extension; it is only used for devices whose
809 .I DESC
810 file contains the
811 .B tcommand
812 keyword; see
813 .BR groff_font (@MAN5EXT@).
814 .
815 .
816 .command u "n xxx" \[la]white_space\[ra]
817 Print word with track kerning.
818 .
819 This is the same as the
820 .B t
821 command except that after printing each character, the current
822 horizontal position is increased by the sum of the width of that
823 character and\~\c
824 .argument n
825 (an integer in
826 basic units\~\c
827 .unit u ).
828 This command is a groff extension; it is only used for devices whose
829 .I DESC
830 file contains the
831 .B tcommand
832 keyword; see
833 .BR groff_font (@MAN5EXT@).
834 .
835 .
836 .command V n
837 Move down to the absolute vertical position\~\c
838 .argument n
839 (a non-negative integer in basic units\~\c
840 .unit u )
841 relative to upper edge of current page.
842 .
843 .
844 .command v n
845 Move
846 .argument n
847 basic units\~\c
848 .unit u
849 down
850 .RI ( n
851 is a non-negative integer).
852 .
853 .I [54]
854 allows negative values for
855 .I n
856 also, but
857 .I groff
858 doesn't use this.
859 .
860 .
861 .command w
862 Informs about a paddable whitespace to increase readability.
863 .
864 The spacing itself must be performed explicitly by a move command.
865 .
866 .
867 .\" --------------------------------------------------------------------
868 .SS "Graphics Commands"
869 .\" --------------------------------------------------------------------
870 .
871 Each graphics or drawing command in the intermediate output starts
872 with the letter\~\c
873 .B D
874 followed by one or two characters that specify a subcommand; this
875 is followed by a fixed or variable number of integer arguments that
876 are separated by a single space character.
877 .
878 A
879 .BR D \ command
880 may not be followed by another command on the same line
881 (apart from a comment), so each
882 .BR D \ command
883 is terminated by a syntactical line break.
884 .
885 .P
886 .I troff
887 output follows the classical spacing rules (no space between command
888 and subcommand, all arguments are preceded by a single space
889 character), but the parser allows optional space between the command
890 letters and makes the space before the first argument optional.
891 .
892 As usual, each space can be any sequence of tab and space characters.
893 .
894 .P
895 Some graphics commands can take a variable number of arguments.
896 .
897 In this case, they are integers representing a size measured in basic
898 units\~\c
899 .unit u .
900 .
901 The arguments called
902 .list1..n h
903 stand for horizontal distances where positive means right, negative
904 left.
905 .
906 The arguments called
907 .list1..n v
908 stand for vertical distances where positive means down, negative up.
909 .
910 All these distances are offsets relative to the current location.
911 .
912 .P
913 Unless indicated otherwise, each graphics command directly corresponds
914 to a similar
915 .I groff
916 .B \*[@backslash]D
917 escape sequence; see
918 .BR groff (@MAN7EXT@).
919 .
920 .P
921 Unknown D\~commands are assumed to be device-specific.
922 .
923 Its arguments are parsed as strings; the whole information is then
924 sent to the postprocessor.
925 .
926 .P
927 In the following command reference, the syntax element
928 .I \[la]line_break\[ra]
929 means a
930 .I syntactical line break
931 as defined in section
932 .BR Separation .
933 .
934 .
935 .D-multiarg ~
936 Draw B-spline from current position to offset
937 .indexed_offset h 1 v 1 ,
938 then to offset
939 .indexed_offset h 2 v 2
940 if given, etc.\& up to
941 .indexed_offset h n v n .
942 This command takes a variable number of argument pairs;
943 the current position is moved to the terminal point of the drawn curve.
944 .
945 .
946 .Da-command
947 Draw arc from current position to
948 .indexed_offset h 1 v 1 \|+\|\c
949 .indexed_offset h 2 v 2
950 with center at
951 .indexed_offset h 1 v 1 ;
952 then move the current position to the final point of the arc.
953 .
954 .
955 .D-command C d
956 .D-command+ C d dummy_arg
957 Draw a solid circle using the current fill color with diameter\~\c
958 .argument d
959 (integer in basic units\~\c
960 .unit u )
961 with leftmost point at the current position; then move the current
962 position to the rightmost point of the circle.
963 .
964 An optional second integer argument is ignored (this allows to the
965 formatter to generate an even number of arguments).
966 .
967 This command is a groff extension.
968 .
969 .
970 .D-command c d
971 Draw circle line with diameter\~\c
972 .argument d
973 (integer in basic units\~\c
974 .unit u )
975 with leftmost point at the current position; then move the current
976 position to the rightmost point of the circle.
977 .
978 .
979 .D-command E "h v"
980 Draw a solid ellipse in the current fill color with a horizontal
981 diameter of\~\c
982 .argument h
983 and a vertical diameter of\~\c
984 .argument v
985 (both integers in basic units\~\c
986 .unit u )
987 with the leftmost point at the current position; then move to the
988 rightmost point of the ellipse.
989 .
990 This command is a groff extension.
991 .
992 .
993 .D-command e "h v"
994 Draw an outlined ellipse with a horizontal diameter of\~\c
995 .argument h
996 and a vertical diameter of\~\c
997 .argument v
998 (both integers in basic units\~\c
999 .unit u )
1000 with the leftmost point at current position; then move to the
1001 rightmost point of the ellipse.
1002 .
1003 .
1004 .D-command F "color_scheme \f[R][\f[]component .\|.\|.\f[R]]\f[]"
1005 Set fill color for solid drawing objects using different color
1006 schemes; the analoguous command for setting the color of text, line
1007 graphics, and the outline of graphic objects is
1008 .BR m .
1009 .
1010 The color components are specified as integer arguments between 0 and
1011 \n[@maxcolor].
1012 .
1013 The number of color components and their meaning vary for the
1014 different color schemes.
1015 .
1016 These commands are generated by the groff escape sequences
1017 .B \*[@backslash]D'F\ .\|.\|.'
1018 and
1019 .B \*[@backslash]M
1020 (with no other corresponding graphics commands).
1021 .
1022 No position changing.
1023 .
1024 This command is a groff extension.
1025 .
1026 .
1027 .RS
1028 .
1029 .D-command Fc "cyan magenta yellow"
1030 Set fill color for solid drawing objects using the CMY color scheme,
1031 having the 3\~color components cyan, magenta, and yellow.
1032 .
1033 .
1034 .D-command Fd
1035 Set fill color for solid drawing objects to the default fill color value
1036 (black in most cases).
1037 .
1038 No component arguments.
1039 .
1040 .
1041 .D-command Fg "gray"
1042 Set fill color for solid drawing objects to the shade of gray given by
1043 the argument, an integer between 0 (black) and \n[@maxcolor] (white).
1044 .
1045 .
1046 .D-command Fk "cyan magenta yellow black"
1047 Set fill color for solid drawing objects using the CMYK color scheme,
1048 having the 4\~color components cyan, magenta, yellow, and black.
1049 .
1050 .D-command Fr "red green blue"
1051 Set fill color for solid drawing objects using the RGB color scheme,
1052 having the 3\~color components red, green, and blue.
1053 .
1054 .RE
1055 .
1056 .
1057 .D-command f n
1058 The argument
1059 .argument n
1060 must be an integer in the range -32767 to 32767.
1061 .
1062 .RS
1063 .TP
1064 .RI "0 \[<=] " n " \[<=] 1000"
1065 Set the color for filling solid drawing objects to a shade of gray,
1066 where 0 corresponds to solid white, 1000 (the default) to solid black,
1067 and values in between to intermediate shades of gray; this is
1068 obsoleted by command
1069 .BR DFg .
1070 .
1071 .TP
1072 .IR n " < 0 or " n " > 1000"
1073 Set the filling color to the color that is currently being used for
1074 the text and the outline, see command
1075 .BR m .
1076 For example, the command sequence
1077 .
1078 .nf
1079 .ft CB
1080 .RS
1081 .RS
1082 mg 0 0 \n[@maxcolor]
1083 Df -1
1084 .RE
1085 .ft
1086 .fi
1087 .
1088 sets all colors to blue.
1089 .RE
1090 .
1091 .P
1092 No position changing.
1093 .
1094 This command is a groff extension.
1095 .
1096 .RE
1097 .
1098 .
1099 .D-command l "h v"
1100 Draw line from current position to offset
1101 .offset h v
1102 (integers in basic units\~\c
1103 .unit u );
1104 then set current position to the end of the drawn line.
1105 .
1106 .
1107 .D-multiarg p
1108 Draw a polygon line from current position to offset
1109 .offset h1 v1 ,
1110 from there to offset
1111 .offset h2 v2 ,
1112 etc.\& up to offset
1113 .offset hn vn ,
1114 and from there back to the starting position.
1115 .
1116 .ie (\n[@STUPID_DRAWING_POSITIONING] == 1) \{\
1117 For historical reasons, the position is changed by adding the sum of
1118 all arguments with odd index to the actual horizontal position and the
1119 even ones to the vertical position.
1120 .
1121 Although this doesn't make sense it is kept for compatibility.
1122 .
1123 \}
1124 .el \{\
1125 As the polygon is closed, the end of drawing is the starting point, so
1126 the position doesn't change.
1127 \}
1128 .
1129 This command is a groff extension.
1130 .
1131 .
1132 .D-multiarg P
1133 The same macro as the corresponding
1134 .B Dp
1135 command with the same arguments, but draws a solid polygon in the
1136 current fill color rather than an outlined polygon.
1137 .
1138 .ie (\n[@STUPID_DRAWING_POSITIONING] == 1) \{\
1139 The position is changed in the same way as with
1140 .BR Dp .
1141 \}
1142 .el \
1143 No position changing.
1144 .
1145 This command is a groff extension.
1146 .
1147 .
1148 .D-command t n
1149 Set the current line thickness to\~\c
1150 .argument n
1151 (an integer in basic units\~\c
1152 .unit u )
1153 if
1154 .argument n >0;
1155 if
1156 .argument n =0
1157 select the smallest available line thickness; if
1158 .argument n <0
1159 set the line thickness proportional to the point size (this is the
1160 default before the first
1161 .B Dt
1162 command was specified).
1163 .
1164 .ie (\n[@STUPID_DRAWING_POSITIONING] == 1) \{\
1165 For historical reasons, the horizontal position is changed by adding
1166 the argument to the actual horizontal position, while the vertical
1167 position is not changed.
1168 .
1169 Although this doesn't make sense it is kept for compatibility.
1170 .
1171 \}
1172 .el \
1173 No position changing.
1174 .
1175 This command is a groff extension.
1176 .
1177 .
1178 .\" --------------------------------------------------------------------
1179 .SS "Device Control Commands"
1180 .\" --------------------------------------------------------------------
1181 .
1182 Each device control command starts with the letter
1183 .B x
1184 followed by a space character (optional or arbitrary space/\:tab in
1185 groff) and a subcommand letter or word; each argument (if any) must be
1186 preceded by a syntactical space.
1187 .
1188 All
1189 .B x
1190 commands are terminated by a
1191 .IR "syntactical line break" ;
1192 no device control command can be followed by another command on the same
1193 line (except a comment).
1194 .
1195 .P
1196 The subcommand is basically a single letter, but to increase
1197 readability, it can be written as a word, i.e.\& an arbitrary sequence
1198 of characters terminated by the next tab, space, or newline character.
1199 .
1200 All characters of the subcommand word but the first are simply ignored.
1201 .
1202 For example,
1203 .I troff
1204 outputs the initialization command
1205 .B x\ i
1206 as
1207 .B x\ init
1208 and the resolution command
1209 .B x\ r
1210 as
1211 .BR "x\ res" .
1212 .
1213 But writings like
1214 .B x\ i_like_groff
1215 and
1216 .B x\ roff_is_groff
1217 resp.\& are accepted as well to mean the same commands.
1218 .
1219 .P
1220 In the following, the syntax element
1221 .I \[la]line_break\[ra]
1222 means a
1223 .I syntactical line break
1224 as defined in section
1225 .BR Separation .
1226 .
1227 .x-command F name
1228 .xsub Filename
1229 Use
1230 .argument name
1231 as the intended name for the current file in error reports.
1232 .
1233 This is useful for remembering the original file name when groff uses
1234 an internal piping mechanism.
1235 .
1236 The input file is not changed by this command.
1237 .
1238 This command is a groff extension.
1239 .
1240 .
1241 .x-command f "n\ s"
1242 .xsub font
1243 Mount font position\~\c
1244 .argument n
1245 (a non-negative integer) with font named\~\c
1246 .argument s
1247 (a text word),
1248 cf.
1249 .BR groff_font (@MAN5EXT@).
1250 .
1251 .
1252 .x-command H n
1253 .xsub Height
1254 Set character height to\~\c
1255 .argument n
1256 (a positive integer in scaled points\~\c
1257 .unit z ).
1258 .
1259 Classical troff used the unit
1260 points (\c
1261 .unit p )
1262 instead; see section
1263 .BR COMPATIBILITY .
1264 .
1265 .
1266 .x-command i
1267 .xsub init
1268 Initialize device.
1269 .
1270 This is the third command of the prologue.
1271 .
1272 .
1273 .x-command p
1274 .xsub pause
1275 Parsed but ignored.
1276 .
1277 The classical documentation reads
1278 .I pause device, can be
1279 .IR restarted .
1280 .
1281 .
1282 .x-command r "n\ h\ v"
1283 .xsub resolution
1284 Resolution is\~\c
1285 .argument n ,
1286 while
1287 .argument h
1288 is the minimal horizontal motion, and
1289 .argument v
1290 the minimal vertical motion possible with this device; all arguments
1291 are positive integers in basic units\~\c
1292 .unit u
1293 per inch.
1294 .
1295 This is the second command of the prologue.
1296 .
1297 .
1298 .x-command S n
1299 .xsub Slant
1300 Set slant to\~\c
1301 .argument n
1302 degrees (an integer in basic units\~\c
1303 .unit u ).
1304 .
1305 .
1306 .x-command s
1307 .xsub stop
1308 Terminates the processing of the current file; issued as the last
1309 command of any intermediate troff output.
1310 .
1311 .
1312 .x-command t
1313 .xsub trailer
1314 Generate trailer information, if any.
1315 .
1316 In
1317 .IR groff ,
1318 this is actually just ignored.
1319 .
1320 .
1321 .x-command T xxx
1322 .xsub Typesetter
1323 Set name of device to word
1324 .argument xxx ,
1325 a sequence of characters ended by the next whitespace character.
1326 .
1327 The possible device names coincide with those from the groff
1328 .B -T
1329 option.
1330 .
1331 This is the first command of the prologue.
1332 .
1333 .
1334 .x-command u n
1335 .xsub underline
1336 Configure underlining of spaces.
1337 .
1338 If
1339 .argument n
1340 is\~1, start underlining of spaces;
1341 if
1342 .argument n
1343 is\~0, stop underlining of spaces.
1344 .
1345 This is needed for the
1346 .B cu
1347 request in
1348 .I nroff
1349 mode and is ignored otherwise.
1350 .
1351 This command is a groff extension.
1352 .
1353 .
1354 .x-command X anything
1355 .xsub X-escape
1356 Send string
1357 .argument anything
1358 uninterpreted to the device.
1359 .
1360 If the line following this command starts with a
1361 .B +
1362 character this line is interpreted as a continuation line in the
1363 following sense.
1364 .
1365 The
1366 .B +
1367 is ignored, but a newline character is sent instead to the device, the
1368 rest of the line is sent uninterpreted.
1369 .
1370 The same applies to all following lines until the first character of a
1371 line is not a
1372 .B +
1373 character.
1374 .
1375 This command is generated by the
1376 .I groff
1377 escape sequence
1378 .BR \*[@backslash]X .
1379 .
1380 The line-continuing feature is a groff extension.
1381 .
1382 .
1383 .\" --------------------------------------------------------------------
1384 .SS "Obsolete Command"
1385 .\" --------------------------------------------------------------------
1386 .
1387 In
1388 .I classical troff
1389 output, the writing of a single character was mostly done by a very
1390 strange command that combined a horizontal move and the printing of a
1391 character.
1392 .
1393 It didn't have a command code, but is represented by a 3-character
1394 argument consisting of exactly 2\~digits and a character.
1395 .
1396 .TP
1397 .argument ddc
1398 Move right
1399 .argument dd
1400 (exactly two decimal digits) basic units\~\c
1401 .unit u ,
1402 then print character\~\c
1403 .argument c .
1404 .
1405 .RS
1406 .P
1407 In groff, arbitrary syntactical space around and within this command
1408 is allowed to be added.
1409 .
1410 Only when a preceding command on the same line ends with an argument
1411 of variable length a separating space is obligatory.
1412 .
1413 In
1414 .I classical
1415 .IR troff ,
1416 large clusters of these and other commands were used, mostly without
1417 spaces; this made such output almost unreadable.
1418 .
1419 .RE
1420 .
1421 .P
1422 For modern high-resolution devices, this command does not make sense
1423 because the width of the characters can become much larger than two
1424 decimal digits.
1425 .
1426 In groff, this is only used for the devices
1427 .BR X75 ,
1428 .BR X75-12 ,
1429 .BR X100 ,
1430 and
1431 .BR X100-12 .
1432 .
1433 For other devices,
1434 the commands
1435 .B t
1436 and\~\c
1437 .B u
1438 provide a better functionality.
1439 .
1440 .
1441 .\" --------------------------------------------------------------------
1442 .SH "POSTPROCESSING"
1443 .\" --------------------------------------------------------------------
1444 .
1445 The
1446 .I roff
1447 postprocessors are programs that have the task to translate the
1448 intermediate output into actions that are sent to a device.
1449 .
1450 A device can be some piece of hardware such as a printer, or a software
1451 file format suitable for graphical or text processing.
1452 .
1453 The
1454 .I groff
1455 system provides powerful means that make the programming of such
1456 postprocessors an easy task.
1457 .P
1458 There is a library function that parses the intermediate output and
1459 sends the information obtained to the device via methods of a class
1460 with a common interface for each device.
1461 .
1462 So a
1463 .I groff
1464 postprocessor must only redefine the methods of this class.
1465 .
1466 For details, see the reference in section
1467 .BR FILES .
1468 .
1469 .
1470 .\" --------------------------------------------------------------------
1471 .SH "EXAMPLES"
1472 .\" --------------------------------------------------------------------
1473 .
1474 This section presents the intermediate output generated from the same
1475 input for three different devices.
1476 .
1477 The input is the sentence
1478 .I hell world
1479 fed into groff on the command line.
1480 .
1481 .Topic
1482 High-resolution device
1483 .I ps
1484 .
1485 .RS
1486 .
1487 .P
1488 .ShellCommand echo "hell world" | groff -Z -T ps
1489 .
1490 .P
1491 .nf
1492 .ft CB
1493 x T ps
1494 x res 72000 1 1
1495 x init
1496 p1
1497 x font 5 TR
1498 f5
1499 s10000
1500 V12000
1501 H72000
1502 thell
1503 wh2500
1504 tw
1505 H96620
1506 torld
1507 n12000 0
1508 x trailer
1509 V792000
1510 x stop
1511 .ft P
1512 .fi
1513 .RE
1514 .
1515 .P
1516 This output can be fed into the postprocessor
1517 .BR grops (@MAN1EXT@)
1518 to get its representation as a PostScript file.
1519 .
1520 .
1521 .Topic
1522 Low-resolution device
1523 .I latin1
1524 .
1525 .RS
1526 .
1527 .P
1528 This is similar to the high-resolution device except that the
1529 positioning is done at a minor scale.
1530 .
1531 Some comments (lines starting with
1532 .IR # )
1533 were added for clarification; they were not generated by the
1534 formatter.
1535 .
1536 .P
1537 .ShellCommand echo "hell world" | groff -Z -T latin1
1538 .
1539 .P
1540 .nf
1541 .I # prologue
1542 .ft CB
1543 x T latin1
1544 x res 240 24 40
1545 x init
1546 .I # begin a new page
1547 .ft CB
1548 p1
1549 .I # font setup
1550 .ft CB
1551 x font 1 R
1552 f1
1553 s10
1554 .I # initial positioning on the page
1555 .ft CB
1556 V40
1557 H0
1558 .I # write text `hell'
1559 .ft CB
1560 thell
1561 .I # inform about a space, and do it by a horizontal jump
1562 .ft CB
1563 wh24
1564 .I # write text `world'
1565 .ft CB
1566 tworld
1567 .I # announce line break, but do nothing because ...
1568 .ft CB
1569 n40 0
1570 .I # ... the end of the document has been reached
1571 .ft CB
1572 x trailer
1573 V2640
1574 x stop
1575 .ft P
1576 .fi
1577 .RE
1578 .
1579 .P
1580 This output can be fed into the postprocessor
1581 .BR grotty (@MAN1EXT@)
1582 to get a formatted text document.
1583 .
1584 .
1585 .Topic
1586 Classical style output
1587 .
1588 .RS
1589 .
1590 .P
1591 As a computer monitor has a very low resolution compared to modern
1592 printers the intermediate output for the X\~devices can use the
1593 jump-and-write command with its 2-digit displacements.
1594 .
1595 .P
1596 .ShellCommand echo "hell world" | groff -Z -T X100
1597 .
1598 .P
1599 .nf
1600 .ft CB
1601 x T X100
1602 x res 100 1 1
1603 x init
1604 p1
1605 x font 5 TR
1606 f5
1607 s10
1608 V16
1609 H100
1610 .I # write text with old-style jump-and-write command
1611 .ft CB
1612 ch07e07l03lw06w11o07r05l03dh7
1613 n16 0
1614 x trailer
1615 V1100
1616 x stop
1617 .ft P
1618 .fi
1619 .RE
1620 .
1621 .P
1622 This output can be fed into the postprocessor
1623 .BR xditview (1x)
1624 or
1625 .BR gxditview (@MAN1EXT@)
1626 for displaying in\~X.
1627 .
1628 .P
1629 Due to the obsolete jump-and-write command, the text clusters in the
1630 classical output are almost unreadable.
1631 .
1632 .
1633 .\" --------------------------------------------------------------------
1634 .SH "COMPATIBILITY"
1635 .\" --------------------------------------------------------------------
1636 .
1637 The intermediate output language of the 
1638 .I classical troff
1639 was first documented in
1640 .IR [97] .
1641 .
1642 The
1643 .I groff
1644 intermediate output format is compatible with this specification
1645 except for the following features.
1646 .Topic
1647 The classical quasi device independence is not yet implemented.
1648 .
1649 .Topic
1650 The old hardware was very different from what we use today.
1651 .
1652 So the groff devices are also fundamentally different from the ones in
1653 classical troff.
1654 .
1655 For example, the classical PostScript device was called
1656 .I post
1657 and had a resolution of 720 units per inch,
1658 while groff's
1659 .I ps
1660 device has a resolution of 72000 units per inch.
1661 .
1662 Maybe, by implementing some rescaling mechanism similar to the
1663 classical quasi device independence, these could be integrated into
1664 modern groff.
1665 .
1666 .Topic
1667 The B-spline command
1668 .B D~
1669 is correctly handled by the intermediate output parser, but the
1670 drawing routines aren't implemented in some of the postprocessor
1671 programs.
1672 .Topic
1673 The argument of the commands
1674 .B s
1675 and
1676 .B x H
1677 has the implicit unit scaled point\~\c
1678 .unit z
1679 in groff, while classical troff had point (\c
1680 .unit p ).
1681 .
1682 This isn't an incompatibility, but a compatible extension,
1683 for both units coincide for all devices without a
1684 .I sizescale
1685 parameter, including all classical and the groff text devices.
1686 .
1687 The few groff devices with a sizescale parameter either did
1688 not exist, had a different name, or seem to have had a different
1689 resolution.
1690 .
1691 So conflicts with classical devices are very unlikely.
1692 .
1693 .ie (\n[@STUPID_DRAWING_POSITIONING] == 1) \{\
1694 .Topic
1695 The position changing after the commands
1696 .BR Dp ,
1697 .BR DP ,
1698 and
1699 .B Dt
1700 is illogical, but as old versions of groff used this feature it is
1701 kept for compatibility reasons.
1702 .\}             \" @STUPID_DRAWING_POSITIONING
1703 .el \{\
1704 .Topic
1705 Temporarily, there existed some confusion on the positioning after the
1706 .B D
1707 commands that are groff extensions.
1708 .
1709 This has been clarified by establishing the classical rule for all
1710 groff drawing commands:
1711 .
1712 .RS
1713 .P
1714 .I The position after a graphic object has been drawn is at its end;
1715 .I for circles and ellipses, the "end" is at the right side.
1716 .RE
1717 .
1718 .P
1719 From this, the positionings specified for the drawing commands above
1720 follow quite naturally.
1721 .\}             \" @STUPID_DRAWING_POSITIONING
1722 .
1723 .P
1724 The differences between groff and classical troff are documented in
1725 .BR groff_diff (@MAN7EXT@).
1726 .
1727 .
1728 .\" --------------------------------------------------------------------
1729 .SH "FILES"
1730 .\" --------------------------------------------------------------------
1731 .
1732 .TP
1733 .BI @FONTDIR@/dev name /DESC
1734 Device description file for device
1735 .IR name .
1736 .
1737 .TP
1738 .IB \[la]groff_source_dir\[ra] /src/libs/libdriver/input.cpp
1739 Defines the parser and postprocessor for the intermediate output.
1740 .
1741 It is located relative to the top directory of the
1742 .I groff
1743 source tree, e.g.
1744 .IR @GROFFSRCDIR@ .
1745 .
1746 This parser is the definitive specification of the
1747 .I groff
1748 intermediate output format.
1749 .
1750 .
1751 .\" --------------------------------------------------------------------
1752 .SH "SEE ALSO"
1753 .\" --------------------------------------------------------------------
1754 .
1755 A reference like
1756 .BR groff (@MAN7EXT@)
1757 refers to a manual page; here
1758 .I groff
1759 in section\~\c
1760 .I @MAN7EXT@
1761 of the man-page documentation system.
1762 .
1763 To read the example, look up section\~@MAN7EXT@ in your desktop help
1764 system or call from the shell prompt
1765 .
1766 .RS
1767 .P
1768 .ShellCommand man @MAN7EXT@ groff
1769 .RE
1770 .
1771 .P
1772 For more details, see
1773 .BR man (1).
1774 .
1775 .TP
1776 .BR groff (@MAN1EXT@)
1777 option
1778 .B -Z
1779 and further readings on groff.
1780 .
1781 .TP
1782 .BR groff (@MAN7EXT@)
1783 for details of the
1784 .I groff
1785 language such as numerical units and escape sequences.
1786 .
1787 .TP
1788 .BR groff_font (@MAN5EXT@)
1789 for details on the device scaling parameters of the
1790 .B DESC
1791 file.
1792 .
1793 .TP
1794 .BR troff (@MAN1EXT@)
1795 generates the device-independent intermediate output.
1796 .
1797 .TP
1798 .BR roff (@MAN7EXT@)
1799 for historical aspects and the general structure of roff systems.
1800 .
1801 .TP
1802 .BR groff_diff (@MAN7EXT@)
1803 The differences between the intermediate output in groff and classical
1804 troff.
1805 .
1806 .P
1807 .BR \%grodvi (@MAN1EXT@),
1808 .BR \%grohtml (@MAN1EXT@),
1809 .BR \%grolbp (@MAN1EXT@),
1810 .BR \%grolj4 (@MAN1EXT@),
1811 .BR \%grops (@MAN1EXT@),
1812 .BR \%grotty (@MAN1EXT@)
1813 .br
1814 .RS
1815 the groff postprocessor programs.
1816 .RE
1817 .
1818 .P
1819 For a treatment of all aspects of the groff system within a single
1820 document, see the
1821 .I groff info
1822 .IR file .
1823 .
1824 It can be read within the integrated help systems, within
1825 .BR emacs (1)
1826 or from the shell prompt by
1827 .
1828 .RS
1829 .ShellCommand info groff
1830 .RE
1831 .
1832 .P
1833 The
1834 .I classical troff output language
1835 is described in two AT&T Bell Labs CSTR documents available on-line at
1836 .URL http://\:cm.bell-labs.com/\:cm/\:cs/\:cstr.html \
1837      "Bell Labs CSTR site" .
1838 .
1839 .TP
1840 .I [CSTR #97]
1841 .I A Typesetter-independent TROFF
1842 by
1843 .I Brian Kernighan
1844 is the original and most concise documentation on the output language;
1845 see
1846 .URL http://\:cm.bell-labs.com/\:cm/\:cs/\:cstr/\:97.ps.gz CSTR\~#97 .
1847 .
1848 .TP
1849 .I [CSTR\~#54]
1850 The 1992 revision of the
1851 .I Nroff/\:Troff User's Manual
1852 by
1853 .I J.\& F.\& Osanna
1854 and
1855 .I Brian Kernighan
1856 isn't as concise as
1857 .I [CSTR\~#97]
1858 regarding the output language;
1859 see
1860 .URL http://\:cm.bell-labs.com/\:cm/\:cs/\:cstr/\:54.ps.gz CSTR\~#54 .
1861 .
1862 .
1863 .\" --------------------------------------------------------------------
1864 .SH "AUTHORS"
1865 .\" --------------------------------------------------------------------
1866 .
1867 Copyright (C) 1989, 2001, 2002, 2003 Free Software Foundation, Inc.
1868 .P
1869 This document is distributed under the terms of the FDL (GNU Free
1870 Documentation License) version 1.1 or later.
1871 .
1872 You should have received a copy of the FDL with this package; it is also
1873 available on-line at the
1874 .URL http://\:www.gnu.org/\:copyleft/\:fdl.html "GNU copyleft site" .
1875 .
1876 .P
1877 This document is part of
1878 .IR groff ,
1879 the GNU roff distribution.
1880 .
1881 It is based on a former version \- published under the GPL \- that
1882 described only parts of the
1883 .I groff
1884 extensions of the output language.
1885 .
1886 It has been rewritten 2002 by
1887 .MTO bwarken@mayn.de "Bernd Warken"
1888 and is maintained by
1889 .MTO wl@gnu.org "Werner Lemberg" .
1890 .
1891 .\" --------------------------------------------------------------------
1892 .\" Emacs settings
1893 .\" --------------------------------------------------------------------
1894 .\"
1895 .\" Local Variables:
1896 .\" mode: nroff
1897 .\" End: