Uses latex .aux file to extract citation keys

lyx_citekeys(auxfile = NULL)

Arguments

auxfile

Path to a latex aux file (see details for default behaviour)

Value

A character vector of citation keys in the order in which they are cited in the LyX document.

Details

The required input is not the LyX file itself, but rather the auxfile produced by a latex/bibtex run (note this is also produced by biblatex). When auxfile=NULL the current_lyx_tempfile is used to determine the appropriate auxfile.

auxfiles do seem to have a variety of different formats for recording the citekey list - this function has been tested for files processed using natbib + bibdesk.

See also