Skip to content

Question about bib params #40

@dchiu911

Description

@dchiu911

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions