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

I'd like to add a clickable reference to \paragraph, but instead of having just a clickable number with a dot after it, I'd like to add a \S sign to the link too (NOT the name of the paragraph!) and remove the dot.

For example,


gives me a clickable number of the paragraph, say, "1." (with the dot after the number). How to change it to a clickable text "§ 1" (with sign \S and without a dot)?

share|improve this question
up vote 11 down vote accepted

I suggest you use the cleveref package and its \cref command to create cross-references that automatically contain the name (in this case, symbolic name) of the object being referenced. With the appropriate setup (see the MWE below), you can define both the singular and plural forms of the symbol -- § and §§, respectively -- and get the § (or §§) symbol to be included in the hyperlink automatically.

\crefname{paragraph}{\S}{\S\S} % default is {paragraph}{paragraphs}

\section{Section 1}
\subsection{Subsection 1}
\subsubsection{Subsubsection 1}
\paragraph{Paragraph 1}\label{para:1} Some thoughts \ldots
\paragraph{Paragraph 2}\label{para:2} More thoughts \ldots
\paragraph{Paragraph 3}\label{para:3} Delusions of grandeur \ldots

\section{Section 2}
As we argued in \cref{para:1}, \ldots

As we further argued in \cref{para:2,para:3}, \ldots

enter image description here

share|improve this answer

This seems to work:

\setcounter{secnumdepth}{3}     % this line can be removed


\paragraph{Name:}\label{sec:p1} Here some Text

We have seen in  \ref{sec:p1}, \dots

If you don't want the paragraphs to be numbered, \secnumdepth must be less than 4.

share|improve this answer

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.