>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> Guys, the attached file works well enough, but it's rather
Angus> inelegant. I have defined a macro, so:
Angus, I am not sure what was the concusion of this thread, but let me
propose a \DoOrWarn variant:
%% Do command #1 if file #2 exists, else print a warning
\newcommand{\DoOrWarn}[2]{
\IfFileExists{#2}{#1{#2}}{\warnNotFound{#2}}
}
%% Input the file if it exists, else print a warning
\newcommand{\verbatiminputOrWarn}[1]{%
\DoOrWarn{\verbatiminput}{#1}
}
%% Input the file if it exists, else print a warning
\newcommand{\verbatiminputStarOrWarn}[1]{%
\DoOrWarn{\verbatiminput*}{#1}
}
As you can see, \verbatiminputOrWarn and are now so trivial that they
should be removed \verbatiminputStarOrWarn, and the only preamble bit
would be \warnNotFound and \DoOrWarn (the name being arbitrary).
JMarc