转换为PDF时,如何在Pandoc中的表格后继续列出缩进?

时间:2018-09-07 05:26:22

标签: pdf markdown pandoc

这类似于this question,但是这次,我不是在处理图像,而是在处理表格。

我想在列表项中插入表格,然后继续缩进该列表点。

我正在使用Markdown:

## Problem 1 ##
a. This point starts here.
   Some stuff here.

--------------- -------------- --------------- --------------- ---------------
0 bit in error  1 bit in error 2 bits in error 3 bits in error 4 bits in error
--------------- -------------- --------------- --------------- ---------------
NNNN            ENNN, NENN,    EENN, ENEN,     EEEN, EENE,     EEEE
                NNEN, NNNE     ENNE, NEEN,     ENEE, EEEN
                               NENE, NNEE

------------------------------------------------------------------------------

   Point a continued here. This doesn't indent properly.

在Ubuntu 18.04(WSL)上

Pandoc版本:2.2.3.2

Latex版本(pdflatex):3.14159265-2.6-1.40.18

当前输出如下:

enter image description here

1 个答案:

答案 0 :(得分:3)

通过four spaces缩进列表项的全部内容,包括表格:

## Problem 1 ##

a.  This point starts here.
    Some stuff here.

    --------------- -------------- --------------- --------------- ---------------
    0 bit in error  1 bit in error 2 bits in error 3 bits in error 4 bits in error
    --------------- -------------- --------------- --------------- ---------------
    NNNN            ENNN, NENN,    EENN, ENEN,     EEEN, EENE,     EEEE
                    NNEN, NNNE     ENNE, NEEN,     ENEE, EEEN
                                   NENE, NNEE
    ------------------------------------------------------------------------------

    Point a continued here. This doesn't indent properly.

这可以确保将表和以下段落都识别为属于列表项。