title: LibreOffice Writer define and use dynamic variables for caption labels
body: <p>When you insert a caption it automatically increments the value for the caption number e.g if I insert a caption named "Illustration" for each image in my document, LibreOffice will automatically append an integer to my caption such that I get "Illustration 1", "Illustration 2", "Illustration 3" ....</p>
  
  <p>I'm writing a document and sometimes refer to the illustrations in the text. But the diagram for "Illustration 2" may change if I add a new image before it.</p>
  
  <p>Is there a way to dynamically bind the auto increment as a variable in my text? I.e if I add 3 images before "Illustration 2", the image it refers to will become ""Illustration 5".</p>
  
  <p>Can I make my text now refer to "Illustration 5" instead of "Illustration 2"?</p>