代码之家  ›  专栏  ›  技术社区  ›  Eitan

bibtext引用未在bookdown中处理

  •  1
  • Eitan  · 技术社区  · 6 年前

    我有一个bookdown文档,它引用了使用bibtex书目文件的其他文档。它似乎根本没有过程,因为输出(gitbook格式和pdf)不会将实际引用转换为参考。输出总是复制引用的纯文本,而不是实际引用,如下所示:

    enter image description here

    下面是一个最小的复制示例,我使用以下方法构建该示例:

    Rscript -e 'bookdown::render_book("index.Rmd", "bookdown::gitbook")'
    

    指数Rmd:

    ---
    title: "test"
    site: "bookdown::bookdown_site"
    documentclass: book
    bibliography: test.bib
    biblio-style: apalike
    link-citations: true
    # toc: yes
    # toc_depth: 2
    ---
    
    # Introduction {#ch:intro}
    
    Conference publication takes the lead role in describing innovative research,
    while journals are often delegated to archival purposes [@vrettas15:conferences].
    
    
    ```{r echo=FALSE}
    sessionInfo()
    ```
    

    测试:bib:

    @article{vrettas15:conferences,
      title =    {Conferences versus journals in computer science},
      author =   {Vrettas, George and Sanderson, Mark},
      journal =  {Journal of the Association for Information Science and Technology},
      volume =   66,
      number =   12,
      pages =    {2674--2684},
      year =     2015,
      publisher =    {Wiley Online Library}
    }
    

    _预订。yml:

    rmd_files: [
      "index.Rmd",
    ]
    new_session: no
    bookdown::gitbook:
      split_bib: no
    
    1 回复  |  直到 6 年前
        1
  •  2
  •   Yihui Xie    6 年前

    事实证明,这是由于Pandoc版本过低所致。版本1.19。x或更高版本应能解决此问题。

    推荐文章