5 Last update : 12 Oct 2003
7 This file is part of groff, the GNU roff type-setting system.
9 Copyright (C) 1989, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
11 written by James Clark
13 modified by Werner Lemberg <wl@gnu.org>
14 Bernd Warken <bwarken@mayn.de>
16 Permission is granted to copy, distribute and/or modify this document
17 under the terms of the GNU Free Documentation License, Version 1.1 or
18 any later version published by the Free Software Foundation; with the
19 Invariant Sections being this .ig-section and AUTHOR, with no
20 Front-Cover Texts, and with no Back-Cover Texts.
22 A copy of the Free Documentation License is included as a file called
23 FDL in the main directory of the groff source package.
27 .\" --------------------------------------------------------------------
29 .\" --------------------------------------------------------------------
52 .\" Like TP, but if specified indent is more than half
53 .\" the current line-length - indent, use the default indent.
55 .ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP
60 .\" --------------------------------------------------------------------
62 .\" --------------------------------------------------------------------
64 .TH @G@TROFF @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
66 @g@troff \- the troff processor of the groff text formatting system
69 .\" --------------------------------------------------------------------
71 .\" --------------------------------------------------------------------
76 .in +\w'\fB@g@troff 'u
80 .ie \\n(.$-1 .RI "[\ \fB\\$1\fP" "\\$2" "\ ]"
81 .el .RB "[\ " "\\$1" "\ ]"
96 .RI "[\ " files\|.\|.\|. "\ ]"
100 It is possible to have whitespace between a command line option and
104 .\" --------------------------------------------------------------------
106 .\" --------------------------------------------------------------------
108 This manual page describes the GNU version of
110 It is part of the groff document formatting system.
112 It is functionally compatible with UNIX troff, but has many extensions,
114 .BR \%groff_diff (@MAN7EXT@).
115 Usually it should be invoked using the
116 .BR groff (@MAN1EXT@)
117 command which will also run preprocessors and postprocessors in the
118 appropriate order and with the appropriate options.
121 .\" --------------------------------------------------------------------
123 .\" --------------------------------------------------------------------
125 .TP \w'\-dname=s'u+2n
129 approximation of the typeset output.
133 Print a backtrace with each warning or error message.
135 This backtrace should help track down the cause of the error.
137 The line numbers given in the backtrace may not always be correct, for
139 idea of line numbers gets confused by
147 Disable color output (always disabled in compatibility mode).
151 Enable compatibility mode.
164 must be a one letter name.
168 Inhibit all error messages of
170 Note that this doesn't affect messages output to standard error by macro
181 as the default font family.
185 Search in directory (or directory path)
190 is the name of the device) and there for the
194 is scanned before all other font directories.
198 Read the standard input after all the named input files have been
203 This option may be used to specify a directory to search for
204 files (both those on the command line and those named in
207 The current directory is always searched first.
208 This option may be specified more than once;
209 the directories will be searched in the order specified.
210 No directory search is performed for files specified using an absolute path.
216 If it isn't found, try
220 It will be first searched for in directories given with the
222 command line option, then in directories given in the
224 environment variable, then in the current directory (only if in unsafe
225 mode), the home directory, @SYSTEMMACRODIR@, @LOCALMACRODIR@, and
230 Search directory (or directory path)
234 This is scanned before all other macro directories.
238 Number the first page
245 which is a comma-separated list of page ranges;
250 means print every page between
255 means print every page up to
258 means print every page from
261 will exit after printing the last page in the list.
274 must be a one character name;
276 can be any troff numeric expression.
287 Prepare output for device
289 rather than the default
292 .BR groff (@MAN1EXT@)
293 for a more detailed description.
299 This will enable the following requests:
306 For security reasons, these potentially dangerous requests are disabled
309 It will also add the current directory to the macro search path.
313 Print the version number.
319 Available warnings are described in the section
323 For example, to enable all warnings, use
340 Suppress formatted output.
343 .\" --------------------------------------------------------------------
345 .\" --------------------------------------------------------------------
347 The warnings that can be given by
349 are divided into the following categories.
351 The name associated with each warning is used by the
355 options; the number is used by the
359 register; it is always a power of 2 to allow bitwise composition.
366 Bit@Code@Warning@Bit@Code@Warning
369 1@2@number@11@2048@tab
370 2@4@break@12@4096@right-brace
371 3@8@delim@13@8192@missing
372 4@16@el@14@16384@input
373 5@32@scale@15@32768@escape
374 6@64@range@16@65536@space
375 7@128@syntax@17@131072@font
376 8@256@di@18@262144@ig
377 9@512@mac@19@524288@color
381 .nr x \w'\fBright-brace'+1n+\w'00000'u
386 In fill mode, lines which could not be broken so that their length was
387 less than the line length.
389 This is enabled by default.
393 Non-existent characters.
395 This is enabled by default.
399 Color related warnings.
403 Missing or mismatched closing delimiters.
411 without an argument when there is no current diversion.
417 request with no matching
423 Unrecognized escape sequences.
425 When an unrecognized escape sequence is encountered, the escape
426 character is ignored.
432 This is enabled by default.
436 Invalid escapes in text ignored with the
440 These are conditions that are errors when they do not occur in ignored
445 Invalid input characters.
449 Use of undefined strings, macros and diversions.
451 When an undefined string, macro or diversion is used, that string is
452 automatically defined as empty.
454 So, in most cases, at most one warning will be given for each name.
458 Requests that are missing non-optional arguments.
462 Invalid numeric expressions.
464 This is enabled by default.
468 Out of range arguments.
472 Use of undefined number registers.
474 When an undefined number register is used, that register is
475 automatically defined to have a value of\~0.
477 So, in most cases, at most one warning will be given for use of a
481 .BR right-brace "\t4096"
484 where a number was expected.
488 Meaningless scaling indicators.
492 Missing space between a request or macro and its argument.
494 This warning will be given when an undefined name longer than two
495 characters is encountered, and the first two characters of the name
498 The request or macro will not be invoked.
500 When this warning is given, no macro is automatically defined.
502 This is enabled by default.
504 This warning will never occur in compatibility mode.
508 Dubious syntax in numeric expressions.
512 Inappropriate use of a tab character.
513 Either use of a tab character where a number was expected, or use of tab
514 character in an unquoted macro argument.
517 There are also names that can be used to refer to groups of warnings:
526 It is intended that this covers all warnings that are useful with
527 traditional macro packages.
534 .\" --------------------------------------------------------------------
536 .\" --------------------------------------------------------------------
541 A colon separated list of directories in which to search for
544 will scan directories given in the
546 option before these, and in standard directories (current directory if
547 in unsafe mode, home directory,
548 .BR @SYSTEMMACRODIR@ ,
549 .BR @LOCALMACRODIR@ ,
561 A colon separated list of directories in which to search for the
565 will scan directories given in the
567 option before these, and in standard directories
568 .RB ( @LOCALFONTDIR@ ,
570 .BR @LEGACYFONTDIR@ )
574 .\" --------------------------------------------------------------------
576 .\" --------------------------------------------------------------------
578 .Tp \w'@FONTDIR@/devname/DESC'u+3n
579 .B @MACRODIR@/troffrc
580 Initialization file (called before any other macro package).
583 .B @MACRODIR@/troffrc-end
584 Initialization file (called after any other macro package).
587 .BI @MACRODIR@/ name .tmac
589 .BI @MACRODIR@/tmac. name
593 .BI @FONTDIR@/dev name /DESC
594 Device description file for device
598 .BI @FONTDIR@/dev name / F
608 are neither searched in the current nor in the home directory by
609 default for security reasons (even if the
615 command line option or the
617 environment variable to add these directories to the search path if
621 .\" --------------------------------------------------------------------
623 .\" --------------------------------------------------------------------
625 Copyright (C) 1989, 2001, 2002, 2003 Free Software Foundation, Inc.
628 This document is distributed under the terms of the FDL (GNU Free
629 Documentation License) version 1.1 or later.
631 You should have received a copy of the FDL on your system, it is also
632 available on-line at the
633 .URL http://www.gnu.org/copyleft/fdl.html "GNU copyleft site" .
634 This document was written by James Clark, with modifications from
635 .MTO wl@gnu.org "Werner Lemberg"
637 .MTO bwarken@mayn.de "Bernd Warken"
640 This document is part of
642 the GNU roff distribution.
645 .\" --------------------------------------------------------------------
647 .\" --------------------------------------------------------------------
650 .BR groff (@MAN1EXT@)
651 The main program of the
653 system, a wrapper around
657 .BR groff (@MAN7EXT@)
660 language, including a short but complete reference of all predefined
661 requests, registers, and escapes of plain
663 From the command line, this is called by
670 .BR \%groff_diff (@MAN7EXT@)
671 The differences of the
677 Currently, this is the most actual document of the
687 systems, including pointers to further related documentation.
694 .BR info (@MAN1EXT@),
695 presents all groff documentation within a single document.
699 .\" --------------------------------------------------------------------
701 .\" --------------------------------------------------------------------