1 .TH GROG @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
3 .\" --------------------------------------------------------------------
5 .\" --------------------------------------------------------------------
8 grog.1 - man page for grog (section 1)
10 Source file position: <groff_source_top>/src/roff/grog/grog.man
11 Installed position: $prefix/share/man/man1/grog.1
13 Last Update: 5 Jan 2009
16 Copyright (C) 1989-2000, 2001, 2002, 2003, 2006, 2007, 2009
17 Free Software Foundation, Inc.
19 Written by James Clark.
24 Rewritten and put under GPL by Bernd Warken.
31 a free software project.
33 You can redistribute it and/or modify it under the terms of the
35 .B "GNU General Public License"
37 (\f[CR]GPL\f[]) as published by the
39 .BR "Free Software Foundation" ,
41 either version\~2, or (at your option) any later version.
44 You should have received a copy of the \f[CR]GNU General Public
45 License\f[] along with
47 see the files \%\f[CB]COPYING\f[] and \%\f[CB]LICENSE\f[] in the top
55 You can also write to the
57 .B "Free Software Foundation, 51 Franklin St - Fifth Floor, Boston,"
58 .BR "MA 02110-1301, USA" .
63 .\" --------------------------------------------------------------------
70 .\" --------------------------------------------------------------------
73 grog \- guess options for groff command
76 .\" --------------------------------------------------------------------
81 .RI [ \%groff\-option\~ .\|.\|.\&]
83 .RI [ \%filespec\~ .\|.\|.]
97 .\" --------------------------------------------------------------------
101 reads the input (file names or standard input) and guesses which of
103 .BR groff (@MAN1EXT@)
104 options are needed to perform the input with the
113 .\" --------------------------------------------------------------------
118 options recognized are
120 (which is also passed on) to enable compatibility mode;
124 print information on the version number; and
128 print usage information.
135 stop the program directly without printing a
137 command to standard output.
141 All other specified short options (words starting with one minus
146 options or option clusters with or without argument.
148 No space is allowed between options and their argument.
152 options, all options will be passed on, i.e. they are included
153 unchanged in the command for the output without effecting the work of
160 argument can either be the name of an existing file or a single minus
162 to mean standard input.
166 is specified standard input is read automatically.
169 .\" --------------------------------------------------------------------
175 parameters as a whole.
177 It tries to guess which of the following
179 options are required for running the input under
198 command including those options and the found
200 parameters is put on the standard output.
204 It is possible to specify arbitrary
206 options on the command line.
208 These are passed on the output without change, except for the
216 program has trouble when the wrong
218 option or several of these options are specified.
222 will print an error message and exit with an error code.
224 It is better to specify no
228 Because such an option is only accepted and passed when
230 does not find any of these options or the same option is found.
238 an error message is produced and the program is terminated with an
241 But the output is written with the wrong options nevertheless.
245 Remember that it is not necessary to determine a macro package.
249 file can also be written in the
251 language without any macro package.
254 will produce an output without an
262 also works with pure text files without any
266 cannot be used to identify a file to be a
273 .BR groffer (@MAN1EXT@)
274 program heavily depends on a working
281 source contains two files written in different programming languages:
292 is a shell script using
296 it is determined whether the system contains a suitable version of
311 .\" --------------------------------------------------------------------
330 groff \-me meintro.me
337 recognized that the file
361 groff \-pte \-ms pic.ms
366 Besides determining the macro package
369 recognized that the file
388 If both files are combined by the command
393 grog meintro.me pic.ms
398 an error message is sent to standard error because
400 cannot work with two different macro packages:
405 grog: error: there are several macro packages: -me -ms
410 Additionally the corresponding output with the wrong options is printed
416 groff -pte -me -ms meintro.me pic.ms
421 But the program is terminated with an error code.
430 grog \-ksS \-Tdvi grnexmpl.g
437 options that are just passed on the output without any interface to
439 These are the option cluster
455 groff \-ksS \-Tdvi grnexmpl.g
460 so no additional option was added by
466 this file does not use a macro package.
471 can also handle files using the
480 grog chAh_brackets.chem
490 chem chAh_brackets.chem | groff \-pe
505 is implied automatically by
507 Additionally, the file uses
513 .\" --------------------------------------------------------------------
516 .BR groff (@MAN1EXT@),
517 .BR @g@troff (@MAN1EXT@),
518 .BR @g@tbl (@MAN1EXT@),
519 .BR @g@pic (@MAN1EXT@),
520 .BR @g@eqn (@MAN1EXT@),
521 .BR @g@refer (@MAN1EXT@),
522 .BR @g@grn (@MAN1EXT@),
524 .BR @g@soelim (@MAN1EXT@),
525 .BR groff_me (@MAN7EXT@),
526 .BR groff_ms (@MAN7EXT@),
527 .BR groff_mm (@MAN7EXT@),
528 .BR groff_mom (@MAN7EXT@),
529 .BR groff_man (@MAN7EXT@),
530 .BR groffer (@MAN1EXT@)
533 .\" --------------------------------------------------------------------
539 .\" --------------------------------------------------------------------
541 .\" --------------------------------------------------------------------