Feature request: JabRef shows which citations are used in LaTeX document

Open
#9,687 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java, latex
Domain
desktop

Research direction

Start by reviewing JabRef's existing LaTeX and bibliography integration, then compare the requested behavior with the example checkcites output. Determine how used and unused references should be represented in the desktop application; done means library entries are accurately identified and highlighted for a LaTeX document.

Written by the indexing model from the issue text.

Description

component: groups component: maintable component: ui

Is your suggestion for improvement related to a problem? Please describe.
I have large library with many entries. I want to see which references have been used in my latex document.

Describe the solution you'd like
JabRef could use checkcites in the background and highlight library entries which are used / not used in the LaTeX document.

Additional context
This seems very specific to LaTeX use case, not sure what other use cases JabRef should support.

Example output of checkcites script:

checkcites output.aux
     _           _       _ _
 ___| |_ ___ ___| |_ ___|_| |_ ___ ___
|  _|   | -_|  _| '_|  _| |  _| -_|_ -|
|___|_|_|___|___|_,_|___|_|_| |___|___|

checkcites.lua -- a reference checker script (v2.5)
Copyright (c) 2012, 2019, Enrico Gregorio, Paulo Cereda
Copyright (c) 2022, Enrico Gregorio, Island of TeX

Great, I found 41 citations in 1 file. I also found 1 bibliography file.
Let me check this file and extract the references. Please wait a moment.

Fantastic, I found 153 references in 1 bibliography file. Please wait a
moment while the reports are generated.

--------------------------------------------------------------------------
Report of unused references in your TeX document (that is, references
present in bibliography files, but not cited in the TeX source file)
--------------------------------------------------------------------------

Unused references in your TeX document: 112
=> Hussain2014a
=> Hussain2014b
=> Vatrapu2016
=> kim2019says
=> Vosoughi2017
=> Hoang2012
=> TwitterAPI2020
=> Shao2017
=> Wiederhold2020
=> Donovan2020
=> WHO2020
=> Kim2019
=> Hevner2010
=> Babakar2016
=> Bakir2018
=> Bakshy2015
=> Barbera2015
=> Bengio2012
=> Bovet2019
=> Briggs2011
=> Cai2017
=> Carlsson2005
=> Choi2018
=> Chollet2017
=> Chollet2018
=> Ciampaglia2015
=> Dungs2018
=> Dunn2016
=> Dietterich2000
=> DeCockBuning2018
=> Figueira2017
=> Flaxman2016
=> Fletcher2018
=> Gelfert2018
=> GildeZuniga2017
=> Goodfellow2016
=> Goodfellow2014
=> Guess2018
=> Gulrajani2019
=> Friedman2001
=> He2016
=> Srivastava2014
=> Hinton2012
=> Hinton2006
=> Howard2017
=> Huang2017
=> Huh2018
=> Ioffe2015
=> Jacobson2016
=> Jin2016
=> Karpathy2016
=> Karras2019
=> Ketkar2017
=> Kittler2002
=> Korshunov2018
=> Lazer2018
=> Lee2017
=> Levy2017
=> Lilleker2017
=> McCulloch1943
=> Metzger2010
=> Miller2003
=> Minsky2017
=> Mitchell1997
=> Nataraj2019
=> Newman2017
=> Nizza2008
=> ONeil2019
=> Odena2018
=> Pattanayak2017
=> PerezRosas2017
=> Radford2015
=> Ragas2014
=> Rapoza2017
=> DepartmentofComputerScience2019
=> Reed1999
=> Rochlin2017
=> Rosenblatt1958
=> Rumelhart1986
=> Sandler2018
=> Thornhill2009
=> Schwartz2018
=> Sharda2012
=> Sharma2016
=> Shearer2018
=> Gottfried2016
=> Shu2017
=> Silverman2016
=> Simonyan2014
=> A.Smith2019
=> Spohr2017
=> Szegedy2017
=> TandocJr2015
=> TandocJr2018
=> TandocJr2018a
=> Thielman2016
=> Torrey2009
=> Turcotte2015
=> Warren2016
=> Welbers2016
=> Xia2017
=> Yaman2018
=> Zhao2015
=> Zoph2018
=> Guess2021
=> Allcott2019
=> Thero2022
=> Evans2022
=> Zhang2020
=> Zhou2021
=> Egelhofer2019
=> Raponi2022

--------------------------------------------------------------------------
Report of undefined references in your TeX document (that is, references
cited in the TeX source file, but not present in the bibliography files)
--------------------------------------------------------------------------

Undefined references in your TeX document: 0
Dominant language
Java
Stars
4.7k
Forks
3.6k
Avg merge
23h 39m
Merged PRs (30d)
381

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JabRef/jabref

All issues in JabRef/jabref

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.