# paragraph numbering

I am using the paragraph section head, i.e.,

\paragraph{This is a cool paragraph}

I would like it to compile with numbering. If I change the secnumdepth (i.e., \setcounter{secnumdepth}{4}) this will work, but produce the "wrong" type of numbering, i.e.,

1.1.1.1 This is a cool paragraph

1.1.1.2 This is another cool paragraph etc.

What I would like is

1 This is a cool paragraph

2 This is another cool paragraph

or, if not,

1.1 This is a cool paragraph

1.2 This is another cool paragraph

where the first 1 indicates the section number and suppresses the subsection and subsubsection numbers. Can this be done?

• \paragraph is a 4th level heading and should only be used in the sequence section,subsection,subsubsection,paragraph. You should either use \section for top level sections or itemize and \item Apr 19 '16 at 19:34
• having said that, \renewcommand\theparagraph{\arabic{paragraph}} will get rid of all the prefixed numbers Apr 19 '16 at 19:41
• I think the OP just wants to suppress the unwanted numbers, but uses the hierarchy in the usual way. Apr 19 '16 at 19:54
• Isn't this the same problem? Apr 19 '16 at 20:53
• @AlexNelson: Yup. Apr 20 '16 at 8:25

Here's an enumitem way instead of \paragraph. The paragraphlisti counter is reset by each subsubsection step (if such levels are used at all)

David Carlisle's comment about \renewcommand{\theparagraph}{\arabic{paragraph}} is of course the easiest way!

\documentclass{article}

\usepackage{chngcntr}
\usepackage{enumitem}

\newlist{paragraphlist}{enumerate}{1}

\setlist[paragraphlist,1]{leftmargin=*,label={\bfseries \arabic*}}

\counterwithin{paragraphlisti}{subsubsection}

\begin{document}

\section{Foo}

\subsection{Foo sub}

\subsubsection{Foo subsub}

\begin{paragraphlist}

\item New Paragraph

\item Other Paragraph
\end{paragraphlist}

\section{Bar}

\subsection{Bar sub}

\subsubsection{Bar subsub}

\begin{paragraphlist}

\item New Paragraph

\item Other Paragraph
\end{paragraphlist}

\end{document}

In the article class the hierarchy of levels is \section -> \subsection -> \subsubsection -> \paragraph. Paragraphs don't get numbers.

In the book class the hierarchy of levels is \chapter -> \section -> \subsection -> \subsubsection -> \paragraph

If you want to use custom numbering for paragraphs, call their values and edit their counters. i .e.

\setcounter{paragraph}{1}
\paragraph{\arabic{paragraph} New Paragraph}
Text here
\stepcounter{paragraph}
\paragraph{\arabic{paragraph} Other Paragraph}
Text here

But this is doing it by force and is not recommended. It misses the purpose of LaTeX.