其他人在 Rmarkdown 中遇到 \FloatBarrier 问题吗
Is anyone else having issues with \FloatBarrier in Rmarkdown
如果我使用 \FloatBarrier 来维护文档的所需顺序,我会收到以下错误并且无法编织 PDF(特别是 PDF)。它大概在六个月前就起作用了。
! Undefined control sequence.
l.128 \FloatBarrier
\#\# Of Officer Initiated Stops, how does the race of the
Error: LaTeX failed to compile more_effective_policing.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See more_effective_policing.log for more info.
一个可重现的例子:
*注意:我只是打开一个默认的 Rmarkdown,然后我添加 \FloatBarrier 到它。然后我试着编织成PDF。
---
title: "knit"
author: "James Ades"
date: "6/9/2021"
output:
pdf_document: default
html_document: default
---
{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
## R Markdown
This is an R Markdown document...
{r cars}
summary(cars)
## Including Plots
You can also embed plots, for example:
{r pressure, echo=FALSE}
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.
\FloatBarrier
如果您想使用其中一个宏,您必须加载 placeins
包:
---
title: "knit"
author: "James Ades"
date: "6/9/2021"
output:
pdf_document:
keep_tex: true
html_document: default
header-includes:
\usepackage{placeins}
---
{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
## R Markdown
This is an R Markdown document...
{r cars}
summary(cars)
## Including Plots
You can also embed plots, for example:
{r pressure, echo=FALSE}
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.
\FloatBarrier
如果我使用 \FloatBarrier 来维护文档的所需顺序,我会收到以下错误并且无法编织 PDF(特别是 PDF)。它大概在六个月前就起作用了。
! Undefined control sequence.
l.128 \FloatBarrier
\#\# Of Officer Initiated Stops, how does the race of the
Error: LaTeX failed to compile more_effective_policing.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See more_effective_policing.log for more info.
一个可重现的例子: *注意:我只是打开一个默认的 Rmarkdown,然后我添加 \FloatBarrier 到它。然后我试着编织成PDF。
---
title: "knit"
author: "James Ades"
date: "6/9/2021"
output:
pdf_document: default
html_document: default
---
{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
## R Markdown
This is an R Markdown document...
{r cars}
summary(cars)
## Including Plots
You can also embed plots, for example:
{r pressure, echo=FALSE}
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.
\FloatBarrier
如果您想使用其中一个宏,您必须加载 placeins
包:
---
title: "knit"
author: "James Ades"
date: "6/9/2021"
output:
pdf_document:
keep_tex: true
html_document: default
header-includes:
\usepackage{placeins}
---
{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
## R Markdown
This is an R Markdown document...
{r cars}
summary(cars)
## Including Plots
You can also embed plots, for example:
{r pressure, echo=FALSE}
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.
\FloatBarrier