以pandoc markdown为中心的图像

问题描述 投票:6回答:1

我需要定期为使用Word的管理员创建文档。如何使用Pandoc Markdown居中图像?我看到提到了div块,但我不知道它们是什么。

![](myimage.png){.center}

[使用上面的图像代码和命令行,例如:

pandoc -s test.md -o test.docx

pandoc -s test.md -o test.pdf

我总是以文档中的左对齐图像结尾。

markdown pandoc
1个回答
0
投票

对于PDF输出,使用implicit_figure选项将使图像自动在页面上居中,并允许您显示图像标题。

© www.soinside.com 2019 - 2024. All rights reserved.