(Johnathan Burchill): write a message to the latex log file if the

xfig file cannot be found.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7667 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-09-04 23:09:40 +00:00
parent e9c209c298
commit 3b055f124a
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2003-09-05 Johnathan Burchill <jkerrb@shaw.ca>
* external_templates: Write a message to the latex log file if the
xfig file cannot be found.
2003-09-04 Angus Leeming <leeming@lyx.org>
* external_templates: add a new PreambleDef section and use it in the

View File

@ -5,11 +5,13 @@ PreambleDef XFigInput
%% encased in an fbox.
\def\stripprefix#1>{}
\newcommand*{\xfiginput}[1]{%
\edef\tempfilename{#1}%
\InputIfFileExists{#1}{}{%
\fbox{Could not find
\ttfamily\expandafter\stripprefix\meaning\tempfilename
!}}}
\edef\tempfilename{#1}%
\InputIfFileExists{#1}{}{%
\fbox{Could not find
\ttfamily\expandafter\stripprefix\meaning\tempfilename!}
\typeout{xfiginput: Could not find \tempfilename!}
}
}
PreambleDefEnd
Template XFig