rstudio / rstudio/rticles

AEA article bibliography does not work

Open
#584 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TeX
Stars
1.5k
Forks
517
Avg merge
1d 8h
Merged PRs (30d)
5

Description

I tried to compile a new AEA article and it works as expected but ONLY if I don't use any bibtex citations.

After I add

bibliography: orange-economy-bibliography.bib

to the YAML header I get an error that I can not fix:

! Package natbib Error: Bibliography not compatible with author-year citations.

The .bib file itself is properly formatted and works flawlessly with 'knitr' when the following YAML settings are specified:

output:
  pdf_document:
    latex_engine: pdflatex
    keep_tex: true 
bibliography: orange-economy-bibliography.bib
csl: harvard-cite-them-right.csl

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the AEA article compilation with the YAML bibliography setting and the reported natbib error. Compare it with the working knitr YAML, including the pdflatex, keep_tex, bibliography, and CSL settings; done means the AEA article compiles with BibTeX citations.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, tex
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.