Dear list,

I was wondering if there is a possibility to list all citation keys contained in an org document. I know I could probably use a regular expression on the current buffer that somehow matches on @ things within brackets [ and ], but given that org needs to parse and handle citation constructs anyway, I am sure that there is already some function available which could be taken advantage of rather than writing one entirely from scratch.

That is, if this is my org document:

    This is a sentence with
    citations. [cite:@doe1997foo;cf. @someoneelse2000 p. 3]

I would like to have an Elisp list containing only "doe1997foo" and "someoneelse2000".

The goal I am trying to achieve is to extract a subset .bib file from my global .bib database (which is managed by Ebib) that contains only those entries which I cited in my org document. I only saw that Ebib actually has support for dependant databases which should cover that need, but this requires that this functionality is enabled when the document is started. Now I already have a finished document with all citations alredy in it, so that does not help much. If someone has an idea how to approach this in a more easy way than I am currently envisioning, a pointer is appreciated as well.

Best Regards,
Marvin Gülker

--
Dipl.-Jur. M. Gülker | https://mg.guelker.eu | PGP: Siehe Webseite
Stade, Deutschland   | [email protected]    | O<

Reply via email to