Benjamin-Loison / latex2e

The LaTeX2e kernel
https://www.latex-project.org/
LaTeX Project Public License v1.3c
0 stars 0 forks source link

List unused BibTeX references #14

Open Benjamin-Loison opened 7 months ago

Benjamin-Loison commented 7 months ago

As they are listed, unwillingly in my case, on \printbibliography. I might be wrong about previous statement, as I remember only having checked \cite while \cite can have multiple , delimited citations.

grep -oP '@.*{\K.*,' references.bib | cut -d ',' -f1 | xargs -I % sh -c 'grep -q "%" ../slides.tex || echo "Not found: %"'

is a workaround. Being able to automatically remove them from references.bib would be nice, as well as not having to use cut.

Brief outline of the enhancement

LaTeX2e generally cannot add new features without an extreme amount of care to accommodate backwards compatibility. Please do not be offended if your request is closed for being infeasible.

Minimal example showing the current behaviour

\RequirePackage{latexbug}       % <--should be always the first line (see CONTRIBUTING)!
\documentclass{article}

  % Any preamble code goes here

\begin{document}

  % Demonstration of issue here

\end{document}

Minimal example showing the desired new behaviour

\RequirePackage{latexbug}       % <--should be always the first line (see CONTRIBUTING)!
\documentclass{article}

  % Any preamble code goes here

\begin{document}

  % Demonstration of issue here

\end{document}