| name | add-bib-entry |
| description | Use when adding works to Pablo's bibliography, creating BibTeX/BibLaTeX entries, adding DOI/ISBN/URL references, resolving missing citekeys, or preparing notes that cite works not yet in the configured bibliography files. |
Add Bib Entry
Core Rule
Use Pablo's Emacs bibliography workflow, not ad hoc BibTeX, whenever a work has a DOI, ISBN, URL, or other identifier. The desired end state is a clean BibLaTeX entry plus associated files: always a PDF where the workflow can obtain one, and sometimes an HTML file for web pages.
Workflow
-
Check whether the work is already present.
-
Choose the target BibTeX file.
- For Pablo's personal notes, default to
paths-file-personal-bibliography-new, normally /Users/pablostafforini/My Drive/bibliography/new.bib.
- Do not add new personal references to
old.bib or Babel/Tlön bibliography files unless the user or project context explicitly calls for that.
-
Add and process the entry through Zotra/Ebib.
-
Complete post-processing.
-
Use the returned/generated citekey in notes.
- Cite as
[cite:@Key].
- After editing notes, verify every citekey resolves in the active bibliography files.
Fallbacks
- If Zotra cannot import the work, inspect the relevant implementation before hand-writing BibTeX:
/Users/pablostafforini/My Drive/dotfiles/emacs/extras/zotra-extras.el
/Users/pablostafforini/My Drive/dotfiles/emacs/extras/ebib-extras.el
- Anna's Archive download behavior: run
"/Users/pablostafforini/My Drive/dotfiles/bin/elpaca-package-path" annas-archive annas-archive.el and inspect the returned file.
- package docs in
/Users/pablostafforini/My Drive/dotfiles/emacs/extras/doc/zotra-extras.org and ebib-extras.org
- Manual BibTeX is acceptable only for genuinely unsupported cases, and only after the Zotra/Ebib path and relevant implementation have been inspected. Say that it is a fallback and still enforce the same metadata invariants: a publication year for every work,
journaltitle for site-hosted works, parent crossref entries for contained works, valid key style, required fields, and citation resolution.
- If associated-file download/attachment requires live Emacs interaction, browser/authentication, or a manual choice between candidates, leave the entry in a clearly inspectable state and report the exact missing piece.
Verification
Before finishing:
- Re-read the added BibTeX entry and cited note lines.
- Confirm the citekey appears in one active bibliography file.
- Confirm the
file field references existing PDF/HTML files when expected.
- Keep unrelated user changes in bibliography files unstaged/uncommitted unless explicitly asked.
- If committing, commit bibliography and note changes separately when they live in different repos.