Herbert Vo� schrieb:


[EMAIL PROTECTED] \renewcommand{\include}[1]{% [EMAIL PROTECTED]@warnNotFound{#1}}% }

this is not elegant, because you have a double check for
the existence of the file, but it does what you want ...

here is the whole example, which worked for me.


Herbert



\documentclass{article}
\usepackage{verbatim}
\makeatletter
%% Print a warning encased in an fbox.
[EMAIL PROTECTED]>{}
[EMAIL PROTECTED]
        [EMAIL PROTECTED]
        \fbox{Could not find %

[EMAIL PROTECTED]@lyxtempfilename!}
        \typeout{Could not find [EMAIL PROTECTED]
}
%% Input the file if it exists, using \input, else print a warning
[EMAIL PROTECTED]
\renewcommand{\input}[1]{%
    [EMAIL PROTECTED]@warnNotFound{#1}}%
}
[EMAIL PROTECTED]
\renewcommand{\include}[1]{%
    [EMAIL PROTECTED]@warnNotFound{#1}}%
}
[EMAIL PROTECTED]
\renewcommand{\verbatiminput}[1]{%
    \IfFileExists{#1}{%
                [EMAIL PROTECTED]@[EMAIL PROTECTED]
        [EMAIL PROTECTED]
}
\makeatother

\begin{document}

....

\end{document}




Reply via email to