在 R Markdown 中,我想要一个带有 R Markdown native citation style 链接引用的图形标题[@ref]。但是,当我将最后的[@hawking_thermodynamics_1983]片段插入到标题中时,它只会抛出一个错误:
! Missing $ inserted.
<inserted text>
$
l.94 ...iontextfoo [@hawking_thermodynamics_1983]}
pandoc.exe: Error producing PDF
Error: pandoc document conversion failed with error 43
Run Code Online (Sandbox Code Playgroud)
示例:
这是我的代码:
---
title: "Untitled"
author: "Author"
output: pdf_document
# bibliography: bibliography.bib
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. …Run Code Online (Sandbox Code Playgroud)