1

This question already has an answer here:

It seems that no ones asked this before. I have an unwanted indent in the second line of the subsection title. I was wondering if anybody knows how to get rid of it. Near I provide a minimal example. Thanks in advance!

    \documentclass[a4paper,14pt]{article}
    \usepackage{cmap}                   
    \usepackage[T2A]{fontenc}           
    \usepackage[utf8]{inputenc}         
    \usepackage[english,portuguese, main=russian]{babel}    

    \usepackage{blindtext}
    \usepackage{titlesec}
    \usepackage[toc, page]{appendix}


    \begin{document}
    \section{Section One}
    \subsection{The heading of this subsection is too long to fit in just one line. The indent after the first line is unwanted}
    \end{document}

enter image description here

marked as duplicate by egreg sectioning Apr 9 '17 at 13:47

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    Welcome to the site. Your document, when compiled on my system, does not look like your posted output. Rather, the section and subsection are numbered, and the rows of the subsection title are left aligned. – Steven B. Segletes Mar 15 '17 at 17:00
  • Hi Steven! Yeap it's weird... When I compile this piece of code online in Share LaTeX it looks normal as you've just said. But in TeXStudio that I use on my desktop it looks like on the image I provided above... – Анастасия Кузнецова Mar 15 '17 at 17:22
  • 2
    Perhaps you should check to see if some of your packages are out of date... – Steven B. Segletes Mar 15 '17 at 17:25
  • titlesec once had a bug that removed the numbering. An update should fix that. Check the log file where article.cls is being loaded from. You might have a changed version. – Johannes_B Mar 16 '17 at 17:15
  • Is there any news here? – Johannes_B Apr 2 '17 at 11:17
1

The problem was solved by manually updating the titlesec package from 2.10.1 version to 2.10.2, not through the tlmgr package manager. The section numbering was restored, titles of the sections are displayed correctly.

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