title: Create tags file for latex for labels and bib items
body: <p>I'm using <code>ctags</code> to create a tags file for use in Vim, so that I can jump to definitions of labels and citations. However, I have two problems:</p>
  
  <ol>
  <li>ctags includes <code>\ref</code> in the tags file, so when I hit jump on a <code>\ref</code> label, I don't necessarily jump to the definition of the label, but might end up on another reference to that label.</li>
  <li>I'd like to be able to jump to the corresponding entry in a .bib file from a <code>\cite</code> command, but <code>ctags</code> doesn't generate entries for that (I'm using <code>ctags *.tex *.bib</code>).</li>
  </ol>
  
  <p>I wanted to redefine <code>ctags</code>'s definition for tex files, so that I could remove <code>\ref</code> entries, but that didn't work. </p>
  
  <p>My ~/.ctags file:</p>
  
  <pre><code>--langdef=tex2
  --langmap=tex2:.tex
  --regex-tex2=/\\label[ \t]*\*?\{[ \t]*([^}]*)\}/\1/l,label/
  </code></pre>