title: How to cross-reference a footnote in bookdown?
body: <p>Bookdown have many cross-reference features. However, I was unable to find a solution to my problem.</p>
  
  <p>Assume you have a <code>footnote[^1]</code> in the body of the document. Then you define the footnote as:</p>
  
  <pre><code>[^1]: Here is my footnote.
  </code></pre>
  
  <p>Now assume that you want to cross-reference that footnote. For example, see footnote <code>\@ref(label)</code>. I tried some different options with no success (like using <code>{#label}</code> after the footnote definition in <code>[^1]</code> or using <code>\@ref(^1)</code> as if <code>^1</code> was the label). </p>
  
  <p>Maybe there is a simple solution to this and I am missing it. Or maybe it is necessary to have a specific structure as for figures <code>\@ref(eq:label)</code> and tables <code>\@ref(tab:label)</code>. Something like <code>\@ref(foot:label)</code> where we can insert a <code>{#label}</code> or <code>(#foot:label)</code> at the definition of footnote. Like</p>
  
  <pre><code>[^1]: Here is my footnote.{#lab}
  </code></pre>
  
  <p>or </p>
  
  <pre><code>[^1]: Here is my footnote.(#foot:lab)
  </code></pre>