如何在Rmarkdown中更改书目风格?

问题描述 投票:0回答:1

我正在尝试在Rmarkdown中更改我的书目风格。我遵循了此solution,但在我的情况下什么也没有发生。

这是我的代码:

---
title: "Tilte"
author:
  - name: Rollo99

abstract: |
 Abstract

keywords: whatever
date: "`r Sys.Date()`"
citation_package: natbib
bibliography: library.bib
biblio-style: abbrvdin
references:
link-citations: yes
linkcolor: blue
output: 
  rticles::elsevier_article:
    number_sections: yes
header-includes:
- \setcitestyle{numbers}
- \usepackage{amsmath}
- \usepackage{hyperref}
- \usepackage{graphicx}
- \usepackage[section]{placeins}
- \usepackage{float}
- \usepackage[font=small, skip=1pt]{caption}
- \usepackage[labelfont=bf]{caption}
- \usepackage{amssymb}
- \usepackage{inputenc}
- \usepackage{placeins}
- \usepackage{blindtext}
- \usepackage{setspace}
- \usepackage[top=3cm, bottom=3cm, left=3cm, right=3cm]{geometry}
- \usepackage{amsmath}
- \usepackage{amssymb}
- \usepackage{mathrsfs}
- \usepackage{longtable}
- \usepackage{graphicx}
- \usepackage{ragged2e}
- \usepackage{csquotes}
- \usepackage[bottom]{footmisc}
- \usepackage{xpatch}
- \setlength\parindent{0pt}
- \usepackage{appendix}


我下载了abbrvdin.bst并将其保存在与here的参考书目相同的存储库中。

我在做什么错?

谢谢

r latex r-markdown markdown bibliography
1个回答
1
投票

elsevier模板不支持此功能,请参见github上的代码。

您可以只使用plainmatelsevier-harv

enter image description here

一种解决方案是克隆存储库并根据需要操作文件。除此之外,您还可以提出拉取请求。

© www.soinside.com 2019 - 2024. All rights reserved.