Pandoc:Markdown中的长桌子 - > PDF文档没有得到线条包裹

Kar*_*ahl 9 latex pdf-generation pandoc

我正在使用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. 
Run Code Online (Sandbox Code Playgroud)

得到的PDF 得到的PDF

如何在PDF表格中启用换行?

Joh*_*ane 10

管道表不包含在LaTeX/PDF输出中.使用多行或网格表,如pandoc用户指南中所述.这也可以让您控制列的相对宽度.