jabref icon indicating copy to clipboard operation
jabref copied to clipboard

Auto-create groups from AUX file

Open stefan-kolb opened this issue 10 years ago • 6 comments

Create groups of papers cited in a paper via an aux-file

stefan-kolb avatar Aug 02 '16 12:08 stefan-kolb

The same as "Tools --> New Subdatabase based on AUX file", but output a group instead of a new .bib file.

Mixopteryx avatar Nov 07 '17 08:11 Mixopteryx

@stefan-kolb @Mixopteryx @oscargus @koppor do you guys actually prefer the aux file? I would like to work on this but my approach would be to directly parse the tex-file and look for \cite commands and its relatives. Reason: the tex file is always up-to-date while I need to recompile to get a correct aux file (also the location of the aux file may change when compiled with the -output-directory option or be deleted by a "cleanup of temporary files" action of a text editor).

tobiasdiez avatar Nov 07 '17 12:11 tobiasdiez

Just a few quik thoughts:

  1. The aux file is smaller and already has the necessary cites aggregated
  2. You need to search all folders for multiple tex files
  3. Tex files might not be included in the main document that is actually compiled
  4. Cites might be commented out or something in the code

stefan-kolb avatar Nov 07 '17 12:11 stefan-kolb

citet, citep (natbib), citeN (elsart) -- no additional latex parser in JabRef. There is a ten year old existing implementation in Java, but too slow - maybe 😂😂

Am 07.11.2017 13:53 schrieb "Stefan Kolb" [email protected]:

Just a few quik thoughts:

  1. The aux file is smaller and already has the necessary cites aggregated
  2. You need to search all folders for multiple tex files
  3. Tex files might not be included in the main document that is actually compiled
  4. Cites might be commented out or something in the code

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JabRef/jabref/issues/1664#issuecomment-342473437, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTafssfXvZaOhvNiyLQAEnodehOZkz6ks5s0FLigaJpZM4Jakyb .

koppor avatar Nov 07 '17 13:11 koppor

In principle using the .tex file would be better, but using the .aux file is much more robust and simpler to make.

I'd rather use the aux file and recompile than ensuring that my tex file is supported by a parser. In addition to what @stefan-kolb mention I sometimes define \newcommands that include \cite commands, and a I expect a parser that would catch that need to be awfully complicated compared to the aux parser.

Mixopteryx avatar Nov 07 '17 17:11 Mixopteryx

This is now implemented in the latest development version. Could you please check the build from http://builds.jabref.org/master/. Thanks! The user interface is a bit spartanic (since we plan to rewrite the groups dialog) but it should work if you paste the full path to the aux-file in the textbox.

tobiasdiez avatar Jan 28 '18 18:01 tobiasdiez