title: Referencing figures with numbers in Sphinx and reStructuredText
body: <p>When writing RST that will be processed with <a href="http://sphinx.pocoo.org/index.html" rel="noreferrer">Sphinx</a>, I can't get Sphinx LaTeX output to use figure numbers when referencing figures. For instance, this code:</p>
  
  <pre><code>The lemmings are attacking, as can be seen in :ref:`figlem`.
  
  .. _figlem:
  
  .. figure:: _static/lemming_invasion.* 
  
     They're coming!
  </code></pre>
  
  <p>Will be converted into this:</p>
  
  <blockquote>
    <p>The lemmings are attacking, as can be
    seen in <em>They're coming!</em></p>
    
    <p>/image goes here/</p>
    
    <p>Figure 1.1: They're coming!</p>
  </blockquote>
  
  <p>But what I want is the "standard" LaTeX way of referencing figures, like this:</p>
  
  <blockquote>
    <p>The lemmings are attacking, as can be
    seen in Figure 1.1</p>
  </blockquote>
  
  <p>How do I achieve this? The code I'm currently using is what the Sphinx manual recommends, but it doesn't produce the output I want.</p>