Inline referencing chapters, sections, subsections, etc I am currently in the process of writing my Master's thesis using the LaTeX class supplied by my university. This class uses a document structure similar to report: Starting with chapters, then sections, then subsections and so on. Citation style is IEEE, if that's important.
What is the correct way to reference all these text-divisions within my flow-text, especially when reaching \subsection{} level and below?
Example A

As shown in chapter &quot;Foo&quot; and section &quot;Bar&quot;, [...].
[...], for further details see subsection &quot;Baz&quot; and subsubsubsection &quot;Qux&quot;.

or Example B

As shown in section &quot;Foo&quot; and section &quot;Bar&quot;, [...].
[...], for further details see section &quot;Baz&quot; and section &quot;Qux&quot;.

or something completely different?
You can use command label, e.g.,

\section{My Section}\label{section:MySection}
\subsection{My Subsection}\label{section:MySubsection}

Then you can use:

...Sections~\ref{section:MySection} and \ref{section:MySubsection}...