I want to make section headings in an article-class document both multiline and having lables on thier margins.

I'm using two boxes: one for a label and another one for text to force it to split.

                \headingfontlight\thesection\hskip 9pt}}%
            {\raggedright #1}}}

This code works well but has one loose end: a section label is placed in the center of a heading box instead of its top.

enter image description here

Would appreciate any ideas.


1 Answer 1


Use \parbox[t]. Don't use the explicit option to titlesec, you'll regret it, one day: it's much cleaner to define a separate macro than clobbering the last argument of \titleformat.


  {\makebox[0pt][r]{\headingfontlight\thesection\hskip 9pt}}%

      {\raggedright #1}%

\let\headingfont\selectfont % just for the example


\section{Some long long long long long long long long long long long long heading}


enter image description here

What's the purpose of setting the title at 28pt with a baseline skip of 24pt? Just to get too near lines and uneven spacing?

  • Thanks! «Just to get too near lines and uneven spacing?» — In my view, a heading with huge font and default spacing looks too wide and difficult to read. For instance, this heading has 28pt font size and 28pt spacing, and this one has 28pt font size and 24pt spacing. In my eyes, the second one is more readable.
    – kvaleev
    Nov 10, 2015 at 12:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .