rstudio / bookdown

Authoring Books and Technical Documents with R Markdown
https://pkgs.rstudio.com/bookdown/
GNU General Public License v3.0
3.71k stars 1.27k forks source link

bs4_book - references by chapter not displaying #1452

Closed andybeet closed 5 months ago

andybeet commented 5 months ago

In standard bookdown books it is possible to have a global References rmd and ALSO include references by chapter. (this was default behaviour). However when using the bs4_book theme it appears that it is no longer possible to generate references at the chapter level.

xfun::session_info("rmarkdown")
#> R version 4.2.0 (2022-04-22 ucrt)
#> Platform: x86_64-w64-mingw32/x64 (64-bit)
#> Running under: Windows 10 x64 (build 19045)
#> 
#> Locale:
#>   LC_COLLATE=English_United States.utf8 
#>   LC_CTYPE=English_United States.utf8   
#>   LC_MONETARY=English_United States.utf8
#>   LC_NUMERIC=C                          
#>   LC_TIME=English_United States.utf8    
#> 
#> Package version:
#>   base64enc_0.1.3 bslib_0.4.0     cachem_1.0.6    cli_3.6.2      
#>   digest_0.6.29   evaluate_0.16   fastmap_1.1.0   fs_1.5.2       
#>   glue_1.6.2      graphics_4.2.0  grDevices_4.2.0 highr_0.9      
#>   htmltools_0.5.2 jquerylib_0.1.4 jsonlite_1.8.3  knitr_1.41     
#>   lifecycle_1.0.3 magrittr_2.0.3  memoise_2.0.1   methods_4.2.0  
#>   R6_2.5.1        rappdirs_0.3.3  rlang_1.1.1     rmarkdown_2.16 
#>   sass_0.4.2      stats_4.2.0     stringi_1.7.8   stringr_1.5.0  
#>   tinytex_0.45    tools_4.2.0     utils_4.2.0     vctrs_0.6.5    
#>   xfun_0.36       yaml_2.3.5     
#> 
#> Pandoc version: 2.18

Created on 2024-02-05 with reprex v2.0.2

andybeet commented 5 months ago

need to add content in the _output.yml

bookdown::bs4_book:
  split_bib: true