natbib似乎不pdf_book /艺品正常工作(natbib seems to not work

2019-09-29 20:40发布

在我.Rmd文件,我指的位置名为.bib文件如下:“让我举一个文章:[@ SampleTitle2016]”

当我编织当前的',我想有地方被\提供文章被引用的引用,\ citep或\ citet命令.tex文件。

我注意到,如果我省略了线:在输出PARAMS“citation_package natbib”,引文作为原始文本提供:

但是,如果加提到线,.tex文件看起来更好,但由于某些原因,书目无法正确显示/(编译) - “什么?”我见 而不是正确的引文:

我.Rmd如下所示:

---
title: "Sample document"
abstract: "This is a sample abstract \\newline This is the second line of abstract \\par \\textbf{Keywords:} keywordA, keywordB"
author:
  - name: Mateusz Kędzior
    email: alice@example.com
    affiliation: Some Institute of Technology
    footnote: Corresponding Author
bibliography: bibliography_escaped.bib
output:
  bookdown::pdf_book:
    base_format: rticles::elsevier_article
    keep_tex: true
    citation_package: natbib
---

## Sample Text

Let me cite an article: [@SampleTitle2016].

Without natbib, in .tex file citep  command is not used in output .tex file.

An with natbib, it seems there's problem with bibliography compilation.

## References

我的书目文件,如下所示:

@article{SampleTitle2016,
    title = "This is sample title only \{\k{A}\} \{\L{}\}",
    journal = "Some journal",
    volume = "99",
    number = "",
    pages = "21 - 31",
    year = "2018",
    note = "This is fake",
    url = "http://ImustChangedThatLinkBecauseSOdoNotALLOWletmeG",
    author = "Mateusz K\k{e}dzior and \.{Z}\k{a}\'{c}\l{} \'{Z}\k{e}\'{n}",
    keywords = "keywordC",
    keywords = "Keyword D",
}

@article{OtherTitle2010,
    title = "{{This is different \k{A} title only}}",
    journal = "Some journal",
    volume = "150",
    number = "",
    pages = "21 - 31",
    year = "2020",
    note = "This is fake",
    url = "http://someLink/",
    author = "\.{Z}\k{a}\'{c}\l{} \'{Z}\k{e}\'{n}",
    keywords = "keyword\k{A}",
    keywords = "Keyword \'{Z}",
}
文章来源: natbib seems to not work properly with pdf_book / rticles