pandoc 无法更改文本宽度

pandoc cannot change width text

我在 Ubuntu 上使用 pandoc 将 markdown 文件转换为 pdf:

pandoc -o output.pdf ProjectDescription.md

不过我觉得文字太窄了,我想使用更多的页面。为此,我阅读了 pandoc 手册,看起来 columns 选项应该不错:

https://pandoc.org/MANUAL.html

'' --columns=NUMBER

指定行的字符长度。这会影响生成的源代码中的文本换行(请参阅 --wrap)。它还会影响纯文本表格的列宽计算(请参见下表)。 ''

默认值应该是 columns=72。

但正在尝试:

pandoc --columns=80 -o output.pdf ProjectDescription.md

没有给我更宽的文本。您知道为什么以及如何解决这个问题吗?

This affects text wrapping in the generated source code

因此这对只有中间 LaTeX 源的 PDF 输出没有影响。

您可能想要set the margins喜欢:

---
title: my doc
margin-left: 1cm
---

# my content