Skip to content

Remove three duplicate bibliography entries so the .bib parses at all#204

Merged
mmcky merged 1 commit into
mainfrom
fix/duplicate-bib-entries
Jul 24, 2026
Merged

Remove three duplicate bibliography entries so the .bib parses at all#204
mmcky merged 1 commit into
mainfrom
fix/duplicate-bib-entries

Conversation

@mmcky

@mmcky mmcky commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

pybtex refuses to parse a bibliography containing a repeated key, and this file has carried three of them. GilboaSchmeidler:1989, Whittle_1981 and Whittle_1990 each appear twice — once indented in the main body, once unindented near the end — and the two copies of each are byte-identical apart from leading whitespace.

The effect is total, not local

BibliographyDataError: repeated bibliography entry: GilboaSchmeidler:1989

parse_file raises, no bibliography is built, and every {cite} in the edition fails to resolve. That is what the could not find bibtex key warnings on #202 actually are: the keys are present in the file, and nothing ever parsed it.

This also means the 70 entries backfilled in #203 were correct but could never have taken effect. #202 would have stayed red no matter how many entries were added.

It predates #203

The same three duplicates and the same parse error are present at 693aa63, before that PR. Confirmed by parsing that blob directly.

Why it went unnoticed is worth recording: a duplicate key is invisible to the obvious checks. A grep -c '^@' count is unaffected, braces stay balanced, and a ^@-anchored duplicate scan misses it entirely because one copy of each pair is indented. It only surfaces when something actually parses the file with a real BibTeX parser.

Verification

pybtex parse 480 entries, no error
Keys #202's build reported missing 61
Still unresolved after this change 0
The three formerly-duplicated keys all resolve

Removes the later copy of each; the earlier copy in the main body is kept.

🤖 Generated with Claude Code

pybtex refuses to parse a bibliography containing a repeated key, and this file
has carried three of them — GilboaSchmeidler:1989, Whittle_1981 and Whittle_1990
each appear twice, once indented in the main body and once unindented near the
end. The two copies of each are byte-identical apart from leading whitespace.

The effect is total rather than local: `parse_file` raises
`BibliographyDataError: repeated bibliography entry` and no bibliography is
built, so *every* {cite} in the edition fails to resolve. That is what the
"could not find bibtex key" warnings on #202 actually are — the keys are present
in the file, but nothing ever parsed it. The 70 entries backfilled in #203 were
correct and could never have taken effect while this stood.

Predates #203: the same three duplicates and the same parse error are present at
693aa63, before that PR.

Verified: pybtex now parses 480 entries, and all 61 keys the #202 build reported
missing resolve, as do the three formerly-duplicated ones.

Removes the later copy of each; the earlier copy in the main body is kept.
Copilot AI review requested due to automatic review settings July 24, 2026 01:47
@netlify

netlify Bot commented Jul 24, 2026

Copy link
Copy Markdown

Deploy Preview for astonishing-narwhal-a8fc64 ready!

Name Link
🔨 Latest commit b5f0566
🔍 Latest deploy log https://app.netlify.com/projects/astonishing-narwhal-a8fc64/deploys/6a62c428f0843a000838b206
😎 Deploy Preview https://deploy-preview-204--astonishing-narwhal-a8fc64.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a hard BibTeX parsing failure by removing three duplicate bibliography entries (duplicate keys) from the shared bibliography file so downstream tooling (e.g., pybtex) can successfully parse the bibliography and resolve citations across the book.

Changes:

  • Remove the duplicate entries for GilboaSchmeidler:1989, Whittle_1981, and Whittle_1990 from lectures/_static/quant-econ.bib.
  • Ensure each of the three keys appears exactly once in the bibliography so parsing no longer fails.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

Copy link
Copy Markdown

@github-actions
github-actions Bot temporarily deployed to pull request July 24, 2026 02:05 Inactive
@mmcky
mmcky merged commit f8bf219 into main Jul 24, 2026
8 checks passed
@mmcky
mmcky deleted the fix/duplicate-bib-entries branch July 24, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants