title: How to use LaTeX section numbers in Pandoc cross-reference
body: <p>The <a href="https://pandoc.org/MANUAL.html" rel="noreferrer">Pandoc documentation</a> says that cross references can be made to section headers in a number of ways. For example, you can create your own ID and reference that ID. For example:</p>
  
  <pre><code># This is my header {#header}
  </code></pre>
  
  <p>Will create an ID with value '#header' that can be refenced in the text, as such:</p>
  
  <pre><code>[Link to header](#header)
  </code></pre>
  
  <p>Which will display the text 'Link to header' with a link to the header.</p>
  
  <p>I couldn't find anywhere how to make the text of the link be the section number when compiled as a LaTeX document. </p>
  
  <p>For example, if my header is compiled to '1.2.3 Section Header', I want my cross-reference to text to display as '1.2.3'.</p>