home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 4
/
FreshFish_May-June1994.bin
/
useful
/
dist
/
text
/
tex
/
pastex
/
man
/
fig
/
xfig.man
< prev
Wrap
Text File
|
1991-07-18
|
18KB
|
480 lines
XFIG(1) USER COMMANDS XFIG(1)
NAME
xfig - Facility for Interactive Generation of figures under
X11
SYNOPSIS
xfig [ -ri[ght] ] [ -le[ft] ] [ -L[andscape] ] [ -P[ortrait]
] [ -w[idth] inches ] [ -h[eight] inches ] [ -no[track] ] [
-tr[ack] ] [ file ]
DESCRIPTION
Xfig is a menu-driven tool that allows the user to draw and
manipulate objects interactively in an X window. It runs
under X version 11 release 2 and requires a three-button
mouse. File specifies the name of a file to be edited. The
description of objects in the file will be read at the start
of xfig.
The output from xfig can be printed in several ways
troff - f2p (xfig to pic(1) translator, also known by its
previous name ftop(1L)) is used to translate xfig files into
pic(1) language. The resulting file may then be processed
in the same maner as any other pic file.
postscript - f2ps (xfig to postscript translator) is used to
produce a postscript file from an xfig file. The postscript
file can be sent directly to a postscript printer.
LaTeX - fig2latex (xfig to LaTeX translator) produces a
LaTeX file from an xfig file. This file contains LaTeX pic-
ture environment commands and can be processed along with
other LaTeX commands.
PiCTeX - fig2tex (xfig to PiCTeX translator) produces a
PiCTeX file from an xfig file. This file contains macros
that can be used with the PiCTeX environment under TeX or
LaTeX.
OPTIONS
-ri Change the position of the panel window to the right of
the canvas window (default: left).
-le Change the position of the panel window to the left of
the canvas window.
-L Make xfig come up in landscape mode (10" x 7.5").
-P Make xfig come up in portrait mode (7.5" x 10"). This
is the default.
-w inches
Make xfig come up inches wide.
-h inches
Make xfig come up inches high.
-tr Turn on cursor (mouse) tracking arrows.
-no Turn off cursor (mouse) tracking arrows.
GRAPHICAL OBJECTS
The objects in xfig are divided into primitive objects and
compound object. The primitive objects are: ARC, CIRCLE,
CLOSED SPLINE, ELLIPSE, POLYLINE, POLYGON, SPLINE, and TEXT.
A primitive can be moved, rotated, flipped, copied or
erased. A compound object is composed of primitive objects.
The primitive objects that constitute a compound can not be
individually modified, but they can be manipulated as an
entity; a compound can be moved, rotated, flipped, copied or
erased. An extra function that can be applied to a compound
object is scaling, which is not available for primitive
objects.
DISPLAY WINDOWS
Five windows comprise the display area of xfig: the top
ruler, the side ruler, the panel window, the message window,
and the canvas window. The message window always appears
below the others; it is the area in which messages are sent
and received. The panel window can be placed to the left or
right of the the canvas window (default: left).
POP-UP MENU
The pop-up menu appears when the right mouse button is
pressed with the cursor positioned within the canvas window.
Positioning the cursor over the desired menu entry and
releasing the button selects a menu entry.
There are a number of file accessing functions in the pop-up
menu. Most of the time when one of these functions is
selected, the user will be asked for a file name. If the
specified file can be located and the access permission are
granted, xfig will carry out the function. However in case
things go wrong, xfig will abort the function and printed
the causes on the message window.
Undo Undo the last object creation or modification.
Redisplay
Redraw the canvas.
Remove all
Remove all objects on the canvas window (can be
undone).
Edit file ...
The current contents of the canvas are cleared and
objects are read from the specified file. The user
will be asked for a file name. This file will become
the current file.
Save Save the current contents of the canvas in the current
file. If no file is being edited, the user will be
asked for a file name as in the "Save in ..." function.
Read file ...
Read objects from the specified file and merge them
with objects already shown on the canvas. (The user
will be asked for a file name.)
Save as ...
Save objects on the screen into a file specified by the
user. (The user will be asked for a file name.)
Status
Show the name of the current file and directory.
Change Directory
Change the working directory. Any file name without a
full path name will employ the current working direc-
tory.
Save & Exit
Save the objects in the current file and exit from
xfig. If there is no current file, the user will be
asked for a file name. No confirmation will be asked.
Quit Exit from xfig, discarding all objects. The user will
be asked to confirm the action, by clicking the left
button.
Save as BITMAP ...
Create a bitmap picture of the drawings for use with
other tools (for example, for use as an icon). The
smallest rectangular area of pixels that encompasses
the figure is written to the named file (the user will
be asked for a file name) from top row to bottom and
left to right (in Sun raster format). Only TEXT
objects that are parts of compound objects will be
treated as parts of the picture; other texts are saved
as objects in xfig format following the bitmap data.
The coordinates of these text objects can be used to
identify locations on the bitmap.
PANEL WINDOW MANIPULATION FUNCTIONS
Icons in the panel window represent object manipulation
functions, modes and other drawing or modification aids.
Manipulation functions are selected by positioning the
cursor over it and clicking the left mouse button. The
selected icon is highlighted, and a message describing its
function appears in the message window.
The left and middle buttons are used to creat and modify
objects in the canvas window. Most actions start with
clicking of the left button and end with clicking of the
right button. There is no need to hold down a button while
positioning the cursor.
PANEL WINDOW COMMAND DESCRIPTIONS
Entries in the panel window can be classified into two
categories: object creation/modification/removal commands
(only one of which may be active at any one time), and draw-
ing aids (which act as toggle switches). There are two ways
for drawing circles, two for ellipses, two for splines and
two for closed splines. There are two basic splines. One
is the interpolated spline in which the spline pass thorough
the entered points (knots). The other is the normal spline
in which on control points are passed by the spline (except
for the two end points in the open spline).
OBJECT CREATION/MODIFICATION/REMOVAL
Multiple commands are grouped thematically in the following
descriptions (which is listed alphabetically).
ADD/DELETE ARROWS
Add or delete arrow heads for POLYLINE, POLYGON, SPLINE
or CLOSED SPLINE objects (points of a BOX can not be
added or deleted).
ADD/DELETE POINTS
Add or delete points for POLYLINE, POLYGON, SPLINE or
CLOSED SPLINE objects (points of a BOX can not be added