[Tex/LaTex] Section numbers disappear


I don't have enough reputation to write a comment, so I have to ask a separate question instead.

I tried Gonzalo Medina's answer to this question: How to add an extra level of sections with headings below \subsubsection

It seems to work fine, except that section headings don't have numbers, as can be seen on my screenshot. Does anyone know how I can fix this?

enter image description here

Edit: I am talking about Gonzalo Medina's second solution in the link above.

Best Answer

As suggested by egreg in the comments of the question, the solution was as simple as updating the packages. I didn't know that the texlive package available in the Ubuntu repository was not the most up to date. I followed the instructions on the link below to get the most updated version of texlive and now it works.


Related Question