Welcome to the UK List of
TeX Frequently Asked Questions
on the Web

Searching

The index of Frequently Asked Questions about TeX is searchable.

Please enter your keyword here:   then press here: ,    or:
Google

epsf gives up after a bit

Some copies of the documentation of epsf.tex seemed once to suggest that the command

  \input epsf
is needed for every figure included. If you follow this suggestion too literally, you get an error
  ! No room for a new \read .
after a while; this is because each time epsf.tex is loaded, it allocates itself a new file-reading handle to check the figure for its bounding box, and there just aren’t enough of these things (see no room for a new thing).

The solution is simple — this is in fact an example of misuse of macros; one only need read epsf.tex once, so change

  ...
  \input epsf
  \epsffile{...}
  ...
  \input epsf
  \epsffile{...}
(and so on) with a single
  \input epsf
somewhere near the start of your document, and then decorate your \epsffile statements with no more than adjustments of \epsfxsize and so on.


Go to previous question, or next question

Go to FAQ home.

URL for this question: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=epsf

Comments, suggestions, or error reports? - see “how to improve the FAQ”.

This is FAQ version 3.28, released on 2014-06-10.