【发布时间】:2020-07-29 13:13:58
【问题描述】:
准备一篇新的会议文章,我想使用 rticles 并利用 bookdown 的交叉引用功能。 这最初在使用标准方程和交叉引用示例时失败(例如,比较 https://bookdown.org/yihui/bookdown/cross-references.html)。
原来的错误信息如下:
! Undefined control sequence.
l.430 See equation \eqref
{eq:linear} for more insights.
消除交叉引用指针\@ref(eq:linear) 使编织完成。
然而,我 - 显然 - 失去了对等式的交叉引用。
更新所有 R 包后,Rmd 被编织而不会引发错误。但是,不会自动插入交叉引用,而是打印 \@ref(eq:linear)。
我认为问题与在编织过程中如何处理此类引用(也称为控制序列)有关。 :( 我不知道如何处理。
这个 SO-question Cross-referencing in rticles 提供了指向该示例的官方文档的指针。
感谢您告诉我如何格式化公式参考。
---
title: "rticles fails knitting equation references"
keywords: ["keyword 1", "keyword 2"]
abstract: |
The abstract goes here.
On multiple lines eventually.
## hook up rticles as base format with bookdown for referencing, etc
output:
bookdown::pdf_book:
base_format: rticles::ieee_article
---
Introduction
=============
To add math, I do the following
See equation \@ref(eq:linear) for more insights.
\begin{equation}
a + bx = c (\#eq:linear)
\end{equation}
More cool text.
【问题讨论】:
标签: r r-markdown cross-reference