如何在Rmarkdown中更改书目风格? [英] How to change bibliography style in Rmarkdown?

查看:192
本文介绍了如何在Rmarkdown中更改书目风格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Rmarkdown中更改我的书目风格.我遵循了这个解决方案,但在我的情况下没有任何反应.

I am trying to change the style of my bibliography in Rmarkdown. I followed this solution but nothing happens in my case.

这是我的代码:

---
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 并将其保存在与参考书目相同的存储库中/din1505"rel =" nofollow noreferrer>此处.

I downloaded and saved abbrvdin.bst in the same repository as the bibliography from here.

我在做什么错了?

谢谢

推荐答案

elsevier模板不支持此功能,请参见

The elsevier template does not support this, see the code on github.

您可以只使用plainmatelsevier-harv.

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

A solution is to clone the repository and manipulate the file to your need. In addition to that you can raise a pull request.

这篇关于如何在Rmarkdown中更改书目风格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆