groff: remove version tag from directory
[dragonfly.git] / contrib / groff / contrib / grap2graph / grap2graph.man
1 .\" $Id: grap2graph.man,v 1.3 2003/10/28 07:46:23 wlemb Exp $
2 .\" This documentation is released to the public domain.
3 .
4 .
5 .TH GRAP2GRAPH @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
6 .IX grap2graph
7 .SH NAME
8 grap2graph \- convert a grap diagram into a cropped bitmap image
9 .
10 .
11 .SH SYNOPSIS
12 .B grap2graph
13 [
14 .B \-unsafe
15 ]
16 [
17 .BI \-resolution\  M\fR|\fPMxN
18 ]
19 [
20 .BI \-format\  fmt
21 ]
22 .
23 .
24 .SH DESCRIPTION
25 Reads a grap program as input; produces an image file (by default in
26 Portable Network Graphics format) suitable for the Web as output.
27 For a description of the grap language, see
28 .BR grap (1).
29 .P
30 Your graph specification should \fInot\fR be wrapped with the \&.G1 and
31 \&.G2 macros that normally guard it within
32 .BR groff (@MAN1EXT@)
33 macros.
34 .P
35 The output image will be a black-on-white graphic clipped to the
36 smallest possible bounding box that contains all the black pixels.
37 By specifying command-line options to be passed to 
38 .BR convert (1)
39 you can give it a border, set the background transparent, set the
40 image's pixel density, or perform other useful transformations.
41 .P
42 This program uses 
43 .BR grap (1),
44 .BR @g@pic (@MAN1EXT@),
45 .BR groff (@MAN1EXT@),
46 and the ImageMagick 
47 .BR convert (1)
48 program.
49 These programs must be installed on your system and accessible on your
50 $PATH for \fBgrap2graph\fR to work.
51 .
52 .
53 .SH OPTIONS
54 .TP
55 .B \-unsafe
56 Run 
57 .BR @g@pic (@MAN1EXT@)
58 and
59 .BR groff (@MAN1EXT@)
60 in the `unsafe' mode enabling the PIC macro
61 .B sh
62 to execute arbitrary commands.
63 The default is to forbid this.
64 .TP
65 .BI \-format\  fmt
66 Specify an output format; the default is PNG (Portable Network Graphics).
67 Any format that
68 .BR convert (1)
69 can emit is supported.
70 .PP
71 Command-line switches and arguments not listed above are passed to
72 .BR convert (1).
73 .
74 .
75 .SH ENVIRONMENT
76 .TP
77 .B GROFF_TMPDIR
78 The directory in which temporary files will be created.
79 If this is not set
80 .B grap2graph
81 searches the environment variables
82 .BR \%TMPDIR ,
83 .BR TMP ,
84 and
85 .B TEMP
86 (in that order).
87 Otherwise, temporary files will be created in
88 .BR /tmp .
89 .
90 .
91 .SH "SEE ALSO"
92 .BR pic2graph (@MAN1EXT@),
93 .BR eqn2graph (@MAN1EXT@),
94 .BR @g@pic (@MAN1EXT@),
95 .BR groff (@MAN1EXT@),
96 .BR gs (1),
97 .BR convert (1).
98 .
99 .
100 .SH AUTHOR
101 Eric S. Raymond <esr@thyrsus.com>
102 .
103 .\" Local Variables:
104 .\" mode: nroff
105 .\" End: