gaf-config: Use new GFile config sys APIs where appropriate.
[geda-gaf/pcjc2.git] / gaf / gaf.1.in
blob4921ef7c70a18955d229c9a1b5330d255b0949e8
1 .TH gaf 1 "@DATE@" "gEDA Project" @VERSION@
2 .SH NAME
3 gaf - gEDA/gaf Command-Line Utility
4 .SH "SYNOPSIS"
5 .B gaf
6 [\fIOPTION\fR ...] \fICOMMAND\fR [\fIARGS\fR ...]
7 .SH "DESCRIPTION"
8 .PP
9 .B gaf
10 is part of the gEDA (GPL Electronic Design Automation) toolset.  It
11 provides a number of small command-line utilities for working with
12 schematic and symbol files, and is designed to be used for batch
13 processing of designs created using the schematic editor
14 \fBgschem\fR(1).  It currently has three built-in \fICOMMAND\fRs:
16 .B gaf export
17 is used to create SVG, PDF, PNG, PS and EPS files from schematic and
18 symbol files, for printing or embedding in other documents.
20 .B gaf config
21 allows reading and writing settings in gEDA project, user and system
22 configuration stores.
24 .B gaf shell
25 provides a Scheme REPL for command-line batch processing of schematic
26 data.
28 .SH "GENERAL OPTIONS"
29 .TP 8
30 \fB--no-rcfiles\fR
31 Prevent `gafrc' Scheme initialisation files from being loaded.
32 .TP 8
33 \fB-h\fR, \fB--help\fR
34 Print a help message.
35 .TP 8
36 \fB-V\fR, \fB--version\fR
37 Print \fBgaf\fR version information.
39 .SH "EXPORTING IMAGE FILES"
40 .B gaf export
41 [\fIOPTION\fR ...] \fB-o\fR \fIOUTPUT\fR [\fI--\fR] \fIFILE\fR ...
43 .B gaf export
44 can export schematic and symbol files in a variety of image formats
45 for printing or further processing.  It currently supports single-page
46 PNG, SVG and EPS output, and multi-page PS and PDF output.  It accepts
47 a variety of options for controlling how the output is formatted.
49 .TP 8
50 \fB-o\fR, \fB--output\fR=\fIFILE\fR
51 Output generated image data to \fIFILE\fR.
52 .TP 8
53 \fB-f\fR, \fB--format\fR=(\fBpng\fR | \fBpdf\fR | \fBsvg\fR | \fBps\fR | \fBeps\fR)
54 Specify an output format.  Usually, this option is not required,
55 because \fBgaf export\fR will infer the correct format from the file
56 extension of the output file.
57 .TP 8
58 \fB-p\fR, \fB--paper\fR=\fINAME\fR
59 Size the output for a particular paper size.  The \fINAME\fR should be
60 a PWG 5101.1-2002 paper name.  For example, valid values include
61 `iso_a4', `na_letter', or `na_d'.
62 .TP 8
63 \fB-l\fR, \fB--layout\fR=(\fBauto\fR | \fBlandscape\fR | \fBportrait\fR)
64 When using a paper size, set the orientation of the output.  If `auto'
65 layout is used, the orientation that best fits the drawing will be
66 used.
67 .TP 8
68 \fB-s\fR, \fB--size\fR=(\fBauto\fR | \fIWIDTH\fR:\fIHEIGHT\fR)
69 Size the output with specific dimensions.  If the size is `auto',
70 select the size that best fits the drawing.
71 .TP 8
72 \fB-k\fR, \fB--scale\fR=(\fBFACTOR\fR)
73 Set the output scale \fIFACTOR\fR. This is a distance identical with 100
74 points (1 default grid spacing) in \fBgschem\fR(1) coordinate space. It is used
75 to size the output when neither \fB--paper\fR nor \fB--size\fR are
76 given, and defaults to 100 mil.
77 .TP 8
78 \fB-m\fR, \fB--margins\fR=(\fBauto\fR | \fITOP\fR[:\fILEFT\fR[:\fIBOTTOM\fR[:\fIRIGHT\fR]]])
79 Set the widths of the margins to be used.  If `auto' margins are
80 specified, a sensible default value will be chosen.  Up to four margin
81 widths can be provided.  If one is provided, it will be used on all
82 four sides.  If two are provided, the first will be used for the
83 top/bottom and the second for the left/right.  If three are provided,
84 the first will be used for the top, the second for left/right, and the
85 third for the bottom.
86 .TP 8
87 \fB-a\fR, \fB--align\fR=(\fBauto\fR | \fIHALIGN\fR:\fIVALIGN\fR)
88 Set how the drawing is aligned within the page.  \fIHALIGN\fR controls
89 the horizontal alignment, and \fIVALIGN\fR the vertical.  Each
90 alignment value should be in the range 0.0 to 1.0.  The `auto'
91 alignment is equivalent to a value of `0.5:0.5', i.e. centered.
92 .TP 8
93 \fB-d\fR, \fB--dpi\fR=\fIDPI\fR
94 Set the number of pixels per inch used when generating PNG output.
95 .TP 8
96 \fB-c\fR, \fB--color\fR
97 Enable colour output.
98 .TP 8
99 \fB--no-color\fR
100 Disable color output.
101 .TP 8
102 \fB-F\fR, \fB--font\fR=\fIFONT-FAMILY\fR
103 Set the font to be used for drawing text.
104 .TP 8
105 \fB--\fR
106 Treat all remaining arguments as schematic or symbol filenames.  Use
107 this if you have a schematic or symbol filename which begins with `-'.
110 The \fB--size\fR, \fB--margins\fR, or \fB--scale\fR options described above accept
111 values using units of `mm', `cm', `in', `pc', `px', or `pt'.  If you
112 do not provide a unit, points are assumed.  N.b. that `px' are
113 evaluated relative to the current \fB--dpi\fR setting.
116 When using the \fB--size\fR, \fB--margins\fR, or \fB--align\fR options
117 with multiple values, you may use `;', or ` ' as a separator between
118 them instead of `:'. In such a case, remember to properly quote your
119 arguments to avoid them to be interpreted by your shell.
122 .SH "ACCESSING CONFIGURATION"
123 .B gaf config
124 [\fIOPTION\fR] [\fIGROUP\fR \fIKEY\fR [\fIVALUE\fR]]
126 .B gaf config
127 is a basic utility for inspecting and modifying gEDA/gaf configuration
128 stores.
131 If a \fIGROUP\fR and \fRKEY\fR are specified, retrieves the value of
132 that configuration parameter.  If a \fIVALUE\fR is specified, sets
133 the value of that parameter.  The \fB-p\fR, \fB-u\fR and \fB-s\fR
134 options can be used to select the configuration store affected (by
135 default, the project configuration store for the current working
136 directory).  If no \fIGROUP\fR and \fIKEY\fR are provided, outputs
137 the filename of the selected configuration store.
140 .TP 8
141 \fB-p\fR, \fB--project\fR[=\fIPATH\fR]
142 Select the project configuration store of the project located in
143 \fIPATH\fR.  If no \fIPATH\fR is provided, selects the project in the
144 current working directory.
145 .TP 8
146 \fB-u\fR, \fB--user\fR
147 Select the user configuration store.
148 .TP 8
149 \fB-s\fR, \fB--system\fR
150 Select the system configuration store.  Depending on user permissions,
151 the system configuration store may be read-only.
153 .SH "SCHEME PROCESSING"
154 .B gaf shell
155 [\fIOPTION ...\fR]
157 .B gaf shell
158 provides a Scheme Read-Eval-Print Loop (REPL) for automating
159 processing of schematic and symbol files.  It is designed to be used
160 with the gEDA Scheme API.
162 .TP 8
163 \fB-s\fR \fIFILE\fR
164 Evaluate Scheme source code from \fIFILE\fR, and exit.
165 .TP 8
166 \fB-c\fR \fIEXPR\fR
167 Evaluate the Scheme expression \fIEXPR\fR, and exit.
168 .TP 8
169 \fB--\fR
170 Stop scanning arguments; run interactively.
171 .TP 8
172 \fB-L\fR \fIDIRECTORY\fR
173 Prepend \fIDIRECTORY\fR to the list of directories to be searched for
174 Scheme files.
175 .TP 8
176 \fB-l\fR \fIFILE\fR
177 Evaluate Scheme source code from \fIFILE\fR.
180 The \fB-s\fR, \fB-c\fR and \fB--\fR switches stop argument processing
181 and pass all the remaining arguments as the value of `(command-line)'.
183 .SH ENVIRONMENT
184 .TP 8
185 .B GEDADATA
186 specifies the search directory for Scheme and rc files.  The default
187 is `${prefix}/share/gEDA'.
188 .TP 8
189 .B GEDADATARC
190 specifies the search directory for rc files.  The default is `$GEDADATA'.
192 .SH AUTHORS
193 See the `AUTHORS' file included with this program.
195 .SH COPYRIGHT
197 Copyright \(co 2012 gEDA Contributors.  License GPLv2+: GNU GPL
198 version 2 or later.  Please see the `COPYING' file included with this
199 program for full details.
201 This is free software: you are free to change and redistribute it.
202 There is NO WARRANTY, to the extent permitted by law.
204 .SH SEE ALSO
205 \fBgschem\fR(1).
207 For more information on the Scheme API, see the \fBgeda-scheme\fR
208 Texinfo manual.  If the \fBinfo\fR program is properly installed at
209 your site, the command
213 info geda-scheme
216 should give you access to the complete manual.