Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Emacs reftex has a command reftex-create-bibtex-file that searches the current .tex file and creates a bibliography (.bib) of all cited works. The problem is, that while it picks up \cite{foo} it doesn't spot \cite[bar]{foo} which is annoying. Is there a way to make this function recognise (and ignore) option arguments on cite macros?

share|improve this question… refers to the same problem. I guess this problems can be solved if one manages to redefine the regexp in the function such that [bar] is optional between \cite and {foo}. I tried to find the definition of the function by find-function but it fails – N.N. Feb 6 '12 at 18:48

You must log in to answer this question.

Browse other questions tagged .