title: Ibid. in LaTeX citations
body: <p>How can I get LaTeX to automatically use "Ibid." when two citations to the same source are made?</p>
  
  <pre><code>Here is a sentence with a citation.\footnote{\cite[p.~5]{Smith:1999}}
  This sentence also has a citation.\footnote{\cite[p.~10]{Smith:1999}}
  </code></pre>
  
  <p>Desired:<br>
  Here is a sentence with a citation.[1]  This sentence also has a citation.[2]<br>
  ...<br>
  1. Smith (1999), p. 5<br>
  2. Ibid., p. 10</p>
  
  <p>Actual:<br>
  Here is a sentence with a citation.[1]  This sentence also has a citation.[2]<br>
  ...<br>
  1. Smith (1999), p. 5<br>
  2. Smith (1999), p. 10</p>