Image Pandoc md到pdf:在分页符之前插入图像时保持秩序

Image Pandoc md到pdf:在分页符之前插入图像时保持秩序,image,pdf,markdown,pandoc,pdflatex,Image,Pdf,Markdown,Pandoc,Pdflatex,正如标题所述,我的问题是关于pandocs md到pdf的 当我转换一个降价像 # Title ...... text that is about a 3/4 page ![image that is too large to fit page](image.png) Some more text 然后图像“更多文本”后的文本显示在第一页,图像被推送到第二页,这改变了我的内容顺序 我能做的就是 # Title ...... text that is about a 3/4 page

正如标题所述,我的问题是关于pandocs md到pdf的

当我转换一个降价像

# Title

...... text that is about a 3/4 page

![image that is too large to fit page](image.png)

Some more text
然后图像“更多文本”后的文本显示在第一页,图像被推送到第二页,这改变了我的内容顺序

我能做的就是

# Title

...... text that is about a 3/4 page

\newpage
![image that is too large to fit page](image.png)

Some more text
但这对于维护来说非常烦人,因为当我想在开始之后添加内容时,我必须检查
\newpage
是否仍然是必需的,或者是否必须在其他地方添加另一个

有什么真正的解决办法吗?可能是YAML标题中的设置

我在谷歌上搜索了很多,但没有找到解决方案


谢谢:)

请尝试从命令行使用
pandoc
进行渲染,如下所示:

这样做的缺点是它删除了图片上的标题。在标题中包含以下tex非常适合我(也抄袭自):


这可能会对您有所帮助:我编辑、添加了来自另一个线程的附加解决方案,并批准了答案。谢谢
pandoc my_markdown.md -f markdown-implicit_figures -o rendered_md.pdf
\usepackage{float}
\let\origfigure\figure
\let\endorigfigure\endfigure
\renewenvironment{figure}[1][2] {
    \expandafter\origfigure\expandafter[H]
} {
    \endorigfigure
}