标题包:引文格式不同

时间:2019-01-31 19:12:21

标签: r latex r-markdown

我正在尝试使用rticle撰写论文。但是,当我引用参考文献时,我发现了一个问题。这是一个示例:

---
author:
  - name: FirstName LastName
    affiliation: University/Company
    address: >
      First line
      Second line
    email: \email{name@company.com}
    url: http://rstudio.com
title:
  formatted: "A Capitalized Title: Something about a Package \\pkg{foo}"
  plain:     "A Capitalized Title: Something about a Package foo"
  short:     "\\pkg{foo}: A Capitalized Title"
abstract: >
  The abstract of the article.
keywords:
  formatted: [keywords, not capitalized, "\\proglang{Java}"]
  plain:     [keywords, not capitalized, Java]
preamble: >
  \usepackage{amsmath}
bibliography: index.bib   
output: rticles::jss_article
---

# Example

* This is unwanted output

[@R-sensitivity]

* This is what I want to show in the paper

[@R-sensitivity]

# Referenes

```{r, include=FALSE}
knitr::write_bib('sensitivity', 'index.bib')
```

理论上,两个[@ R-敏感性]应该输出相同的结果。但是第一个显示了整个作者的姓名,而第二个则截断了Iooss等人的作者列表。 2018。我不确定这是我设置中的错误还是技术错误。

0 个答案:

没有答案