相关疑难解决方法(0)

如何在带有 rmarkdown 本地引用的图形标题中引用?

在 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)

latex r pandoc r-markdown

4
推荐指数
2
解决办法
2572
查看次数

标签 统计

latex ×1

pandoc ×1

r ×1

r-markdown ×1