我想要数字之间的文字,但它在数字上方显示文字

I want text between figures but it shows text above figures

我正在用 bookdown 创建一个 pdf。

我的问题是我有图与图之间的文字,但它一一显示图上方的文字和下方的图。

index.Rmd

--- 
title: "A title"
author: "George"
date: "`r Sys.Date()`"
output:
  bookdown::tufte_book2: default
description: V
documentclass: book
link-citations: yes
bibliography: book.bib
site: bookdown::bookdown_site
biblio-style: apalike
---

02-explore.Rmd

# Explore {#explore}

```{r global, echo=FALSE, include=FALSE}
library(knitr)
knitr::opts_chunk$set(cache = TRUE, warning = FALSE, message = FALSE, tidy = FALSE,
                      fig.width = 6, fig.height = 4, dev = "cairo_pdf")

# list libraries and load data frame
```

Text goes here .

```{r title1, echo = FALSE, fig.cap = "One"}
ggplot
```

Another text .

```{r stw-title2, echo = FALSE, fig.cap = "Two"}
ggplot
```

output.yml

bookdown::tufte_book2:
  includes:
    in_header: preamble.tex
    before_body: dedication.tex
    after_body: after.tex
  latex_engine: xelatex
  citation_package: natbib

所以,我想要一些文本,下面的第一个图,下面的另一个文本和另一个图,但是我收到的是所有图上面的所有文本。

我发现如果我使用 :

fig.width = 5 and fig.aps = 1/2 (or 1/3)

然后文字和数字按正确的顺序出现。

所以,这是 fig.height 的问题。