Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!mcsun!ukc!icdoc!sot-ecs!Sebastian From: S.P.Q.Rahtz@ecs.soton.ac.uk (Sebastian Rahtz) Newsgroups: comp.text.tex Subject: making psfig act sensibly Message-ID: <16230.9010091836@cameron.ecs.soton.ac.uk> Date: 9 Oct 90 18:36:58 GMT Sender: spqr@ecs.soton.ac.uk Lines: 27 A reluctant LaTeX user here got miffed at the wonderful \psfig macros because they failed to report accurately that a PS file was missing, as opposed to being malformed. My suggestion is to change \@p@@sfile (and \@p@@sfigure} as follows, so that the error is explicitly reported, but the job carries on, writing merely a FAILED message where the file should have been (imitating \psdraft by increasing \@p@scost). No doubt someone will tell me that LaTeX should stop and give an error - suggestions? Sebastian \def\@p@@sfile#1{\def\@p@sfile{FAILED:#1}% \openin1=#1 \ifeof1\closein1% \openin1=\figurepath#1 \ifeof1\typeout{ERROR! PostScript file #1 not found} \@p@@sbbllx{100bp} \@p@@sbblly{100bp} \@p@@sbburx{200bp} \@p@@sbbury{200bp} \def\@p@scost{200} \else\closein1 \edef\@p@sfile{\figurepath#1}% \fi% \else\closein1% \def\@p@sfile{#1}% \fi}