My dissertation is several chapters, each written in a different .tex file. How can I reference the chapter number from one chapter in the text of another? For example, how would I produce
'... will be discussed more thoroughly in chapter 3.'
where '3' is dynamically generated based on its order in the list of chapters included (using \include) in the master file?
\chapter{your title here}\label{anynameyouwantnospaces}and then\ref{anynameyouwantnospaces}. also check out thecleverefandvariorefpackages – cmhughes Feb 14 '14 at 22:33\refcommand. I'm compiling with XeLaTeX, if that makes a difference. – ToddAO Feb 16 '14 at 05:33nameref(which is a part ofhyperref). – Júda Ronén Feb 17 '14 at 14:30