# Add paragraph symbol to section

I would like to ask how can I add the paragraph symbol § so that it will be displayed as below:

§4 First section

§5 Second section

By default it is generated as below when a \section command is used :

4 First section

5 Second section

Edit: Code below

\renewcommand{\thesection}{\S\arabic{section}}


is one solution but adds § also with \subsection command. Is there another solution?

-
Have you seen question how-can-i-number-paragraphs... and my answer there? –  Kurt Aug 10 '13 at 19:53
No, I don't. But I see you solve my problem. Question is replaced/duplicated. I use just \renewcommand{\thesection}{\S\arabic{section}} –  Mateusz Czerwiński Aug 10 '13 at 19:57
Pay attention that it also adds the same symbol in \subsections. –  karlkoeller Aug 10 '13 at 19:59
You can also see Changing the section format for a package free version. –  egreg Aug 10 '13 at 20:29
Note that § is the section sign, not the paragraph sign (the "pilcrow" ). See the Wikipedia articles for the Section Sign (en.wikipedia.org/wiki/Section_sign) and the Paragraph Sign (en.wikipedia.org/wiki/Pilcrow). –  jvriesem Mar 12 at 5:29

Perhaps the quickest way is to use the titlesec package:

\documentclass{article}
\usepackage{titlesec}

\titleformat{\section}
{\normalfont\Large\bfseries}{\S\thesection}{1em}{}

\begin{document}

\section{Test section}
\subsection{Test subsection}
\section*{An unnumbered test section}
\section{Another test section}
\subsection{Another test subsection}

\end{document}


-