首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >是否还有其他人对浮动屏障有问题?

是否还有其他人对浮动屏障有问题?
EN

Stack Overflow用户
提问于 2021-06-09 18:45:03
回答 1查看 1.4K关注 0票数 2

如果我使用\FloatBarrier来维持文档的期望顺序,我会得到以下错误,并且无法编织PDF (特别是在PDF中发生)。大概六个月前起作用了。

代码语言:javascript
复制
! 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格式。

代码语言:javascript
复制
---
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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-06-10 09:21:24

如果要使用其宏之一,则必须加载placeins包:

代码语言:javascript
复制
---
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
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67910059

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档