I'm quite new to Latex and I'd like to achieve the following thing.
I want my document to have the following numbering structure:
1. chapter
1.1 section
1.1.1 subsection
A. subsubsection.
(In the TOC I only want the chapters, sections and subsections to be listed.)
I achieved this by adding the following extra lines in the beginning of my LaTex document:
% set section numbering depth
\setcounter{secnumdepth}{3} % 3 => section, subsection, subsubsection
\setcounter{tocdepth}{2} % 2 => section, subsection
% replace subsubsection numbering by single letter
\renewcommand{\thesubsubsection}{\Alph{subsubsection}}
Problem: when I make a reference to this subsubsection, I get something like this:
A
I want this to be formatted like this:
1.1.1.A
Best Answer
Without using additioal packages, you can simply redefine
\p@subsubsection
which controls the prefix used for cross-referencing subsubsection:Am image of the obtained ToC:
And an image of the document body, showing the desired formatting for the headings and the cross-references:
On a side (personal) note, as tohecz has already mentioned, I think this might be confusing since it introduces some level of inconsistency (the string used for the cross-references doesn't really belong to the object that is being referenced).