1 .TH GROG @MAN1EXT@ "@MDATE@" "groff @VERSION@"
3 grog \- guess options for a following groff command
5 .\" grog.man -> grog.1 - man page for grog (section 1)
6 .\" Source file position: <groff_source_top>/src/roff/grog/grog.man
7 .\" Installed position: <prefix>/share/man/man1/grog.1
9 .\" TODO: This page needs a thorough edit by a native English speaker.
11 .\" ====================================================================
13 .\" ====================================================================
15 .\" Copyright (C) 1989-2018 Free Software Foundation, Inc.
17 .\" This file is part of grog, which is part of groff, a free software
18 .\" project. You can redistribute it and/or modify it under the terms
19 .\" of the GNU General Public License version 2 (GPL2) as published by
20 .\" the Free Software Foundation.
22 .\" groff is distributed in the hope that it will be useful, but WITHOUT
23 .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
24 .\" or FITNESS FOR A PARTICULAR PURPOSE.
26 .\" The text for GPL2 is available in the internet at
27 .\" <http://www.gnu.org/licenses/gpl2.0.txt>.
30 .\" ====================================================================
32 .\" ====================================================================
35 .ie t .ds EL \fS\N'188'\fP\"
36 .el .ds EL \&.\|.\|.\&\"
39 .\" ====================================================================
41 .\" ====================================================================
69 .\" ====================================================================
71 .\" ====================================================================
74 reads the input (file names or standard input) and guesses which of
77 options are needed to perform the input with the
81 A suitable device is now always written as
83 including the groff default as
90 command is usually displayed in standard output.
94 the generated line is output into standard error and the generated
97 .IR "standard output" .
99 .BR groffer (@MAN1EXT@)
100 relies on a perfectly running
101 .BR groff (@MAN1EXT@).
104 .\" ====================================================================
106 .\" ====================================================================
112 prints information on the version number.
118 prints usage information.
120 Both of these options automatically end the
124 Other options are thenignored, and no
126 command line is generated.
129 The following 3 options are the only
135 this option means enabling the
137 compatibility mode, which is also transfered to the generated
143 this option forces to include the arguments
151 with this option, the command line is output at standard error and
152 then run on the computer.
156 with this option, some more warnings are output to standard error.
160 All other specified short options (words starting with one minus
165 options or option clusters with or without argument.
167 No space is allowed between options and their argument.
171 options, all options will be passed on, i.e.\& they are included
172 unchanged in the command for the output without effecting the work of
179 argument can either be the name of an existing file or a single minus
181 to mean standard input.
185 is specified standard input is read automatically.
188 .\" ====================================================================
190 .\" ====================================================================
195 parameters as a whole.
197 It tries to guess which of the following
199 options are required for running the input under
205 .\" gideal is not implemented yet.
226 command including those options and the found
228 parameters is put on the standard output.
232 It is possible to specify arbitrary
234 options on the command line.
236 These are passed on the output without change, except for the
244 program has trouble when the wrong
246 option or several of these options are specified.
250 will print an error message and exit with an error code.
252 It is better to specify no
256 Because such an option is only accepted and passed when
258 does not find any of these options or the same option is found.
266 an error message is produced and the program is terminated with an
269 But the output is written with the wrong options nevertheless.
273 Remember that it is not necessary to determine a macro package.
277 file can also be written in the
279 language without any macro package.
282 will produce an output without an
290 also works with pure text files without any
294 cannot be used to identify a file to be a
301 .BR groffer (@MAN1EXT@)
302 program heavily depends on a working
306 .\" ====================================================================
308 .\" ====================================================================
319 groff \-me meintro.me
325 recognized that the file
344 groff \-p \-t \-e \-ms pic.ms
348 Besides determining the macro package
351 recognized that the file
369 If both of the former example files are combined by the command
373 grog meintro.me pic.ms
377 an error message is sent to standard error because
379 cannot work with two different macro packages:
383 grog: error: there are several macro packages: \-me \-ms
387 Additionally the corresponding output with the wrong options is printed
392 groff \-pte \-me \-ms meintro.me pic.ms
396 But the program is terminated with an error code.
403 grog \-ksS \-Tdvi grnexmpl.g
409 options that are just passed on the output without any interface to
411 These are the option cluster
426 groff \-k \-s \-S \-Tdvi grnexmpl.g
430 so no additional option was added by
436 this file does not use a macro package.
439 .\" ====================================================================
441 .\" ====================================================================
443 was originally written by James Clark.
445 The current Perl implementation was written by
446 .MT groff\-bernd.warken\-72@\:web.de
449 with contributions from Ralph Corderoy,
456 .\" ====================================================================
458 .\" ====================================================================
460 .BR groff (@MAN1EXT@),
461 .BR groffer (@MAN1EXT@)
464 .\" ====================================================================
466 .\" ====================================================================
471 .\" vim: set filetype=groff: