3
我知道使用fig.scap应该提供一个与图表一起使用的简短标签,但它不会,它使用长标签。有任何想法吗? Rstudio版本0.98.1091。knitr中的短标题fig.scap无法正常工作?
---
output:
pdf_document:
fig_caption: yes
---
\listoffigures
```{r, fig.cap="long caption",fig.scap="short"}
plot(1:4)
```
尝试确切的代码我没有得到任何标题,但是乳胶命令被打印出来。 .tex文件包含以下内容:\ textbackslash {} begin \ {figure \} \ includegraphics [width = 6in] {kill_files/figure-latex/unnamed-chunk-1-1} \ textbackslash {} caption {[} short {}} \ {long caption \ label {fig:unnamed-chunk-1} \} \ textbackslash {} end \ {figure \} – 2014-12-02 18:05:09
@StevePowell对不起,我忘了提这个需要Pandoc> = 1.13.1;当前RStudio IDE附带的Pandoc版本存在一个错误。如果你使用Windows或Mac OS X,你可以自己安装Pandoc,RStudio会自动选择你的较新版本的Pandoc。我不想在公开场合提到它,但是如果你敢尝试:现在的RStudio每日版本提供了Pandoc 1.13.1:http://www.rstudio.org/download/daily/desktop/(请不要传播的话:) – 2014-12-02 20:46:07
谢谢,但我*做*有pandoc 1.13.1通过在Ubuntu 14.04 cabal安装。我的rstudio是版本0.98.1091。我会喜欢这个工作,因为现在如果你有很长的解释性说明你的数字,这是良好的做法国际海事组织,你不能有一个数字表;-( – 2014-12-05 08:22:47