I'd like my section headings to be displayed directly after the section numbering with no space in between.
This should be the case regardless of the number.
Something like this:
1. A section heading
2. Another section heading
...
1526. Yet another section
Currently I'm using titlesec
with
\titleformat{\section}{\large\bfseries}{\makebox[1pt][l]{\thesection}}{12pt}{}
but this causes heading and large numbers to overlap.
Best Answer
Update: there's an easier solution with
titlesec
: the\thetitle
command is respectively\thesection
,\thesubsection
, etc. The default value in standard classes is:which means that after the number, an space of
1em
is inserted; to change this behaviour is enough then to redefine\thetitle
to add a dot and then a space:A complete example:
One possibility using the
titlesec
package affecting\section
through\subparagraph
:I can't upload images; will do it later.