title: Cross-referencing Chapter numbers or names by rmarkdown
body: <p>In trying to find a way in Rmarkdown for cross-referencing chapters which were auto-numbering and/or by its named to do something like</p>
  
  <pre><code>"As I explained hundred pages ago in \ref{ch:Chapter_Label}....."
  </code></pre>
  
  <p>and then the generated pdf document produced has something like:</p>
  
  <pre><code>"As I explained hundred pages ago in Chapter 3....."
  </code></pre>
  
  <p>or </p>
  
  <pre><code>"As I explained hundred pages ago in &lt;Chapter Name&gt; ....."
  </code></pre>
  
  <p>I was thinking in some mechanism like:</p>
  
  <pre><code>\chapter{My_Title} \label{ch:1}
  </code></pre>
  
  <p>And then everywhere inside the text I use <code>\ref{ch:1}</code> I would get either the "My_Title" or the "Chapter 1" (or whatever auto-numbering it got) embedded by the text. </p>
  
  <p>Seemed the hyperref package is not working by Rmarkdown or I'm missing something. </p>
  
  <p>Does anybody can help me? </p>