“按原样”输入时的重音字符似乎与elsevier_article
. 请参阅下面的建议。
基本文件
这是一个使用的基本文档rticles::elsevier_article
:
---
title: "Sample document"
author:
- name: "Mateusz Kędzior"
affiliation: Some Institute of Technology
email: Mateusz@example.com
footnote: Corresponding Author
- name: Żąćł Źęń
csl: https://www.zotero.org/styles/geoderma
output:
rticles::elsevier_article:
citation_package: natbib
keep_tex: yes
number_sections: yes
toc: no
keywords: keywordA, keywordB
abstract: This is a sample abstract \newline This is the second line of abstract.
---
Hello world.
没有抱怨:
![在此处输入图像描述](https://i.stack.imgur.com/YhCRv.png)
带重音的参考
现在,我们希望添加一个带重音符号的引用。我们在这里遵循答案:https ://tex.stackexchange.com/questions/57743/how-to-write-%C3%A4-and-other-umlauts-and-accented-letters-in-bibliography 。我将您的参考书目导入 Zotero,然后使用“中欧 (ISO)”编码(不是 UTF-8)导出该项目以获得
@article{kedzior_this_2018,
title = {This is sample title only {\k A} {\L }},
volume = {99},
url = {http://megooglethat.com/},
journal = {Some journal},
author = {K{\k e}dzior, Mateusz and {\'Z}{\k e}{\'n}, {\.Z}{\k a}{\'c}{\l }},
year = {2018},
keywords = {keywordC},
pages = {21 -- 31}
}
R Markdown 文档现在变为
---
title: "Sample document"
author:
- name: "Mateusz Kędzior"
affiliation: Some Institute of Technology
email: Mateusz@example.com
footnote: Corresponding Author
- name: Żąćł Źęń
csl: https://www.zotero.org/styles/geoderma
output:
rticles::elsevier_article:
citation_package: natbib
keep_tex: yes
number_sections: yes
toc: no
biblio-files: bibliography2.bib
keywords: keywordA, keywordB
abstract: This is a sample abstract \newline This is the second line of abstract.
---
## Citations and references
Let me cite an article: [@kedzior_this_2018]
# References
然后我knit
在 RStudio 中对此进行了编辑,但意识到我必须获取tex
输出并重建它(在 RStudio 之外)以获得所需的输出
![在此处输入图像描述](https://i.stack.imgur.com/6Uhbl.png)
其他问题
对于图形标题中的重音字符,相应地对其进行编码(与参考书目一样)。您可能会发现http://w2.syronex.com/jmr/latex-symbols-converter很有帮助。此外,据我所知,bookdown
样式交叉引用不适用于rticles
. 如果您有后续问题,如果您将问题分解成更小的部分,您可能会得到更有帮助的答案。