Angus Leeming wrote: Actually, it all boils down to this: How can I escape the special chars in the file name? \verb is no good here of course...
Regards, Angus \documentclass{article} \newcommand{\myinput}[1]{% \InputIfFileExists{#1} {} {\marginpar{Failed to find {\tt #1}}} } \begin{document} This works file: \myinput{somefile} This dies a death \myinput{q13_graph.pstex_t} \end{document}