[Tex/LaTex] Using section sign (§) for cross-references to sections

cross-referencingformattingsymbols

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

Best Answer

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

\documentclass{article}

\usepackage[utf8]{inputenc}

\usepackage{cleveref}
\crefname{section}{§}{§§}
\Crefname{section}{§}{§§}

\begin{document}

\section{foo}\label{sec:foo}

Some text.

\section{bar}

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

\end{document}

enter image description here

Related Question