1

I'm working with a markdown document that imports images right after subtitles. This is my code:

## 2 - Characteristics of the respondents

### Gender of respondents
![Gender of respondents](../../../outputs/testing/Gender of respondents.png)

### Government tier
![Government tier of respondents](../../../outputs/testing/Government tier of respondents.png)

### Government sector
![Government sector of respondents](../../../outputs/testing/Government sector of respondents.png)

### Respondents in manager positions
![Manager position of respondents](../../../outputs/testing/Respondents in management positions.png)

Then I'm saving this into a file named 2-respondents.md and I'm rendering it with pandoc using pandoc 2-respondents.md -o example.pdf.

The result looks like this:

Page 1 enter image description here

As you can see, my problem is that the third image is too long and the subtitles are rendered before the images.

Is there a way to make sure that the order of subtitles and images remains the same as in my markdown document? I found a similar issue in this question, but it hasn't received an answer to date.

Thanks in advance.

Luise
  • 482
  • 1
  • 6
  • 21

1 Answers1

2

Found my answer here:

Pandoc Markdown to PDF image position

I needed to render using this command, which deactivates the implicit_figures:

pandoc 2-respondents.md -f markdown-implicit_figures -o example.pdf
Luise
  • 482
  • 1
  • 6
  • 21