I am compiling a Rmarkdown PDF document with the following YAML settings:
---
output:
pdf_document:
fig_caption: true
fig_crop: true
toc_depth: 3
header-includes:
- \usepackage{hyperref}
---
Inside the document, I inserted several PNG images using the following syntax
Paragraph 1..........

Paragraph 2....
And when the document is rendered, the image is displayed as expected in the text, between Paragraph 1and Paragraph 2. However, I get some unpredictable results when image rendering appears after Paragraph 2in some cases, and I cannot solve it.
source
share