1

当我转换以下 R 降价

```{r UCSC, fig.cap="**My** [UCSC](http://www.text.com)"}
knitr::include_graphics("ucsc.png")
```

到乳胶,它会产生

\begin{figure}
\includegraphics{"ucsc.png"}
\caption{**My** [UCSC](http://www.text.com)}
\end{figure}

降价语法转换为乳胶代码\href{http://www.text.com}{UCSC}

如何配置以将 markdown 语法传输fig.cap到正确的乳胶代码?

bookdown(文本参考)文档中找到了解决方案。

A normal paragraph.

(ref:foo) A scatterplot of the data `cars` using **base** R graphics. 

```{r foo, fig.cap='(ref:foo)'}
plot(cars)  # a scatterplot
```

谢谢!

4

0 回答 0