正如标题所述,我的问题是关于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
渲染并停用 implicit_figures 选项,如下所示:
pandoc my_markdown.md -f markdown-implicit_figures -o rendered_md.pdf
这样做的缺点是它会从图形中删除标题。在标题中包含以下 tex 非常适合我(也从这里复制(:
usepackage{float}
letorigfigurefigure
letendorigfigureendfigure
renewenvironment{figure}[1][2] {
expandafterorigfigureexpandafter[H]
} {
endorigfigure
}