title: References with text in LaTeX
body: <p>In LaTeX you can easily reference a section by using <code>\label{}</code> next to a section and then <code>\ref{}</code> to create the reference. However, the reference only includes the number of the section, or the page with <code>\pageref{}</code>. I would like to insert a reference containing the text of the section.</p>
  
  <p>Example:</p>
  
  <pre><code>\section{My Section}
  \label{section:my}
  
  This is a reference to Section~\ref{section:my}.
  </code></pre>
  
  <p>The output is the following:</p>
  
  <pre><code>1. My Section
  
  This is a reference to Section 1.
  </code></pre>
  
  <p>I would like to have:</p>
  
  <pre><code>This is a reference to 1. My Section.
  </code></pre>