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 thecleveref
andvarioref
packages\ref
command. I'm compiling with XeLaTeX, if that makes a difference.nameref
(which is a part ofhyperref
).