# Tag Info

10

This is not basically possible, and I'll try to explain why, on an example. Let's \show\section: \section=\long macro: -> \@startsection {section}{1}{\z@ }{-3.5ex \@plus -1ex \@minus -.2ex}{2.3ex \@plus .2ex}{\normalfont \Large \bfseries } Ok, not much to see, other than that \section takes no arguments at all! So let's \show\@startsection: ...

12

In general, there is no starred version of a command. What really happens is that the unstarred command checks to see if there is a star as the first argument and passes control to different auxiliary macros accordingly, or simply executes two different sets of commands. So, to take a random example, we look at \endlargethispage and find that it is defined ...

5

You don't need to add any \@ifstar to your definitions, because \@startsection already takes care of that. However, some package you are using redefines \@ifstar. For some reason this redefinition uses \new@ifnextchar rather than the standard \@ifnextchar. The old definition would ignore spaces, but this new one does not. You have introduces a space between ...

1

Note how all the default sectional units define their fonts as switches (from article.cls: \newcommand\section{\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\normalfont\Large\bfseries}} ...

Top 50 recent answers are included