skills/43-wentorai-research-plugins/skills/writing/citation/zotero-better-bibtex-guide/SKILL.md
Guide to Better BibTeX for Zotero for LaTeX and BibTeX workflows
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research zotero-better-bibtex-guideInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Better BibTeX (BBT) is an essential Zotero plugin for any researcher who uses LaTeX, BibTeX, or BibLaTeX for academic writing. With over 6,000 GitHub stars, it bridges the gap between Zotero's powerful reference management and the precise citation requirements of LaTeX-based document preparation systems.
The core problem BBT solves is citation key management. Standard Zotero export generates citation keys that can change unpredictably when library items are modified, breaking references in LaTeX documents. Better BibTeX provides stable, customizable citation keys that remain consistent across exports, ensuring your LaTeX documents always compile correctly with up-to-date bibliographic data.
Beyond citation keys, BBT offers superior BibTeX and BibLaTeX export with fine-grained control over field mapping, character encoding, and format compliance. It supports automatic export that keeps your .bib files synchronized with your Zotero library in real time, eliminating the manual export step from the writing workflow entirely.
Install Better BibTeX through Zotero's add-on mechanism:
.xpi file from https://github.com/retorquere/zotero-better-bibtex/releases.xpi file and restart ZoteroConfigure citation key generation:
auth.lower + year):
auth.lower + year produces keys like smith2024authEtal2.lower + year produces smithjones2024 or smithetal2024auth.lower + shorttitle(3,3) + year produces smith.wor.thr.2024Configure export settings:
.bib files synchronizedStable Citation Keys: BBT generates predictable citation keys based on configurable patterns. Once a key is assigned, it remains stable even when you edit item metadata. You can also pin specific citation keys to override the automatic generation when needed.
Citation Key Formulas: The formula system is highly flexible:
| Formula | Example Output | Use Case |
|---------|---------------|----------|
| auth.lower + year | smith2024 | Simple, common convention |
| auth.lower + journal.abbr + year | smithnature2024 | Disambiguate by journal |
| auth.lower + shorttitle(1,1) + year | smith.deep.2024 | Include title fragment |
| auth(2).lower + year | smjo2024 | Short keys, multiple authors |
Automatic Export: Set up a Zotero collection or your entire library to automatically export to a .bib file whenever changes are made. This means your LaTeX project always has access to the latest bibliography data without manual intervention.
To set up automatic export:
Pull Export via HTTP: BBT runs a local HTTP server that serves your bibliography on demand. Configure your LaTeX build system to pull the latest .bib file from http://127.0.0.1:23119/better-bibtex/export/collection?... before each compilation.
Quality Reports: BBT checks your bibliography entries for common issues such as missing fields, encoding problems, and duplicate entries. Review the quality report to ensure your bibliography meets journal submission standards.
Drag-and-Drop Citations: Drag items from Zotero into your text editor to insert formatted citation commands. BBT supports multiple formats including \cite{key}, \autocite{key}, \textcite{key}, and Pandoc-style [@key].
Project Setup:
.bib file in your LaTeX project directory\bibliography{references} or \addbibresource{references.bib} to your LaTeX document\cite{citekey} commands throughout your documentWorking with Overleaf: If using Overleaf, set up a periodic manual export or use the pull export feature with a build script that fetches the latest bibliography before uploading. Some researchers maintain a Git repository that includes both the LaTeX source and the auto-exported .bib file.
Multi-Author Projects: For collaborative projects, establish a shared Zotero group library with BBT configured consistently across all collaborators. Agree on a citation key formula so that keys are predictable regardless of who adds the reference.
Handling Key Conflicts: When two papers produce the same citation key (e.g., two Smith 2024 papers), BBT automatically appends a disambiguation suffix. You can manually pin a specific key by right-clicking an item and selecting "Better BibTeX > Pin citation key."
Integration with Reference Checkers: Use BBT's quality reports alongside tools like biber --validate-datamodel to ensure your bibliography is complete and well-formed before journal submission.
Export File Not Updating: Verify that automatic export is enabled for the collection. Check the BBT debug log (Help > Better BibTeX Debug Log) for export errors. Ensure the target directory is writable.
Unicode Characters in Keys: If citation keys contain unexpected characters, review your key formula. Use .fold in the formula to transliterate Unicode characters to ASCII equivalents.
Large Library Performance: For libraries with thousands of items, the initial citation key generation may take several minutes. Subsequent operations are incremental and fast. Consider disabling automatic export for very large collections and using scheduled exports instead.
tools
Recommend AND run open-source AI tools, agents, Claude Code / Codex skills, and MCP servers for any stage of a literature review — searching, reading, extracting, synthesizing, screening, citation-checking, and paper writing. Use when the user asks "what tool should I use to..." OR "install/run/use <tool> to ..." for research/lit-review work: automating a survey or related-work section, PDF→Markdown extraction for LLMs (MinerU/marker/docling), PRISMA / systematic review (ASReview), citation-backed Q&A over PDFs (PaperQA2), wiring papers into Claude/Cursor via MCP (arxiv/paper-search/zotero servers), or chatting with a Zotero library. Ships a launcher (scripts/litrun.py) that installs each tool in an isolated venv and runs it. Curated catalog of 70+ vetted projects. 支持中英文(用于「文献综述工具选型」与「一键安装/运行」)。
development
Route empirical-research requests through the Auto-Empirical Research Skills catalog when this whole repository is installed as one skill in Codex, CodeBuddy, Claude Code, or another IDE. Use to choose and load the right vendored AERS skill for causal inference, econometrics, replication, data acquisition, manuscript writing, peer review and referee responses, citation checking, de-AIGC editing, or full empirical-paper workflows without reading the entire repository at once.
documentation
Use when the project collects primary data or runs a field, lab, or survey experiment, before the intervention begins — write the pre-analysis plan, size the sample from a power calculation, and register with the AEA RCT Registry. Apply after the design is chosen in aer-identification and before any outcome data are seen.
tools
Guide economists to authoritative data sources with explicit, confirmed data specifications before retrieval; interfaces with Playwright MCP to navigate portals and extract real data, not articles about data.