【问题标题】:rmarkdown - rticles: Author names not displayingrmarkdown - 文章:作者姓名不显示
【发布时间】:2020-06-07 13:23:07
【问题描述】:

我有rticles::elsevier 文章的以下代码和输出,但我无法显示作者姓名。我得到的输出是:

看起来它可能正在为作者姓名生成空间,但没有显示它们。

我用来生成它的代码在哪里:

代码:

---
title: Title here
subtitle: Do you have a subtitle? If so, write it here
titlerunning: Short form of title (if too long for head)
authorrunning:
  Short form of author list if too long for running head
thanks: |
  Grants or other notes about the article that should go
  on the front page should be placed here. General
  acknowledgments should be placed at the end of the article.
authors:
  - name: Author 1

keywords:
  - key
  - dictionary
  - word
MSC:
  - MSC code 1
  - MSC code 2 

abstract: |
  Some abstract here

output:
    bookdown::pdf_document2:
      keep_tex: true
      number_sections: no
      toc: no
      tables: true
    base_format: rticles::elsevier_article
header-includes:
  - \usepackage{floatrow}
  - \floatplacement{figure}{H}
  - \usepackage{booktabs}
  - \usepackage{array} 
  - \usepackage{float}

---

# section 1

some writing

即使我使用以下website 中的简单内容。我所做的所有更改是 - 删除 bibliography: bibliography.bib 行并将 output: rticles::springer_article 修改为 output: rticles::elsevier_article

代码2:

---
title: Title here
subtitle: Do you have a subtitle? If so, write it here
titlerunning: Short form of title (if too long for head)
authorrunning:
  Short form of author list if too long for running head
thanks: |
  Grants or other notes about the article that should go
  on the front page should be placed here. General
  acknowledgments should be placed at the end of the article.
authors:
  - name: Author 1
    address: Department of YYY, University of XXX
    email: abc@def
  - name: Author 2
    address: Department of ZZZ, University of WWW
    email: djf@wef
keywords:
  - key
  - dictionary
  - word
MSC:
  - MSC code 1
  - MSC code 2    
abstract: |
  The text of your abstract.  150 -- 250 words.

output: rticles::elsevier_article

---

# section 1

some writing

【问题讨论】:

    标签: r r-markdown


    【解决方案1】:

    如果您将authors 更改为author,您的第二个示例将显示作者。但是第一个示例仍然不能以这种方式工作..

    ---
    title: Title here
    subtitle: Do you have a subtitle? If so, write it here
    titlerunning: Short form of title (if too long for head)
    authorrunning:
      Short form of author list if too long for running head
    thanks: |
      Grants or other notes about the article that should go
      on the front page should be placed here. General
      acknowledgments should be placed at the end of the article.
    author:
      - name: Author 1
        address: Department of YYY, University of XXX
        email: abc@def
      - name: Author 2
        address: Department of ZZZ, University of WWW
        email: djf@wef
    keywords:
      - key
      - dictionary
      - word
    MSC:
      - MSC code 1
      - MSC code 2    
    abstract: |
      The text of your abstract.  150 -- 250 words.
    
    output: rticles::elsevier_article
    
    ---
    
    # section 1
    
    some writing
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-02-12
      • 1970-01-01
      • 2021-07-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多