Angus Leeming wrote: > > Too late. Not interested anymore ;-) Someone else can do it if they're > feeling creative.
here is one with the replace (means subst) from my mail Herbert -- http://www.lyx.org/help/
Index: src/insets/ChangeLog =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/ChangeLog,v retrieving revision 1.365 diff -u -r1.365 ChangeLog --- src/insets/ChangeLog 26 Mar 2002 12:17:04 -0000 1.365 +++ src/insets/ChangeLog 26 Mar 2002 13:18:07 -0000 @@ -1,3 +1,7 @@ +2002-03-26 Herbert Voss <[EMAIL PROTECTED]> + + * insetgraphics.C (latex): nice out for missing files. + 2002-03-26 Angus Leeming <[EMAIL PROTECTED]> * insetgraphicsParams.C (Read): revert Herbert's fix and apply the Index: src/insets/insetgraphics.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetgraphics.C,v retrieving revision 1.95 diff -u -r1.95 insetgraphics.C --- src/insets/insetgraphics.C 26 Mar 2002 12:17:04 -0000 1.95 +++ src/insets/insetgraphics.C 26 Mar 2002 13:18:08 -0000 @@ -654,8 +654,10 @@ } // Ditto if the file is not there. if (!IsFileReadable(MakeAbsPath(params().filename, buf->filePath()))) { - os << "\\fbox{\\rule[-0.5in]{0pt}{1in}" - << _("file not found") << "}\n"; + string name = MakeRelPath(params().filename, buf->filePath()); + os << "\\fbox{\\rule[-0.5in]{0pt}{1in}" + << subst(name,"_","\\_") + << _(" not found") << "}\n"; return 1; // One end-of-line marker added to the stream. } // These variables collect all the latex code that should be before and