Here is my problem : in the titles of my sections and subsections, labels don't appear, leaving titles with only text (no numbers as "1.1.", etc.). A important remark is that this problem does not occur when building my document on another computer (at work)... I have no other problems with my document, and every other labeling (cross references for instance) works perfectly fine.

I use the texlive package. Here is a MWE, showing all the packages I use for my document, and the corresponding output :


% ========
% ========
\usepackage[top = 2 cm, bottom = 2 cm, inner = 2 cm, outer = 2 cm]{geometry}



% <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>

\chapter{First chapter example}

\section{First section example}
\subsection{First subsection example}
\subsection{Second subsection example}

\section{Second section example}


![enter image description here]1

Any ideas ?


Following the link of touhami in his/her comment on my above post, I tried the solution of egreg, which consists in the following five lines to add just after the \usepackage{titlesec} :


After that, my problem was solved. Thanks a lot touhami for your reference !

| improve this answer | |

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