Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

! Package biblatex Error: Category 'bibRefereed journal papers' already declared. #39

Closed
michielvandijk opened this issue Feb 11, 2019 · 9 comments

Comments

@michielvandijk
Copy link

Similar to the RobHyndmanCV.rmd, I tried to create more than two bib lists (see below). However, when I do this, I get the following error: ! Package biblatex Error: Category 'bibRefereed journal papers' already declared. When I run only one of the scripts (thesis or research-papers) it works fine. First I thought it could be related to my Miktex installation. I deleted it and replaced with tinytex but the error remains, hence, I assume it must be something in the package.

PhD thesis

bibliography_entries("bib/VanDijk.bib", startlabel = "papersstart") %>%
  filter(bibtype == "PhdThesis")

Refereed research papers

# Normal articles excluding editorials
bibliography_entries("bib/VanDijk.bib") %>%
 filter(bibtype == "Article") %>%
  arrange(year, author)
@robjhyndman
Copy link
Collaborator

Can you set output to

output:
  vitae::hyndman:
    keep_tex: true

and then post the resulting tex and bib file.

@michielvandijk
Copy link
Author

Here they are, uploaded as zip

CV.zip

@michielvandijk
Copy link
Author

Michiel_van_dijk_cv_test.log

Perhaps useful as well, the log file.

@robjhyndman
Copy link
Collaborator

Can you also provide the Rmd?

@michielvandijk
Copy link
Author

@robjhyndman
Copy link
Collaborator

That compiles for me without errors. Are you using the latest github version of vitae?

@michielvandijk
Copy link
Author

I am not. I installed from CRAN. I will update now and retry.

@michielvandijk
Copy link
Author

Works! So I guess this bug was fixed in the Github version. Thanks for the support! Great package.

@robjhyndman
Copy link
Collaborator

Actually, not so much a bug as a change in how the function is used. Previously, the title was an argument in bibliography_entries() and it had to be unique for each entry. If you didn't use it, the default was "Refereed journal papers". So if you used two or more bibliography_entries() calls leaving title as default, it created this error. We now don't use a title argument and generate a unique identifying string on the fly.

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

No branches or pull requests

2 participants