I know that \input is a macro in LaTeX. Nonetheless, through some magic I have never tried to track down, both \input diagxy and \input{diagxy} both give the same result. Michael Barr