Auto-create groups from AUX file
Create groups of papers cited in a paper via an aux-file
The same as "Tools --> New Subdatabase based on AUX file", but output a group instead of a new .bib file.
@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).
Just a few quik thoughts:
- The aux file is smaller and already has the necessary cites aggregated
- You need to search all folders for multiple tex files
- Tex files might not be included in the main document that is actually compiled
- Cites might be commented out or something in the code
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:
- The aux file is smaller and already has the necessary cites aggregated
- You need to search all folders for multiple tex files
- Tex files might not be included in the main document that is actually compiled
- 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 .
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.
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.