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.

closed as off-topic by egreg, user31729, Stefan Pinnow, Romain Picot, moewe Aug 4 '16 at 12:57

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Be sure to have an up-to-date version of titlesec; one version had a bug that in some cases prevented section numbers to appear. – egreg Aug 3 '16 at 20:40
  • There are two solutions Gonzalo Medina's answer. Which one are you using? – user36296 Aug 3 '16 at 21:48
  • @samcarter The second one. – OpticAl Aug 4 '16 at 3:31
  • 4
    I'm voting to close this question as off-topic because the issue is solved with a software update – egreg Aug 4 '16 at 12:30
  • 1
    I agree with @egreg. Where is the button to do that? – OpticAl Aug 4 '16 at 12:31

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.


  • I once had ubuntu installed on my laptop and I was highly disappointed by its TeX distribution packages. I deleted that installation and never tried again, but I can hardly remember that anybody recommends using the ubuntu TL packages. Just use the installation provided by TeXLive (i.e. the net installation) – user31729 Aug 4 '16 at 14:24

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