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

Question about bib params #40

Closed
dchiu911 opened this issue Oct 3, 2019 · 1 comment
Closed

Question about bib params #40

dchiu911 opened this issue Oct 3, 2019 · 1 comment

Comments

@dchiu911
Copy link

@dchiu911 dchiu911 commented Oct 3, 2019

I see that both yml_citations() and yml_latex_opts() have the bibliography param. Intuitively, I expected both biblio_style and biblio_title params to be available in yml_citations(), but it's only in yml_latex_opts(). Would it make sense to make them available in yml_citations() or would that present some potential problems?

library(ymlthis)

yml_empty() %>% 
  yml_latex_opts(bibliography = "book.bib")
#> ---
#> bibliography: book.bib
#> ---

yml_empty() %>% 
  yml_citations(bibliography = "book.bib")
#> ---
#> bibliography: book.bib
#> ---

yml_empty() %>% 
  yml_latex_opts(biblio_style = "apalike",
                 biblio_title = "References")
#> ---
#> biblio-style: apalike
#> biblio-title: References
#> ---

# Add this?
# yml_empty() %>% 
#   yml_citations(biblio_style = "apalike",
#                 biblio_title = "References")

Created on 2019-10-02 by the reprex package (v0.3.0)

@malcolmbarrett
Copy link
Collaborator

@malcolmbarrett malcolmbarrett commented Oct 11, 2019

It makes sense to me. Thanks for this and the other issues!

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