I have a multi-part project where I'm using a custom format for subsubsection cross-references:
\labelformat{subsubsection}{Pt~\arabic{part}, Ch~\thechapter, Sec~\thesubsubsection}
Pt 1, Ch 2, Sec 3.4.5
This displays the Part, Chapter, and subsubsection numbers, and is fine for when referencing between different chapters.
When referencing something elsewhere within the same chapter, I would like to drop the Part and Chapter numbers, so it instead appears as:
\labelformat{subsubsection}{Sec~\thesubsubsection}
Sec 3.4.5
Is this possible while still keeping the original behaviour for references between different chapters? Many thanks.