Angus Leeming schrieb:
Guys, the attached file works well enough, but it's rather inelegant. I have defined a macro, so:

\newcommand*{\verbatiminputOrWarn}[1]{%
        \IfFileExists{#1}{\verbatiminput{#1}}{\warnNotFound{#1}}
}
> [...]

I would use the internal stuff.

\usepackage{verbatim}
\makeatletter
[EMAIL PROTECTED]>{}
[EMAIL PROTECTED]
        \IfFileExists {#2}{%
                [EMAIL PROTECTED] #1\relax
        [EMAIL PROTECTED]@[EMAIL PROTECTED]@doendpe%
        }{%
                \def\tempfilename{#2}%
                \fbox{Could not find%
                [EMAIL PROTECTED]
                \typeout {No file #2.}\endgroup%
        }%
}
\makeatother


and now you can call verbatiminput as usual, with a star. too.


Hebrert




Reply via email to