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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>C. Making GMT Encapsulated PostScript Files</TITLE>
<META NAME="description" CONTENT="C. Making GMT Encapsulated PostScript Files">
<META NAME="keywords" CONTENT="GMT_Docs">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="GMT_Docs.css">
<LINK REL="next" HREF="node121.html">
<LINK REL="previous" HREF="node109.html">
<LINK REL="up" HREF="GMT_Docs.html">
<LINK REL="next" HREF="node121.html">
</HEAD>
<BODY bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html2730"
HREF="node121.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A>
<A NAME="tex2html2724"
HREF="GMT_Docs.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A>
<A NAME="tex2html2718"
HREF="node119.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A>
<A NAME="tex2html2726"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A>
<A NAME="tex2html2728"
HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A>
<BR>
<B> Next:</B> <A NAME="tex2html2731"
HREF="node121.html">D. Availability of GMT</A>
<B> Up:</B> <A NAME="tex2html2725"
HREF="GMT_Docs.html">The Generic Mapping Tools</A>
<B> Previous:</B> <A NAME="tex2html2719"
HREF="node119.html">B.3 Sun raster files</A>
  <B> <A NAME="tex2html2727"
HREF="node1.html">Contents</A></B>
  <B> <A NAME="tex2html2729"
HREF="node149.html">Index</A></B>
<BR>
<BR>
<!--End of Navigation Panel-->
<H1><A NAME="SECTION001800000000000000000">
C. Making </A><A NAME="tex2html598"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> Encapsulated <I>PostScript</I> Files
</H1>
<A NAME="14084"></A>
<A NAME="14085"></A>
<P>
<A NAME="tex2html601"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> can produce both freeform <I>PostScript</I> files and the more
restricted Encapsulated <I>PostScript</I> files (EPS). The former is
intended to be sent to a printer or <I>PostScript</I> previewer, while
the latter is indended to be included in another document
(but should also be able to print and preview). You
control what kind of <I>PostScript</I> that <A NAME="tex2html602"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> produces by manipulating
the PAPER_MEDIA parameter (see the <A NAME="tex2html603"
HREF="../gmtdefaults.html"><I><B>gmtdefaults</B></I></A><A NAME="14129"></A> man
page for how this is accomplished). Note that a freeform <I>PostScript</I> file may contain special operators (such as <TT>Setpagedevice</TT>)
that is specific to printers (e.g., selection of paper tray).
Some previewers (among them, Sun's <I>pageview</I><A NAME="14138"></A>) do not
understand these valid instructions and may fail to image the file.
If this is your situation you should choose another viewer (we
recommend <I>ghostview</I><A NAME="14143"></A>) or select EPS output instead.
<P>
However, there is much confusion over what an EPS file is
and if other programs can read it. Much of this has to do
with the claim by some software manufacturers that their
programs can read and edit EPS files. We used to get much
mail from people asking us to let <A NAME="tex2html604"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> produce EPS files
that can be read, e.g., by Adobe <I>Illustrator</I><A NAME="14151"></A>.
This was a limitation of early versions of Adobe <I>Illustrator</I><A NAME="14156"></A> and
similar programs, not <A NAME="tex2html605"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A>! Since then, Adobe
<I>Illustrator</I><A NAME="14164"></A> and other programs have
improved their abilities to parse freeform <I>PostScript</I> such as that produced
by <A NAME="tex2html606"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A>.
<P>
An EPS file that is to be placed into another application
(such as a text document) need to have correct bounding-box
parameters. These are found in the <I>PostScript</I> Document
Comment %%BoundingBox. Applications that generate EPS
files should set these parameters correctly. Because <A NAME="tex2html607"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> makes the <I>PostScript</I> files on the fly, often with several
overlays, it is not possible to do so accurately. However,
<A NAME="tex2html608"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> does make an effort to ensure that the boundingbox is
large enough to contain the entire composite plot<A NAME="tex2html599"
HREF="footnode.html#foot14094"><SUP>C.1</SUP></A>.
Therefore, if you need a ``tight'' boundingbox you need to post-process
your <I>PostScript</I> file. There are several ways in which this
can be accomplished.
<P>
<UL>
<LI>Programs such as Adobe <I>Illustrator</I><A NAME="14186"></A>, Aldus
<I>Freehand</I><A NAME="14191"></A>, and Coral <I>Draw</I><A NAME="14196"></A> will allow you
to edit the boundingbox graphically.
<P>
</LI>
<LI>A command-line alternative is to use freely-available
program <I>epstool</I><A NAME="14201"></A> from the makers of Aladdin
<I>ghostscript</I><A NAME="14206"></A>. Running
<BR>
<P>
<TT>epstool -c -b yourplot.ps</TT>
<BR>
<P>
should give a tight BoundingBox; <I>epstool</I><A NAME="14211"></A> assumes the plot
is page size and not a huge poster.
<P>
</LI>
<LI>Another option is to use <I>ps2epsi</I><A NAME="14216"></A> which also comes
with the <I>ghostscript</I><A NAME="14221"></A> package. Running
<BR>
<P>
<TT>ps2epsi myplot.ps myplot.eps</TT>
<BR>
<P>
should also do the trick.
<P>
</LI>
</UL>
<P>
If you do not want to modify the illustration but just
include it in a text document: Many word processors (such
as Microsoft <I>Word</I><A NAME="14226"></A> and Coral <I>WordPerfect</I><A NAME="14231"></A>)
will let you include
a <I>PostScript</I> file that you may place but not edit. You won't
be able to view the figure on-screen, but it will print
correctly. All illustrations in this <A NAME="tex2html609"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> documentation were
<A NAME="tex2html610"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A>-produced <I>PostScript</I> files that were converted to EPS files
using <I>ps2epsi</I><A NAME="14244"></A> and then included into a L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X document.
<P>
These examples do not constitute endorsements of the products
mentioned above; they only represent our limited experience
with the problem. For other solutions and further help,
please post messages to
<A NAME="tex2html611"
HREF="mailto:gmthelp@soest.hawaii.edu">gmthelp@soest.hawaii.edu</A>.
<HR>
<!--Navigation Panel-->
<A NAME="tex2html2730"
HREF="node121.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A>
<A NAME="tex2html2724"
HREF="GMT_Docs.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A>
<A NAME="tex2html2718"
HREF="node119.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A>
<A NAME="tex2html2726"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A>
<A NAME="tex2html2728"
HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A>
<BR>
<B> Next:</B> <A NAME="tex2html2731"
HREF="node121.html">D. Availability of GMT</A>
<B> Up:</B> <A NAME="tex2html2725"
HREF="GMT_Docs.html">The Generic Mapping Tools</A>
<B> Previous:</B> <A NAME="tex2html2719"
HREF="node119.html">B.3 Sun raster files</A>
  <B> <A NAME="tex2html2727"
HREF="node1.html">Contents</A></B>
  <B> <A NAME="tex2html2729"
HREF="node149.html">Index</A></B>
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2001-04-18
</ADDRESS>
</BODY>
</HTML>
|