数字之前,而不是之后#Discussion-R Markdown



我在定位地物时遇到问题。

我的标题:

usepackage{amsmath}
usepackage{pdflscape}
newcommand{blandscape}{begin{landscape}}
newcommand{elandscape}{end{landscape}}

我的一些R Markdown代码:

newpage
blandscape
```{r finaltable1_1, echo=FALSE}
table1_1
```
elandscape
newpage
blandscape
```{r figone, message=FALSE, warning=FALSE, echo=FALSE, out.width='100%', fig.align='center', fig.cap='description.'}
knitr::include_graphics('./images/figure2.pdf')
```
elandscape
newpage
```{r figresults, message=FALSE, warning=FALSE, echo=FALSE, out.width='100%', fig.align='center', fig.cap='description.'}
knitr::include_graphics('./images/figure3.pdf')
```
newpage
# Discussion

图3应该放在讨论之前,但它显示了之后,对可能发生的事情有什么想法吗?

因此,您可以通过以下方式解决问题:

a(减少图片在此区块中的宽度:

```{r figresults, message=FALSE, warning=FALSE, echo=FALSE, out.width='70%', fig.align='center', fig.cap='description.'}
knitr::include_graphics('pic.pdf')
```

b(使用另一种构造:

![My piccy-pic](pic.pdf){width=90%}

begin{figure}[H]
centering
includegraphics[width=0.9textwidth]{pic.pdf}
caption{I'm here}
end{figure}

相关内容

最新更新