title: Referring to a table in LaTeX
body: <p>How can you refer to a table number such that you get <code>Table 7</code> for instance?</p>
  
  <p>Sample data</p>
  
  <pre><code>Table \ref{table:questions} lorem lorem ipsun.
  
  \begin{table}
  \label{table:questions}
  \begin{tabular}{| p{5cm} | p{5cm} | p{5cm} |}
    -- cut --
  \end{tabular}
  \end{table}
  </code></pre>
  
  <p>I get </p>
  
  <pre><code>Table 2.5 lorem lorem ipsun.
  </code></pre>
  
  <p>where 2.5 is the chapter number.</p>