【问题标题】:how to properly cite authors in R Markdown with more than 1 name as last name如何正确引用 R Markdown 中超过 1 个名字作为姓氏的作者
【发布时间】:2021-11-15 19:34:46
【问题描述】:

我正在使用 R Markdown,如下所示:

---
title: title
author:
- Name1:
    email: email
    institute: med
    correspondence: yes
- name: name2
  institute: med
date: date
bibliography: ref_file.bib
bib-humanities: true
output:
  pdf_document:
    includes:
        in_header: header.tex 
    number_sections: yes
    toc: no
    pandoc_args:
    - --lua-filter=scholarly-metadata.lua
    - --lua-filter=author-info-blocks.lua
  word_document:
    toc: no
    pandoc_args:
    - --lua-filter=scholarly-metadata.lua
    - --lua-filter=author-info-blocks.lua
  html_document:
    toc: no
    df_print: paged
header-includes: \usepackage{amsmath}
institute:
- med: etc etc
---

@RN36382 defined...

我的 ref_file.bib 显示:

@article{RN36382,
   author = {van der Laan, M. J.},
   title = {Statistical Inference for Variable Importance},
   journal = {The International Journal of Biostatistics},
   volume = {2},
   number = {1},
   year = {2006},
   type = {Journal Article}
}

我的 pdf 输出是:

“Laan (2006) defined ...”,但是,我期待“van der Laan (2006) defined...”

我该如何解决这个问题?谢谢!

【问题讨论】:

    标签: yaml r-markdown bibtex bibliography


    【解决方案1】:

    你应该添加双括号;)

    ...
    author = {{van der Laan, M. J.}}
    ...
    

    【讨论】:

    • 谢谢@manro! :)
    • @DanielaRodrigues 祝你好运;)
    猜你喜欢
    • 2019-12-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-25
    • 2016-02-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多