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?
[bar]
is optional between\cite
and{foo}
. I tried to find the definition of the function byfind-function
but it fails