Debian Codegraph @

man/eps.mann

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 '\"
2 '\" Copyright 1991-1997 by Bell Labs Innovations for Lucent Technologies.
3 '\"
4 '\" Permission to use, copy, modify, and distribute this software and its
5 '\" documentation for any purpose and without fee is hereby granted, provided
6 '\" that the above copyright notice appear in all copies and that both that the
7 '\" copyright notice and warranty disclaimer appear in supporting documentation,
8 '\" and that the names of Lucent Technologies any of their entities not be used
9 '\" in advertising or publicity pertaining to distribution of the software
10 '\" without specific, written prior permission.
11 '\"
12 '\" Lucent Technologies disclaims all warranties with regard to this software,
13 '\" including all implied warranties of merchantability and fitness. In no event
14 '\" shall Lucent Technologies be liable for any special, indirect or
15 '\" consequential damages or any damages whatsoever resulting from loss of use,
16 '\" data or profits, whether in an action of contract, negligence or other
17 '\" tortuous action, arising out of or in connection with the use or performance
18 '\" of this software.
19 '\"
20 '\" Graph widget created by Sani Nassif and George Howlett.
21 '\"
22 .so man.macros
23 .TH eps n BLT_VERSION BLT "BLT Built-In Commands"
24 .BS
25 '\" Note: do not modify the .SH NAME line immediately below!
26 .SH NAME
27 eps \- Encapsulated PostScript canvas item.
28 .SH SYNOPSIS
29 \fIcanvas\fB create eps \fIx y \fR?\fIoption value\fR?...
30 .BE
31 .SH DESCRIPTION
32 The \fBeps\fR canvas item lets you place encapulated PostScript (EPS)
33 on a canvas, controlling its size and placement. The EPS item is
34 displayed either as a solid rectangle or a preview image. The preview
35 image is designated in one of two ways: 1) the EPS file
36 contains an ASCII hexidecimal preview, or 2) a Tk photo image. When
37 the canvas generates PostScript output, the EPS will be inserted with
38 the proper translation and scaling to match that of the EPS item. So
39 can use the canvas widget as a page layout tool.
40 .SH EXAMPLE
41 Let's say you have for PostScript files of four graphs which you
42 want to tile two-by-two on a single page. Maybe you'd like
43 to annotate the graphs by putting a caption at the bottom of
44 each graph.
45 .PP
46 Normally, you would have to resort to an external tool or write your
47 own PostScript program. The \fBeps\fR canvas item lets you do this
48 through Tk's canvas widget. An \fBeps\fR item displays an
49 image (or rectangle) representing the encapsulated PostScript file.
50 It also scales and translates the EPS file when the canvas is printed.
51
52 .SH SYNTAX
53 .DS
54 \fIcanvas \fBcreate eps \fIx y \fR?\fIoption value\fR?...
55 .DE
56 The \fBeps\fR item creates a new canvas item. \fICanvas\fR is the name
57 of a \fBcanvas\fR widget. You must supply the X-Y coordinate of
58 the new eps item. How the coordinate is exactly interpretered is
59 controlled by the \fB\-anchor\fR option (see below).
60 .PP
61 Additional options may be specified on the command line to configure
62 aspects of the eps item such as its color, stipple, and font. The
63 following \fIoption\fR and \fIvalue\fR pairs are valid.
64 .TP
65 \fB\-anchor \fIanchor\fR
66 Tells how to position the EPS item relative to its X-Y coordinate.
67 The default is \fBcenter\fR.
68 .TP
69 \fB\-background \fIcolor\fR
70 Sets the background color of the EPS rectangle.
71 .TP
72 \fB\-borderwidth \fIpixels\fR
73 Sets the width of the 3\-D border around the outside edge of the item. The
74 \fB\-relief\fR option determines if the border is to be drawn. The
75 default is \fB0\fR.
76 .TP
77 \fB\-file \fIfileName\fR
78 Specifies the name of the EPS file. The first line of an
79 EPS file must start with "%!PS" and contain a "EPS" version
80 specification. The other requirement is that there be a "%%BoundingBox:"
81 entry which contains four integers representing the lower-left and
82 upper-right coordinates of the area bounding the EPS.
83 The default is \fB""\fR.
84 .TP
85 \fB\-font \fIfontName\fR
86 Specifies the font of the title. The default is
87 \fB*-Helvetica-Bold-R-Normal-*-18-180-*\fR.
88 .TP
89 \fB\-foreground \fIcolor\fR
90 Specifies the foreground color of the EPS rectangle. The option
91 matters only when the \fB\-stipple\fR option is set.
92 The default is \fBwhite\fR.
93 .TP
94 \fB\-height \fIpixels\fR
95 Specifies the height EPS item. If \fIpixels\fR is \fB0\fR, then
96 the height is determined from the PostScript "BoundingBox:" entry
97 in the EPS file.
98 The default is \fB0\fR.
99 .TP
100 \fB\-image \fIphoto\fR
101 Specifies the name of a Tk photo image to be displayed as in
102 the item as a preview image. This option overrides any preview
103 specification found in the EPS file.
104 The default is \fB""\fR.
105 .TP
106 \fB\-justify \fIjustify\fR
107 Specifies how the title should be justified. This matters only when
108 the title contains more than one line of text. \fIJustify\fR must be
109 \fBleft\fR, \fBright\fR, or \fBcenter\fR. The default is
110 \fBcenter\fR.
111 .TP
112 \fB\-relief \fIrelief\fR
113 Specifies the 3-D effect for the EPS item. \fIRelief\fR
114 specifies how the item should appear relative to canvas;
115 for example, \fBraised\fR means the item should appear to
116 protrude. The default is \fBflat\fR.
117 .TP
118 \fB\-shadowcolor \fIcolor\fR
119 Specifies the color of the drop shadow used for the title. The
120 option with the \fB\-shadowoffset\fR option control how the
121 title's drop shadow appears.
122 The default is \fBgrey\fR.
123 .TP
124 \fB\-shadowoffset \fIpixels\fR
125 Specifies the offset of the drop shadow from the title's text.
126 If \fIpixels\fR is \fB0\fR, no shadow will be seen.
127 The default is \fB0\fR.
128 .TP
129 \fB\-showimage \fIboolean\fR
130 Indicates whether to display the image preview (if one exists),
131 or a simple rectangle.
132 The default is \fByes\fR.
133 .TP
134 \fB\-stipple \fIbitmap\fR
135 Specifies a bitmap to used to stipple the rectangle representing
136 the EPS item. The default is \fB""\fR.
137 .TP
138 \fB\-title \fIstring\fR
139 Sets the title of the EPS item. If \fIstring\fR is \fB""\fR,
140 then the title specified by the PostScript "Title:" entry
141 is used. You can set the string a single space to display
142 no title. The default is \fB""\fR.
143 .TP
144 \fB\-titleanchor \fIanchor\fR
145 Tells how to position the title within EPS item.
146 The default is \fBn\fR.
147 .TP
148 \fB\-titlecolor \fIcolor\fR
149 Specifies the color of the title.
150 The default is \fBwhite\fR.
151 .TP
152 \fB\-titlerotate \fIdegrees\fR
153 Sets the rotation of the title. \fIDegrees\fR is a real number
154 representing the angle of rotation.
155 The title is first rotated in space and then placed according to
156 the \fB\-titleanchor\fR position. The default rotation is \fB0.0\fR.
157 .TP
158 \fB\-width \fIpixels\fR
159 Specifies the width EPS item. If \fIpixels\fR is \fB0\fR, then
160 the width is determined from the PostScript "BoundingBox:" entry
161 in the EPS file.
162 The default is \fB0\fR.
163 \fB5i\fR.