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.
\documentclass[a4paper,11pt]{article}
\usepackage[explicit]{titlesec}
\titleformat{\section}
{\fontsize{28}{24}\headingfont}%format
{\makebox[0pt][r]{%
\headingfontlight\thesection\hskip 9pt}}%
{0pt}
{\makebox[\dimexpr\linewidth][l]{%
\parbox{\dimexpr\textwidth+\marginparwidth+\marginparsep\relax}
{\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.
Would appreciate any ideas.