citelint
Easy, transparent citation linting for LaTeX papers.
Why citelint?
Existing citation checkers tell you "this reference is OK" or "this reference has a problem" — but you can't see what they checked, how they checked it, or what they might have missed. You're left trusting a black box.
citelint takes a different approach: instead of giving you pass/fail verdicts, it puts all the information in front of you and lets you decide.
Because verifying a citation is not just one question — it's three:
| Layer | Question | What citelint shows you |
|---|---|---|
| Existence | Does this paper actually exist? | One-click search across Semantic Scholar, DBLP, Google Scholar, arXiv |
| Accuracy | Are the authors, year, and venue correct? | Bib fields decomposed side-by-side with the PDF-rendered reference and online search results |
| Context | Does this citation make sense where it's used? | Every citation site highlighted in its surrounding text, so you can judge the fit |
Automated tools can help with the first question. Only a human can answer the third. citelint gives you what you need for all three — in one page, for every reference in your paper.
Install
pip install citelint
Use
cd /path/to/your/paper
citelint
That's it. Auto-detects your .bib, .tex, and .bbl files, generates an interactive audit page, opens it in your browser.
What each reference card shows
Left (your paper) Right (verification)
-------------------------------------------------------
PDF rendered reference Quick search links
the exact text the reviewer DBLP / Semantic Scholar /
sees in your References section Google Scholar / arXiv
Entry fields BibGuard automated checks
Type / Author / Title / Field-by-field validation
Venue / Year / Pages / URL against online databases
Citation contexts Search & verify
"...shown by THIS REF that..." One-click S2 + DBLP search,
every place this ref is cited, top 3 results with match %,
with surrounding text visible TLDR, and direct links
The review-fix-review workflow
citelint --watch
Edit your .bib or .tex in your editor. citelint detects the change, regenerates the audit page, and the browser auto-refreshes. No manual reloading, no re-running commands. Keep fixing until everything looks right, then Ctrl+C.
Supported templates
Works out of the box with any BibTeX-based LaTeX template:
| Template | Venues | Status |
|---|---|---|
natbib (plainnat.bst) |
NeurIPS, ICML, ICLR, AAAI, AISTATS, ... | Tested |
acmart.cls |
ACM (SIGCHI, KDD, WWW, ...) | Tested |
IEEEtran.cls |
IEEE (CVPR, ICCV, ...) | Tested |
llncs.cls |
Springer LNCS (ECCV, ...) | Tested |
| biblatex | Journals using biblatex | Tested |
Any \bibitem{key} format |
Everything else | Works |
Don't see your template? It probably works — the parser handles any standard
.bblformat. If it doesn't, open an issue with your.bblfile and we'll add support.
Options
citelint # current directory, English UI
citelint ~/papers/my-paper # specific directory
citelint --lang zh # Chinese UI
citelint --watch # auto-regenerate + auto-reload on file changes
citelint --port 9000 # different port
citelint --bib custom.bib # specific .bib file
citelint --no-server # generate HTML only
citelint --no-open # don't open browser
citelint --regenerate # force regenerate
Semantic Scholar API key (optional)
Without a key, Semantic Scholar search is rate-limited (~10 requests/min). Get a free key at https://www.semanticscholar.org/product/api#api-key-form :
echo 'export S2_API_KEY=your-key-here' >> ~/.zshrc
source ~/.zshrc
What files does it need?
| File | What it provides | Required? |
|---|---|---|
.bib |
Entry fields, search links, BibGuard checks | Yes |
.tex |
Citation contexts (where each ref is cited) | No |
.bbl |
PDF rendered reference (what the reviewer sees) | No |
Minimum: just a .bib file. Everything else enriches the audit.
How it works
citelint /path/to/paper
|
+-- parse .bib -> entry field decomposition
+-- parse .bbl -> PDF rendered text (auto-detects template format)
+-- scan .tex files -> citation contexts
+-- run BibGuard -> automated field checks (included by default)
+-- generate HTML -> citelint.html
|
+-- local server (localhost:8899)
+-- serves the audit page
+-- proxies Semantic Scholar API (your key stays local)
+-- proxies DBLP API
FAQ
Q: Why a local server? Can I just open the HTML file?
A: The "Search & Verify" feature calls Semantic Scholar and DBLP APIs, which browsers block from file:// URLs (CORS). The local server proxies these requests. Static content (rendered reference, entry fields, citation contexts) works fine by opening the HTML directly.
Q: My .bbl isn't parsed correctly.
A: Open an issue and attach your .bbl file. The parser auto-detects ACM, plain (natbib/IEEE/LNCS), and biblatex formats, but there may be edge cases.
Q: BibGuard is slow.
A: BibGuard queries DBLP, Semantic Scholar, OpenAlex, arXiv, and CrossRef for each entry. 60 entries takes about 60-90 seconds. A progress indicator shows elapsed time while it runs. This only happens during generation — re-running citelint without --regenerate skips it.
Contributing
See CONTRIBUTING.md. The easiest way to help: add your template's .bbl file as a test fixture.
License
MIT
Metadata
Release files for citelint 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| citelint-2.0.0.tar.gz | 24.9 MB | Without provenance | Details for citelint-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| citelint-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for citelint-2.0.0-py3-none-any.whl |
Total release size: 25.0 MB
Release files / citelint-2.0.0.tar.gz
| Download URL | citelint-2.0.0.tar.gz |
|---|---|
| Size | 24.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0d81ae0cf3f99732e98247d9e97d96d571133079a6efa9be887a13582227f0c
|
|
BLAKE2b-256 checksum How to use checksums |
cd841ef813d723bd78159f90dc6307041643a8620826163ef7ebf5113f168675
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / citelint-2.0.0-py3-none-any.whl
| Download URL | citelint-2.0.0-py3-none-any.whl |
|---|---|
| Size | 28.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0079c54e6fa77e828ff6b8e369f571972e75672bd1918e0733e56fb572b72748
|
|
BLAKE2b-256 checksum How to use checksums |
5b465cf04fb4d87ef583f73d034c7b1222468d8b5cfb5738da122cae3c5ffdd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for citelint 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.