I'm working on an article and I don't want to number my sections. However, I do want my subsections and subsubsections to be numbered.
Right now my document has this numbering, but the 0 in 0.X.Y should not be there. How can I fix that?
Currently:
Section
0.1 subsection
0.2 subsection
0.2.1 subsubsection
0.3 subsection
Should be:
Section
1. subsection
2. subsection
2.1 subsubsection
3. subsection
This is my code:
\documentclass{article}
\begin{document}
\section*{Section}
\subsection{subsection}
\subsection{subsection}
\subsubsection{subsubsection}
blah
\subsection{subsection}
\end{document}
PS: I did search a on the web and found a lot on this topic, but not a solution to this particular thing.
Best Answer
If you're interested in printing
\section{<heading>}
in a similar way that\section*{<heading>}
would print (that is, flush left and not indented), thentitlesec
provides an easy interface:This just sets the label separator between the section number and title to
0pt
, as well as not printing the number.\normalfont\bfseries\Large
is the default formatting forarticle
.