The current version of the external inset code is not very friendly if the external file does not exist.
> From: Kornelia Pietsch > Date: 2003-07-28 15:04:16 > If the xfig file does not exist (cannot be found), then the > generation of the dvi/pdf file fails. Would be nice to do > as the graphics inset does (a box containing "<file name> not found" > in the resulting dvi/pdf file). > Also, each time we fail to find the xfig file we get a little > error box popping up to tell us. Should have a max of one error box. > Maybe none. I show the relevant part of the xfig template below: Template XFig Format LaTeX Product "\\input{$$Basename.pstex_t}" UpdateFormat pstex UpdateResult "$$Basename.pstex_t" Requirement "graphicx" FormatEnd TemplateEnd It seems to me that there are two possible solution strategies. 1. Output some clever latex in the 'Product' line. Something along the lines of (psuedo code) if (exists($$Basename.pstex_t)) \\input{$$Basename.pstex_t} else \\fbox{$$Basename.pstex_t not found} This puts the responsibility on LaTeX to do the right thing. Other export formats will continue to work AFAICS. 2. Extend the ExternalTemplate syntax to accommodate a ProductFailed command Product "\\input{$$Basename.pstex_t}" ProductFailed "\\fbox{$$Basename.pstex_t not found}" This leaves us with the responsibility to check that the conversion (ie generation of "UpdateResult") has succeeded. Personally, I favour approach #1, but my latex knowledge is not up to the task. Can some guru help me out? -- Angus