If you look around the TeX Stack Exchange, you'll see a lot of people asking how to omit section numbering. However, the problem I'm having with a particular conference paper template is that it is, by default, omitting section/subsection numbering, when in fact I need them to be displayed.
I honestly don't know where to look for a solution. I tried searching STY file for a clue, but since I have no experience with defining templates, I couldn't really tell.
Here are the section and subsection definitions for the template.
\renewcommand\section{\@startsection{section}{1}{\z@}%
{-6\p@ \@plus -4\p@ \@minus -4\p@}%
{0\p@ \@plus 4\p@ \@minus 4\p@}%
{\normalfont\XIIIPT\bfseries\boldmath
\rightskip=\z@ \@plus 8em\pretolerance=10000 }}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{-6\p@ \@plus -4\p@ \@minus -4\p@}%
{0\p@ \@plus 4\p@ \@minus 4\p@}%
{\normalfont\normalsize\bfseries\boldmath
\rightskip=\z@ \@plus 8em\pretolerance=10000 }}
Any help would be deeply appreciated.
EDIT: For bevity's sake, here's a link to download the template in its entirety.
\documentclass{article} \newcommand\XIIIPT{} \makeatletter <your code> \makeatother \begin{document} \section{a} \subsection{b} \end{document}I do get numbered sections/subsections, so something you haven't showed us is causing the missing numbers. (For example,\setcounter{secnumdepth}{-1}would remove the numbering.) – Torbjørn T. Mar 16 '18 at 14:33secnumdepthlow enough sections won't be numbered, but it would be odd to change that in a document. If the house style for some publication is unnumbered sections then that's presumably what they want. – David Carlisle Mar 16 '18 at 14:39sbc-template.tex. Are there any other example? – samcarter_is_at_topanswers.xyz Mar 16 '18 at 14:51