blob: 53fc6588cf11c08cb6ba54bcf87dddbb9c78d3f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<head>
<title>UK TeX FAQ -- question label eps</title>
</head><body>
<h3>What is “Encapsulated PostScript” (“EPS”)?</h3>
<p/>PostScript has been for many years a <em>lingua franca</em> of powerful
printers (though modern high-quality printers now tend to require some
constrained form of Adobe Acrobat, instead); since PostScript is also a
powerful graphical programming language, it is commonly used as an
output medium for drawing (and other) packages.
<p/>However, since PostScript <em>is</em> such a powerful language, some
rules need to be imposed, so that the output drawing may be included
in a document as a figure without “leaking” (and thereby destroying
the surrounding document, or failing to draw at all).
<p/>Appendix H of the PostScript Language Reference Manual (second
and subsequent editions), specifies a set of rules for PostScript to
be used as figures in this way. The important features are:
<ul>
<li> certain “structured comments” are required; important ones are
the identification of the file type, and information about the
“bounding box” of the figure (i.e., the minimum rectangle
enclosing it);
<li> some commands are forbidden — for example, a <code>showpage</code>
command will cause the image to disappear, in most TeX-output
environments; and
<li> “preview information” is permitted, for the benefit of things
such as word processors that don’t have the ability to draw
PostScript in their own right — this preview information may be in
any one of a number of system-specific formats, and any viewing
program may choose to ignore it.
</ul>
A PostScript figure that conforms to these rules is said to be in
“Encapsulated PostScript” (EPS) format. Most (La)TeX packages for
including PostScript are structured to use Encapsulated PostScript;
which of course leads to much hilarity as exasperated (La)TeX users
struggle to cope with the output of drawing software whose authors
don’t know the rules.
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=eps">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=eps</a>
</body>
|