What problem does it solve? Citation integrity issues in LaTeX paper libraries—orphan \cite keys with no matching .bib entry, zombie .bib entries never cited, and missing bibliography files—cause compilation failures and weaken literature support, and are hard to detect manually across many papers. ## Core Features & Use Cases - Bidirectional Cross-Reference Audit: Extracts \cite keys from .tex files and entry keys from .bib files, then computes D8 (bib entry count) and D10a (cite-to-bib match percentage) per paper. - Severity-Graded Reporting: Classifies problems as severe (D8=0, missing .bib), moderate (D10a<100%), mild (D8<30), or mixed (orphans and zombies both >5), listing every orphan and zombie label. - Use Case: Before batch-compiling a 65-paper library, run the scan script over the paper root directory to get a per-paper D8/D10a table and a graded problem list, then feed the metrics into a quality gate before compilation. ## Quick Start Run the d8-d10a-scan.py script on my papers directory and report which papers have orphan citations, zombie bib entries, or missing .bib files.