正如标题所述,我的问题是关于 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选项 https://stackoverflow.com/questions/49482221/pandoc-markdown-to-pdf-image-position#answers-header, as in:
pandoc my_markdown.md -f markdown-implicit_figures -o rendered_md.pdf
这样做的缺点是它删除了图中的标题。在标题中包含以下文本对我来说非常适合(复制自here https://stackoverflow.com/questions/49482221/pandoc-markdown-to-pdf-image-position#answers-header以及):
\usepackage{float}
\let\origfigure\figure
\let\endorigfigure\endfigure
\renewenvironment{figure}[1][2] {
\expandafter\origfigure\expandafter[H]
} {
\endorigfigure
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)