I have a problem compiling the following document.
First, I have a file macros.sty that consists of :
\newcommand{\test}{
\xymatrix@R=0mm{x}
}
Then, I have an auxiliary file out.aux that consists of :
\test
Finally, the main file is :
\documentclass{article}
\usepackage[all]{xy}
\usepackage{macros}
\begin{document}
\input{out.aux}
\end{document}
The error message is :
./out.aux:1: Undefined control sequence.
\xymatrix@R ->\Addop@@
\xymatrixrowsep@ \dimen@ii
Note that if you remove the R=0mm, the problem no longer holds.
Is that a bug ?
It is very strange because I remember to have already used a command similar to \test in an input file without any problem.
Does it come from my distribution ?
Thank you :)
\inputand\usepackage? Should I prefer\usepackagefor my commands ? – Colas Oct 18 '11 at 16:04\test. – Colas Oct 18 '11 at 16:08\inputand writing\testdirectly in the file. I'd recommend\inputfor your macros. – egreg Oct 18 '11 at 16:14