ant*_*sor 3 latex pdf-generation citations r-markdown
我在更改 RMarkdown 的 pdf 输出中内联引用的颜色时遇到麻烦。让我们从 YAML 开始:
\n\n---\ntitle: MY TITLE\nauthor: "Mario Modesto-Mata"\ndate: "20 September 2018"\noutput:\n pdf_document:\n highlight: espresso\n number_sections: yes\n toc: yes\n toc_depth: 4\nbibliography: references.bib\ncsl: ajpa.csl\n---\nRun Code Online (Sandbox Code Playgroud)\n\n正如您所看到的,我指定了参考书目 ( references.bib) 和引文样式 ( ajpa.csl)。我必须说它效果非常好。
然而,我正在写一篇很长的手稿,我希望内嵌引文是彩色的,以便读者区分什么是文本和什么是引文。
\n\n这是我的示例,您可以在其中看到内联引用。
\n\n\n\n\nCada diente se forma en un momento concreto bajo una fuerte regulaci\xc3\xb3n\n gen\xc3\xa9tica。为此,请提供一个完整的固定托盘,以进行切割、脱砂、成型\xc3\xb3n 和启动瞬间\xc3\xb3n,然后相对独立地恢复牙科牙医。由于\n的动机,CADA特别是牙科的设计\n特别是定义在功能\XC3\XB3N中的托盘\n的混凝土结构\n CADA DENTE O CLASE DE DENTES\n [@BermudezdeCastrochicoGranDolina2002 ;\n @SmithDentaldevelopmentevolution1991;\n @SmithDentaldevelopmentmeasure1989;\n @SmithPatternsdentaldevelopment1994]。牙科治疗具有可遗传性和相对抵抗性,与营养不良的过程有关,并且存在变异性,存在变异性,在帕特里克·xc3\xb3n 中存在,与营养不良相关的治疗有关。 xa1metros de maduraci\xc3\xb3n esquel\xc3\xa9ticos\n [@Lewisrelationshiptoothformation1960]。
\n
当我使用 RMarkdown 将其转换为 PDF 时,我得到了正确的内联引用:\n
我在这个论坛上搜索并找到了一个潜在的解决方案,您可以在原始问题中阅读。
\n\n但是,当我实现这些提示时,如以下代码所示:
\n\n\n\n\nCada diente se forma en un momento concreto bajo una fuerte regulaci\xc3\xb3n\n gen\xc3\xa9tica。为此,请提供一个完整的固定托盘,以进行切割、脱砂、成型\xc3\xb3n 和启动瞬间\xc3\xb3n,然后相对独立地恢复牙科牙医。\n 出于动机,CADA 特别是牙科设计\n 的设计\n 特别是在功能\xc3\xb3n 中定义的托盘\n 混凝土的具体结构\n \\textcolor {蓝色}{[@BermudezdeCastrochicoGranDolina2002;\n @SmithDentaldevelopmentevolution1991;\n @SmithDentaldevelopmentmeasure1989;\n @SmithPatternsdentaldevelopment1994]}。牙科治疗具有可遗传性和相对抵抗性,与营养不良的过程有关,并且存在变异性,存在变异性,在帕特里克·xc3\xb3n 中存在,与营养不良相关的治疗有关。 xa1metros de maduraci\xc3\xb3n esquel\xc3\xa9ticos\n \\textcolor{blue}{[@Lewisrelationshiptoothformation1960]}。
\n
我得到这个输出:
\n\n\n\n正如您所看到的,括号内的文本已变成蓝色,但我丢失了正确的内联引用。
\n\n您可以下载包含我的 Rmd 文件 ajpa.csl 和references.bib 的一部分的ZIP 文件。
\n我们可以设置 YAML 选项link-citations: yes和linkcolor: blue.
---
title: MY TITLE
author: "Mario Modesto-Mata"
date: "20 September 2018"
output:
pdf_document:
highlight: espresso
number_sections: yes
toc: yes
toc_depth: 4
# bibliography: references.bib
# csl: ajpa.csl
references:
- id: hawking_thermodynamics_1983
author:
- family: Hawking
given: S. W.
- family: Page
given: Don. N.
publisher: Communications in Mathematical Physics
title: Thermodynamics of Black Holes in Anti-de Sitter Space.
volume: 87
type: article-journal
issued:
year: 1983
link-citations: yes
linkcolor: blue
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Header
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua
[@hawking_thermodynamics_1983].
# Bibliography
Run Code Online (Sandbox Code Playgroud)
注意:这也适用bibliography: ...于代替references: ....
这是你想要的吗?
| 归档时间: |
|
| 查看次数: |
2308 次 |
| 最近记录: |