# Centered section number without section name

How to achieve the stated in the title with the symbol § followed by the section number without the section name. Thank you for any suggestions.

Assuming you're using a not-too-unusual document class, you can achieve your typesetting objective by loading the sectsty package, issuing the \sectionfont directive, and redefining \thesection.

\documentclass{article}
\usepackage{sectsty}
\sectionfont{\centering}
\renewcommand{\thesection}{\S\arabic{section}}
\begin{document}
\noindent
abc
\hrule
\section{}
\hrule
\bigskip
\section{}
\hrule
def
\end{document}

• Thank you. Is it possible to have space between § and the section number ? And how can I call the section number followed by § ? – Eureka Jul 22 '18 at 2:47
• @Fib1123 - On your first question: Just replace {\S\arabic{section}} with {\S\ \arabic{section}}, for an interword space in the code shown above, or {\S\quad \arabic{section}} for a "quad" of space. On your second question: do try {\arabic{section} \S}`. – Mico Jul 22 '18 at 5:23