我正在使用 bookdown 的 gitbook 功能进行项目。它以 html 设置加载本书,但也可以选择将其下载为 pdf 格式。我想在文档中插入图片,但是 html 到 pdf 选项给我带来了麻烦。目前,我正在尝试以 PDF 格式查看我想要的文档,但我想以对 html 友好的方式进行操作。我已经设法将它编织成 pdf,但图像不再包含在文本中。
---
title: 'Book'
site: bookdown::bookdown_site
output:
bookdown::gitbook:
config:
toc:
collapse: section
scroll_highlight: true
before: null
after: null
toolbar:
position: fixed
edit: null
download: ["pdf"]
number_sections: null
documentclass: book
delete_merged_file: true
link-citations: yes
description: "something here"
---
text text text text
text text text text
text text text text
```{r out.width='140pt', echo = FALSE}
knitr::include_graphics("images/wk1_mentor.jpg")
```
text text text text
text text text text
如何使文本在图片旁边换行,而不是以与 PDF 和 html 文档兼容的方式给它自己的行?