I am trying to define a custom section/paragraph command. In this command I want to reserve some vertical space, and disable the runin of the next paragraph.
When defining a command:
\newcommand\stars{\@startsection {stars}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\Large\bfseries}}
I end up with an error regarding a spacefactor. What is the minimum example to achieve this?
! You can't use `\spacefactor' in vertical mode.
\@->\spacefactor
\@m {}
l.518 \stars
titlesecinstead of re-inventing the wheel? – Bernard Jul 11 '21 at 15:59titleformatand\titlespacingwithin the document, and further, you can define new levels. Could you be more explicit as to what you're trying to achieve? – Bernard Jul 11 '21 at 16:16