[texhax] the command \includeonly{} in LaTeX

David Romano romanod at math.grinnell.edu
Thu Feb 1 19:04:45 CET 2007


I'm not sure if this is the correct forum to ask about this, so please let 
me know if I should be asking this elsewhere:  When I try to use the 
\includeonly and \include commands in a root file, I get a "There were 
undefinded references" message despite having the file which contains the 
\label command among the files used in the \includeonly command.  Below 
are sample files which reproduce this error message.

Thanks for any help!
David Romano

------file label.tex
\begin{enumerate}
\item
Labeled text.
\label{test}
\end{enumerate}
--------------------

------file reference.tex
Where is \ref{test}?
--------------------

------file main.tex
\documentclass[11pt]{article}
\includeonly{
label,
reference
}
\begin{document}
\include{reference}
\end{document}
--------------------



More information about the texhax mailing list