是否可以在bookdown中使用pandoc-crossref?
我尝试将yaml标题更改为:
output:
bookdown::tufte_book2:
toc: yes
highlight: tango
pandoc_args: -F /usr/local/bin/pandoc-crossref
哪个应该将过滤器传递给pandoc,但是我收到错误:
pandoc: Error running filter pandoc-crossref:
Could not find executable ' pandoc-crossref'.
当我输入正确的路径时,上述错误没有意义。使用什么样的env,这会阻止访问过滤器文件?
答案 0 :(得分:2)
这是一个例子
---
output: bookdown::html_document2
---
# Section name {#id}
```{r pressure, echo=FALSE, fig.cap='test plot'}
plot(pressure)
```
Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot. To cross-reference the figure, use `\@ref(fig:pressure)` to produce Figure \@ref(fig:pressure). All this is found within the section \@ref(id).
哪个产生......