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
|
<head>
<title>UK TeX FAQ -- question label epsf</title>
</head><body>
<h3><code>epsf</code> gives up after a bit</h3>
<p>Some copies of the documentation of <i>epsf.tex</i> seem to suggest
that the command
<pre>
\input epsf
</pre>
is needed for every figure included. If you follow this suggestion
too literally, you get an error
<pre>
! No room for a new \read .
</pre>
after a while; this is because each time <i>epsf.tex</i> is loaded, it
allocates itself a <em>new</em> file-reading handle to check the figure
for its bounding box, and there just aren't enough of these things
(see <a href="FAQ-noroom.html">no room for a new thing</a>).
<p>The solution is simple - this is in fact an example of misuse of
macros; one only need read <i>epsf.tex</i> once, so change
<pre>
...
\input epsf
\epsffile{...}
...
\input epsf
\epsffile{...}
</pre>
(and so on) with a single
<pre>
\input epsf
</pre>
somewhere near the start of your document, and then decorate your
<code>\</code><code>epsffile</code> statements with no more than adjustments of
<code>\</code><code>epsfxsize</code> and so on.
<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=epsf">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=epsf</a>
</body>
|