【发布时间】:2014-09-22 03:02:09
【问题描述】:
我正在使用 Pandoc 生成 markdown->包含大量表格的 DOCX 文档,但希望更好地控制布局。
我现在也在尝试输出 markdown->PDF,但遇到了表格输出问题。
在 DOCX 中,带有文本的长行被简单地分成多行。在 PDF 文档中,这不会发生;一行始终是单行,不会在右边距处换行,而是在页面之外继续。正常的段落文本根据右边距流动,所以问题可能不是页面大小。
示例降价:
This is text that flows according to the page limits. This is text that flows according to the page limits. This is text that flows according to the page limits.
This is text that flows according to the page limits. This is text that flows according to the page limits.
| Version | Date | Comment |
|--------:|-------|---------|
| 1.0.0 | 07.04.2014 | This is a table row that does not flow with the page limits. This is a table row that does not flow with the page limits. |
| 2.0.0 | 07.04.2014 | This is a table row that does not flow with the page limits. This is a table row that does not flow with the page limits. |
This is text that flows according to the page limits. This is text that flows according to the page limits. This is text that flows according to the page limits.
This is text that flows according to the page limits. This is text that flows according to the page limits.
生成的 PDF
如何在 PDF 表格中启用换行?
【问题讨论】:
标签: pdf-generation latex pandoc