当输入“as is”时,带重音的字符在与
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.
没有任何投诉的渲染:
![enter image description here](https://istack.dev59.com/YhCRv.webp)
带重音的参考文献
现在,我们想添加一个带重音的参考文献。我们遵循这里的答案: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:
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.
---
Let me cite an article: [@kedzior_this_2018]
我在RStudio中编织了这个内容,但是意识到我需要获取tex
输出并重新构建它(在RStudio之外)才能得到所需的结果。
![enter image description here](https://istack.dev59.com/6Uhbl.webp)
其他问题
对于图题中的重音字符,需要按照相应方式进行编码(如参考文献)。您可以访问http://w2.syronex.com/jmr/latex-symbols-converter来获得帮助。此外,据我所知,bookdown
样式的交叉引用无法与rticles
兼容。如果您有后续问题,请将问题细分为更小的部分以获得更好的回答。
rticles
是否一定与pdf_document2
不兼容。但是当使用爱思维尔模板时,参考文献和标题确实需要适当编码。 - Weihuang Wong