2 .TH @G@TROFF @MAN1EXT@ "@MDATE@" "groff @VERSION@"
4 @g@troff \- the troff processor of the groff text formatting system
6 .\" troff.man -> troff.1
9 .\" ====================================================================
11 .\" ====================================================================
13 .\" Copyright (C) 1989-2018 Free Software Foundation, Inc.
15 .\" This file is part of groff, the GNU roff type-setting system.
17 .\" Permission is granted to copy, distribute and/or modify this
18 .\" document under the terms of the GNU Free Documentation License,
19 .\" Version 1.3 or any later version published by the Free Software
20 .\" Foundation; with no Invariant Sections, with no Front-Cover Texts,
21 .\" and with no Back-Cover Texts.
23 .\" A copy of the Free Documentation License is included as a file
24 .\" called FDL in the main directory of the groff source package.
27 .\" ====================================================================
29 .\" ====================================================================
50 .\" ====================================================================
52 .\" ====================================================================
54 This manual page describes the GNU version of
57 It is part of the groff document formatting system.
59 It is functionally compatible with Unix troff, but has many
61 .BR \%groff_diff (@MAN7EXT@).
63 Usually it should be invoked using the
65 command which will also run preprocessors and postprocessors in the
66 appropriate order and with the appropriate options.
69 .\" ====================================================================
71 .\" ====================================================================
73 Whitespace is permitted between a command-line option and its argument.
78 Generate an ASCII approximation of the typeset output.
82 Print a backtrace with each warning or error message.
84 This backtrace should help track down the cause of the error.
86 The line numbers given in the backtrace may not always be correct, for
88 idea of line numbers gets confused by
96 Disable color output (always disabled in compatibility mode).
100 Enable compatibility mode.
113 must be a one letter name.
117 Inhibit all error messages of
120 Note that this doesn't affect messages output to standard error by
121 macro packages using the
131 as the default font family.
135 Search in directory (or directory path)
140 is the name of the device) and there for the
145 is scanned before all other font directories.
149 Read the standard input after all the named input files have been
154 This option may be used to add a directory to the search path for
155 files (both those on the command line and those named in
159 The search path is initialized with the current directory.
161 This option may be specified more than once; the directories are then
162 searched in the order specified (but before the current directory).
164 If you want to make the current directory be read before other
167 at the appropriate place.
170 No directory search is performed for files with an absolute file name.
177 If it isn't found, try
181 It will be first searched for in directories given with the
183 command-line option, then in directories given in the
185 environment variable, then in the current directory (only if in unsafe
186 mode), the home directory,
187 .IR @SYSTEMMACRODIR@ ,
188 .IR @LOCALMACRODIR@ ,
194 Search directory (or directory path)
198 This is scanned before all other macro directories.
202 Number the first page
209 which is a comma-separated list of page ranges;
214 means print every page between
219 means print every page up to
222 means print every page from
226 will exit after printing the last page in the list.
239 must be a one character name;
241 can be any troff numeric expression.
252 Prepare output for device
254 rather than the default
257 .BR groff (@MAN1EXT@)
258 for a more detailed description.
264 This will enable the following requests:
271 For security reasons, these potentially dangerous requests are
274 It will also add the current directory to the macro search path.
278 Print the version number.
285 Available warnings are described in section \(lqWarnings\(rq below.
287 To enable most useful warnings use
290 To enable absolutely all warnings use
308 Suppress formatted output.
311 .\" ====================================================================
313 .\" ====================================================================
315 The warnings that can be given by
317 are divided into the following categories.
319 The name associated with each warning is used by the
323 options; the number is used by the
327 register; it is always a power of 2 to allow bitwise composition.
334 Bit@Code@Warning@Bit@Code@Warning
337 1@2@number@11@2048@tab
338 2@4@break@12@4096@right-brace
339 3@8@delim@13@8192@missing
340 4@16@el@14@16384@input
341 5@32@scale@15@32768@escape
342 6@64@range@16@65536@space
343 7@128@syntax@17@131072@font
344 8@256@di@18@262144@ig
345 9@512@mac@19@524288@color
350 .nr x \w'\fBright-brace'+1n+\w'00000'u
355 In fill mode, lines which could not be broken so that their length was
356 less than the line length.
358 This is enabled by default.
362 Non-existent characters.
364 This is enabled by default.
368 Color-related warnings.
372 Missing or mismatched closing delimiters.
380 without an argument when there is no current diversion.
386 request with no matching
392 Unrecognized escape sequences.
394 When an unrecognized escape sequence is encountered, the escape
395 character is ignored.
399 Indicates a missing file for the
409 This is enabled by default.
413 Invalid escapes in text ignored with the
417 These are conditions that are errors when they do not occur in ignored
422 Invalid input characters.
426 Use of undefined strings, macros and diversions.
428 When an undefined string, macro or diversion is used, that string is
429 automatically defined as empty.
431 So, in most cases, at most one warning will be given for each name.
435 Requests that are missing non-optional arguments.
439 Invalid numeric expressions.
441 This is enabled by default.
445 Out of range arguments.
449 Use of undefined number registers.
451 When an undefined number register is used, that register is
452 automatically defined to have a value of\~0.
454 So, in most cases, at most one warning will be given for use of a
458 .BR right-brace "\t4096"
461 where a number was expected.
465 Meaningless scaling indicators.
469 Missing space between a request or macro and its argument.
471 This warning will be given when an undefined name longer than two
472 characters is encountered, and the first two characters of the name
475 The request or macro will not be invoked.
477 When this warning is given, no macro is automatically defined.
479 This is enabled by default.
481 This warning will never occur in compatibility mode.
485 Dubious syntax in numeric expressions.
489 Inappropriate use of a tab character.
491 Either use of a tab character where a number was expected, or use of tab
492 character in an unquoted macro argument.
495 There are also names that can be used to refer to groups of warnings:
505 It is intended that this covers all warnings that are useful with
506 traditional macro packages.
513 .\" ====================================================================
515 .\" ====================================================================
519 A colon separated list of directories in which to search for
523 will scan directories given in the
525 option before these, and in standard directories (current directory if
526 in unsafe mode, home directory,
527 .IR @SYSTEMMACRODIR@ ,
528 .IR @LOCALMACRODIR@ ,
538 A colon separated list of directories in which to search for the
543 will scan directories given in the
545 option before these, and in standard directories
546 .RI ( @LOCALFONTDIR@ ,
548 .IR @LEGACYFONTDIR@ )
552 .\" ====================================================================
554 .\" ====================================================================
557 .I @MACRODIR@/troffrc
558 Initialization file (called before any other macro package).
561 .I @MACRODIR@/troffrc\-end
562 Initialization file (called after any other macro package).
565 .IR @MACRODIR@/ name .tmac
567 .IR @MACRODIR@/tmac. name
571 .IR @FONTDIR@/dev name /DESC
572 Device description file for device
576 .IR @FONTDIR@/dev name / F
588 are searched for neither in the current nor the home directory by
589 default for security reasons (even if the
595 command-line option or the
597 environment variable to add these directories to the search path if
601 .\" ====================================================================
603 .\" ====================================================================
607 was originally written by James Clark;
608 he also wrote the original version of this document,
609 which was modified by
614 .MT groff\-bernd.warken\-72@\:web.de
619 .\" ====================================================================
621 .\" ====================================================================
624 .BR groff (@MAN1EXT@)
625 The main program of the
627 system, a wrapper around
631 .BR groff (@MAN7EXT@)
634 language, including a short but complete reference of all predefined
635 requests, registers, and escapes of plain
638 From the command line, this is called by
645 .BR \%groff_diff (@MAN7EXT@)
646 The differences of the
652 Currently, this is the most actual document of the
662 systems, including pointers to further related documentation.
666 .IR "Groff: The GNU Implementation of troff" ,
667 by Trent A.\& Fisher and Werner Lemberg,
672 You can browse it interactively with \(lqinfo groff\(rq.
675 .\" ====================================================================
677 .\" ====================================================================
682 .\" vim: set filetype=groff: