here a not-so MWE:


[3.8em] % ie, 1.5em (chapter) + 2.3em


\chapter{First Chapter}
\section{First Section}
In section \ref{two} (this should be (A.1))

\chapter{Second Chapter}
\section{Second Section}
\ref{one} haha


In the \tableofcontents I want the chapter not to appear for the sections. However, if I reference something, I want the chapter to appear in the reference.

How can I set the \titlecontents using the titletoc package so that it doesn't display the chapterlabel?

Thanks for the help.


Use \p@section, the prefix that's used for cross references, but not when generating the counter's representation:


enter image description here

enter image description here

  • Hi, this works perfectly in the MWE I provided, however not in the PhD thesis I'm writing. What in hell is causing it, no idea. So I want to use titletoc now to do this. I updated the question. – Philipp Sep 21 '15 at 11:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.