title: How to choose the text use in a cross-reference with Sphinx?
body: <p>Using sphinx, I included a figure using the following syntax.</p>
  
  <pre><code>.. _struct_NiO:
  
  .. figure:: img/NiO.png
     :align: center
     :width: 400px
  
     long long very long caption ...
  </code></pre>
  
  <p>In another part of the text I used </p>
  
  <pre><code>See figure :ref:`struct_NiO` bla bla bla
  </code></pre>
  
  <p>in order to do a cross reference to the figure. This work, but the output looks like :</p>
  
  <p>See figure "long long very long caption ..." bla bla bla.</p>
  
  <p>This is the normal behavior of sphinx, but if you have a figure a little bit complicated with a 3 or 4 lines caption it is no really adapted.</p>
  
  <p>Is it possible to select the text used in the cross reference ?</p>