\section … \paragraph as article.cls defines them. The face is already
bold in the document model (chunk 6 resolves \bfseries into the title's
inline styles), so only the size is supplied here.
\paragraph's afterskip is -1em in article.cls, not a positive ex
value like the other three — negative signals a run-in heading in real
\@startsection, where the title becomes the leading material of the
paragraph that textually follows rather than getting a line (or a
vertical skip) of its own; layoutRunInParagraph in vlist.ts implements
that branch and does not read afterEx at all for paragraph. This entry
(1, ex not em, a plain guess rather than a transcribed value) survives
only as layoutHeading's fallback vertical gap for the rare case nothing
textually follows to run into — see that function's caller in vlist.ts.
\section…\paragraphasarticle.clsdefines them. The face is already bold in the document model (chunk 6 resolves\bfseriesinto the title's inline styles), so only the size is supplied here.\paragraph's afterskip is-1eminarticle.cls, not a positiveexvalue like the other three — negative signals a run-in heading in real\@startsection, where the title becomes the leading material of the paragraph that textually follows rather than getting a line (or a vertical skip) of its own;layoutRunInParagraphinvlist.tsimplements that branch and does not readafterExat all forparagraph. This entry (1, ex not em, a plain guess rather than a transcribed value) survives only aslayoutHeading's fallback vertical gap for the rare case nothing textually follows to run into — see that function's caller invlist.ts.