TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In some papers and books you see that author uses §1.3 instead of section 1.3. How § sign can be added before section (or part, chapter, ...) number automatically? Please mention any useful tip about this style.

see also: Fancy cross-referencing

share|improve this question
up vote 27 down vote accepted

You could use the cleveref package and redefine \crefname{section}:






Some text.


As explained in \cref{sec:foo}~\dots


enter image description here

share|improve this answer
+1 you can avoid inputenc by using \S – cmhughes Jun 15 '12 at 3:59
@lockstep Little late to the party here, but can the space after § be removed? – jstephenson Feb 22 '13 at 17:12
@jstephenson Use \crefformat{section}{§#2#1#3}. – lockstep Feb 24 '13 at 11:42

hyperref provides \autoref{<label>} that checks the counter used in the reference and sets a label with a prepended \<counter>autorefname. Here's a small example:

enter image description here

\usepackage{hyperref}% http://ctan.org/pkg/hyperref
\section{A section}
\section{Another section}\label{another-section}
share|improve this answer
What I have done is the past is also redefined \subsectionautorefname and \subsubsectionautorefname to be the same as \sectionautorefname so that you can get "See § 2.1" or "See § 3.2.1". If one also uses autopageref, one can also redefine \pageautorefname to "p." to get "See § 3.2 on p. 4" – ArTourter Jun 14 '12 at 18:39

Often forgotten is the macro \p@<counter>. If LaTeX generates a reference value, this is not just \the<counter> but \p@<counter>\the<counter>. If a new counter is defined, \p@<counter> is defined empty. But it can be redefined to add a prefix, for example. Thus there is no need for additional packages.




\section{Hello World}
\subsection{Subsection A}
\subsection{Subsection B}
\subsection{Subsection C}

See \ref{sec:C} inside \ref{sec:hello}.
share|improve this answer
Should that be \renewcommand*{\p@subsection}{\S\S\,} instead? – J. C. Salomon Aug 7 '12 at 5:03
The double form of the section sign is used, if it refers to the plural form. – Heiko Oberdiek Aug 7 '12 at 6:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.