latexmk doesn't handle the following: \newcommand{\tpic}[1]{\input{#1}\centerline{\box\graph}} It complains that it can't find the file #1 in my search path.